Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
remove babel pollyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRedican committed May 9, 2018
1 parent d49c083 commit 8e613db
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 51 deletions.
21 changes: 1 addition & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,13 @@
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-remove-strict-mode": "0.0.2",
"webpack": "^3.10.0",
"uglifyjs-webpack-plugin": "^1.1.8",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"react": ">=16.2.0",
"react-dom": ">=16.2.0"
"react-dom": ">=16.2.0",
"uglifyjs-webpack-plugin": "^1.1.8",
"webpack": "^3.10.0"
}
}
49 changes: 24 additions & 25 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@ const

module.exports = {
entry : [
'babel-polyfill',
'./src/index.js'
],
output: {
path : path.join(__dirname, './dist'),
filename : 'index.js',
library : libraryName,
libraryTarget : 'umd',
publicPath : '/dist/',
umdNamedDefine : true
output: {
path : path.join(__dirname, './dist'),
filename : 'index.js',
library : libraryName,
libraryTarget : 'umd',
publicPath : '/dist/',
umdNamedDefine : true
},
plugins : [
plugins : [
new webpack.DefinePlugin({ 'process.env.NODE_ENV': 'true' }),
new UglifyJSPlugin()
],
Expand All @@ -38,24 +37,24 @@ module.exports = {
}
]
},
resolve: {
alias: {
resolve: {
alias: {
react : path.resolve(__dirname, './node_modules/react'),
'react-dom': path.resolve(__dirname, './node_modules/react-dom'),
}
'react-dom': path.resolve(__dirname, './node_modules/react-dom')
}
},
externals: {
react: {
commonjs : 'react',
commonjs2 : 'react',
amd : 'React',
root : 'React'
},
'react-dom': {
commonjs : 'react-dom',
commonjs2 : 'react-dom',
amd : 'ReactDOM',
root : 'ReactDOM'
}
react: {
commonjs : 'react',
commonjs2 : 'react',
amd : 'React',
root : 'React'
},
'react-dom': {
commonjs : 'react-dom',
commonjs2 : 'react-dom',
amd : 'ReactDOM',
root : 'ReactDOM'
}
}
}

0 comments on commit 8e613db

Please sign in to comment.