mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Upgrade all the Babel (#648)
* Upgrade all the Babel * Generate reports when we deploy * Remove extra export
This commit is contained in:
parent
48a31c5501
commit
baca3d650b
7 changed files with 1009 additions and 781 deletions
14
.babelrc
14
.babelrc
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"presets": [
|
||||
[
|
||||
"env",
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"useBuiltIns": "usage",
|
||||
"useBuiltIns": "entry",
|
||||
"targets": {
|
||||
"browsers": [
|
||||
"last 2 Chrome versions",
|
||||
|
|
@ -17,18 +17,18 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"react"
|
||||
"@babel/preset-react"
|
||||
],
|
||||
"plugins": ["transform-object-rest-spread", "transform-class-properties"],
|
||||
"plugins": ["@babel/plugin-proposal-object-rest-spread", "@babel/plugin-proposal-class-properties"],
|
||||
"env": {
|
||||
"test": {
|
||||
"presets": ["react"],
|
||||
"plugins": ["transform-es2015-modules-commonjs"]
|
||||
"presets": ["@babel/preset-react"],
|
||||
"plugins": ["@babel/plugin-transform-modules-commonjs"]
|
||||
},
|
||||
"library": {
|
||||
"plugins": [
|
||||
"babel-plugin-remove-webpack",
|
||||
"babel-plugin-transform-runtime"
|
||||
"@babel/plugin-transform-runtime"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ module.exports = {
|
|||
use: {
|
||||
loader: "babel-loader",
|
||||
options: {
|
||||
forceEnv: "library"
|
||||
envName: "library"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -70,6 +70,7 @@ module.exports = {
|
|||
path: path.resolve(__dirname, "../built"),
|
||||
filename: "webamp.[name].js",
|
||||
library: "Webamp",
|
||||
libraryTarget: "umd"
|
||||
libraryTarget: "umd",
|
||||
libraryExport: "default"
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
/* global SENTRY_DSN */
|
||||
|
||||
import "babel-polyfill";
|
||||
import Raven from "raven-js";
|
||||
import createMiddleware from "raven-for-redux";
|
||||
import isButterchurnSupported from "butterchurn/lib/isSupported.min";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import "babel-polyfill";
|
||||
import React from "react";
|
||||
import { render } from "react-dom";
|
||||
import { skinUrl } from "./config";
|
||||
|
|
|
|||
|
|
@ -223,4 +223,3 @@ class Winamp {
|
|||
}
|
||||
|
||||
export default Winamp;
|
||||
module.exports = Winamp;
|
||||
|
|
|
|||
29
package.json
29
package.json
|
|
@ -47,21 +47,20 @@
|
|||
},
|
||||
"homepage": "https://github.com/captbaritone/webamp/",
|
||||
"devDependencies": {
|
||||
"babel": "^6.23.0",
|
||||
"babel-cli": "^6.14.0",
|
||||
"babel-core": "^6.21.0",
|
||||
"babel-eslint": "^8.2.6",
|
||||
"babel-loader": "^7.1.1",
|
||||
"@babel/core": "^7.0.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.0.0",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.0.0",
|
||||
"@babel/plugin-transform-runtime": "^7.0.0",
|
||||
"@babel/polyfill": "^7.0.0",
|
||||
"@babel/preset-env": "^7.0.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@babel/runtime": "^7.0.0",
|
||||
"babel-core": "7.0.0-bridge.0",
|
||||
"babel-eslint": "^9.0.0-beta.3",
|
||||
"babel-jest": "^23.4.2",
|
||||
"babel-loader": "^8.0.0-beta.6",
|
||||
"babel-plugin-remove-webpack": "^1.1.0",
|
||||
"babel-plugin-transform-class-properties": "^6.24.1",
|
||||
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1",
|
||||
"babel-plugin-transform-object-rest-spread": "^6.20.2",
|
||||
"babel-plugin-transform-react-jsx": "^6.24.1",
|
||||
"babel-plugin-transform-runtime": "^6.23.0",
|
||||
"babel-polyfill": "^6.22.0",
|
||||
"babel-preset-env": "^1.6.1",
|
||||
"babel-preset-react": "^6.24.1",
|
||||
"babel-runtime": "^6.26.0",
|
||||
"butterchurn": "^2.4.10",
|
||||
"butterchurn-presets": "^2.4.7",
|
||||
"canvas-mock": "0.0.0",
|
||||
|
|
@ -82,7 +81,7 @@
|
|||
"html-webpack-plugin": "^3.0.6",
|
||||
"http-server": "^0.11.1",
|
||||
"invariant": "^2.2.3",
|
||||
"jest": "^23.0.0",
|
||||
"jest": "^23.5.0",
|
||||
"jest-image-snapshot": "^2.4.1",
|
||||
"jest-mock-random": "^1.0.2",
|
||||
"jest-puppeteer": "^3.0.1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue