nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit d7e95f639ca085cae4dcf43484a1b4bd60c71472
parent f6a299b3431432aacaa263b69c738712410097eb
Author: Sergey Orlov <wladimirych@gmail.com>
Date:   Mon,  7 Dec 2020 14:29:15 +0100

config: enable chunks splitting for dynamic imports using import(...)

Processing import() by Babel is now disabled. Bable converts dynamic
imports so that wepback can not use them to cretae code chunks.

Diffstat:
Mpackage.json | 1-
Mwebpack/webpack.config.js | 1+
2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json @@ -22,7 +22,6 @@ "devDependencies": { "@babel/core": "^7.12.9", "@babel/plugin-proposal-class-properties": "^7.12.1", - "@babel/plugin-syntax-dynamic-import": "^7.7.4", "@babel/preset-env": "^7.12.7", "babel-eslint": "^10.1.0", "babel-loader": "^8.2.2", diff --git a/webpack/webpack.config.js b/webpack/webpack.config.js @@ -43,6 +43,7 @@ const babelConfig = { useBuiltIns: 'usage', corejs: '3.0.0', modules: 'commonjs', + exclude: ['proposal-dynamic-import'], }, ], ],