Skip to content

Commit

Permalink
Upgrade babel
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanmarks committed Jun 19, 2019
1 parent 60939a8 commit 75bb155
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 46 deletions.
60 changes: 30 additions & 30 deletions webpack.release.config.js
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
const path = require('path')
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
const webpack = require('webpack')
const path = require("path");
const UglifyJSPlugin = require("uglifyjs-webpack-plugin");
const webpack = require("webpack");

module.exports = {
mode: 'production',
mode: "production",
module: {
rules: [
{ test: /\.js$/, loaders: ['babel-loader'], exclude: /node_modules/ },
{ test: /\.js$/, loaders: ["babel-loader"], exclude: /node_modules/ },
{
test: /\.svg/,
exclude: /node_modules/,
use: [
'babel-loader',
"babel-loader",
{
loader: '@svgr/webpack',
loader: "@svgr/webpack",
options: {
babel: false,
},
},
],
},
],
babel: false
}
}
]
}
]
},
entry: './src/index.js',
entry: "./src/index.js",
optimization: {
minimizer: [
new UglifyJSPlugin({
cache: true,
parallel: true,
uglifyOptions: {
keep_classnames: true,
keep_fnames: true,
},
}),
],
keep_fnames: true
}
})
]
},
plugins: [
new webpack.DefinePlugin({
__DEV__: JSON.stringify(false),
}),
__DEV__: JSON.stringify(false)
})
],
output: {
library: 'Snacks',
libraryTarget: 'umd',
filename: 'snacks.js',
globalObject: "typeof self !== 'undefined' ? self : this",
library: "Snacks",
libraryTarget: "umd",
filename: "snacks.js",
globalObject: "typeof self !== 'undefined' ? self : this"
},
externals: {
react: 'react',
'react-dom': 'react-dom',
radium: 'radium',
'prop-types': 'prop-types',
},
}
react: "react",
"react-dom": "react-dom",
radium: "radium",
"prop-types": "prop-types"
}
};
33 changes: 17 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2176,7 +2176,7 @@ [email protected]:
electron-to-chromium "^1.3.62"
node-releases "^1.0.0-alpha.11"

browserslist@^4.6.0, browserslist@^4.6.2:
browserslist@^4.6.0:
version "4.6.2"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.6.2.tgz#574c665950915c2ac73a4594b8537a9eba26203f"
integrity sha512-2neU/V0giQy9h3XMPwLhEY3+Ao0uHSwHvU8Q1Ea6AgLVL1sXbX3dzPrJ8NWe5Hi4PoTkCYXOtVR9rfRLI0J/8Q==
Expand Down Expand Up @@ -2860,18 +2860,18 @@ copy-webpack-plugin@^4.6.0:
serialize-javascript "^1.4.0"

core-js-compat@^3.1.1:
version "3.1.4"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.1.4.tgz#e4d0c40fbd01e65b1d457980fe4112d4358a7408"
integrity sha512-Z5zbO9f1d0YrJdoaQhphVAnKPimX92D6z8lCGphH89MNRxlL1prI9ExJPqVwP0/kgkQCv8c4GJGT8X16yUncOg==
version "3.1.3"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.1.3.tgz#0cc3ba4c7f62928c2837e1cffbe8dc78b4f1ae14"
integrity sha512-EP018pVhgwsKHz3YoN1hTq49aRe+h017Kjz0NQz3nXV0cCRMvH3fLQl+vEPGr4r4J5sk4sU3tUC7U1aqTCeJeA==
dependencies:
browserslist "^4.6.2"
core-js-pure "3.1.4"
semver "^6.1.1"
browserslist "^4.6.0"
core-js-pure "3.1.3"
semver "^6.1.0"

