From fd8c542565713263146ccf3cc8e55c7f9bf064c6 Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Wed, 28 Aug 2019 01:12:32 +0300 Subject: [PATCH] chore(bulding): use modules: false --- .babelrc | 2 +- webpack.config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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