diff --git a/.babelrc b/.babelrc index cd16c35..ad46b27 100644 --- a/.babelrc +++ b/.babelrc @@ -1,7 +1,7 @@ { "presets": [["@babel/preset-env", { "useBuiltIns": "entry", - "modules": "cjs", + "modules": false, "loose": true, "targets": { "ie": "8", diff --git a/webpack.config.js b/webpack.config.js index 03b058b..97062b6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -9,8 +9,8 @@ module.exports = { mode: 'production', // "production" | "development" | "none" // Chosen mode tells webpack to use its built-in optimizations accordingly. entry: { - bundled: ['@babel/polyfill', './src/bowser.js'], - es5: './src/bowser.js', + bundled: ['@babel/polyfill', './src/index.js'], + es5: './src/index.js', }, // string | object | array // defaults to ./src // Here the application starts executing