diff --git a/package-lock.json b/package-lock.json index 94e9306..a0a837d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-json-editor-ajrm", - "version": "2.0.1", + "version": "2.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -769,25 +769,6 @@ "babel-types": "6.26.0" } }, - "babel-polyfill": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", - "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", - "dev": true, - "requires": { - "babel-runtime": "6.26.0", - "core-js": "2.5.6", - "regenerator-runtime": "0.10.5" - }, - "dependencies": { - "regenerator-runtime": { - "version": "0.10.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", - "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", - "dev": true - } - } - }, "babel-preset-env": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/babel-preset-env/-/babel-preset-env-1.6.1.tgz", diff --git a/package.json b/package.json index dedf017..9e12da1 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/webpack.config.js b/webpack.config.js index 9cc176b..fc8f65a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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() ], @@ -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' + } } } \ No newline at end of file