[email protected].4:
version "3.1.4"
resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.1.4.tgz#5fa17dc77002a169a3566cc48dc774d2e13e3769"
integrity sha512-uJ4Z7iPNwiu1foygbcZYJsJs1jiXrTTCvxfLDXNhI/I+NHbSIEyr548y4fcsCEyWY0XgfAG/qqaunJ1SThHenA==
[email protected].3:
version "3.1.3"
resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.1.3.tgz#4c90752d5b9471f641514f3728f51c1e0783d0b5"
integrity sha512-k3JWTrcQBKqjkjI0bkfXS0lbpWPxYuHWfMMjC1VDmzU4Q58IwSbuXSo99YO/hUHlw/EB4AlfA2PVxOGkrIq6dA==

core-js@^1.0.0:
version "1.2.7"
Expand Down Expand Up @@ -3423,9 +3423,9 @@ ejs@^2.6.1:
resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.6.1.tgz#498ec0d495655abc6f23cd61868d926464071aa0"

electron-to-chromium@^1.3.150:
version "1.3.164"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.164.tgz#8680b875577882c1572c42218d53fa9ba5f71d5d"
integrity sha512-VLlalqUeduN4+fayVtRZvGP2Hl1WrRxlwzh2XVVMJym3IFrQUS29BFQ1GP/BxOJXJI1OFCrJ5BnFEsAe8NHtOg==
version "1.3.155"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.155.tgz#ebf0cc8eeaffd6151d1efad60fd9e021fb45fd3a"
integrity sha512-/ci/XgZG8jkLYOgOe3mpJY1onxPPTDY17y7scldhnSjjZqV6VvREG/LvwhRuV7BJbnENFfuDWZkSqlTh4x9ZjQ==

electron-to-chromium@^1.3.62:
version "1.3.127"
Expand Down Expand Up @@ -7458,7 +7458,7 @@ parse5@^3.0.1:

parse5@^5.0.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/parse5/-/parse5-5.1.0.tgz#c59341c9723f414c452975564c7c00a68d58acd2"
resolved "https://registry.npmjs.org/parse5/-/parse5-5.1.0.tgz#c59341c9723f414c452975564c7c00a68d58acd2"
integrity sha512-fxNG2sQjHvlVAYmzBZS9YlDp6PTSSDwa98vkD4QgVDDCAo84z5X1t5XyJQ62ImdLXx5NdIIfihey6xpum9/gRQ==

parseurl@~1.3.2:
Expand Down Expand Up @@ -8278,6 +8278,7 @@ recast@^0.17.4:
[email protected], recursive-readdir@^2.2.2:
version "2.2.2"
resolved "https://registry.yarnpkg.com/recursive-readdir/-/recursive-readdir-2.2.2.tgz#9946fb3274e1628de6e36b2f6714953b4845094f"
integrity sha512-nRCcW9Sj7NuZwa2XvH9co8NPeXUBhZP7CRKJtU+cS6PW9FpCIFoI5ib0NT1ZrbNuPoRy0ylyCaUL8Gih4LSyFg==
dependencies:
minimatch "3.0.4"

Expand Down Expand Up @@ -8736,7 +8737,7 @@ semver@^6.0.0:
resolved "https://registry.npmjs.org/semver/-/semver-6.0.0.tgz#05e359ee571e5ad7ed641a6eec1e547ba52dea65"
integrity sha512-0UewU+9rFapKFnlbirLi3byoOuhrSsli/z/ihNnvM24vgF+8sNBiI1LZPBSH9wJKUwaUbw+s3hToDLCXkrghrQ==

semver@^6.1.1:
semver@^6.1.0:
version "6.1.1"
resolved "https://registry.yarnpkg.com/semver/-/semver-6.1.1.tgz#53f53da9b30b2103cd4f15eab3a18ecbcb210c9b"
integrity sha512-rWYq2e5iYW+fFe/oPPtYJxYgjBm8sC4rmoGdUOgBB7VnwKt6HrL793l2voH1UlsyYZpJ4g0wfjnTEO1s1NP2eQ==
Expand Down

0 comments on commit 75bb155

Please sign in to comment.