From a5edc770771479532f6e4af08e71b242744625d2 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 2 Apr 2021 15:54:30 +0200 Subject: mitigating some weird nav issues and FOUC --- webpack.config.site.dev.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webpack.config.site.dev.js') diff --git a/webpack.config.site.dev.js b/webpack.config.site.dev.js index a3e06fd..da71040 100644 --- a/webpack.config.site.dev.js +++ b/webpack.config.site.dev.js @@ -17,6 +17,7 @@ module.exports = function (env) { path: path.resolve(__dirname, "static/js/dist"), filename: "bundle.js", }, + devtool: "cheap-module-eval-source-map", plugins: [ new webpack.NormalModuleReplacementPlugin( /(.*)APP_TARGET(\.*)/, @@ -58,7 +59,6 @@ module.exports = function (env) { // "react-dom": "preact/compat", }, }, - devtool: "cheap-module-source-map", module: { rules: [ { @@ -71,7 +71,7 @@ module.exports = function (env) { exclude: /(node_modules|bower_components|build)/, loader: "babel-loader", options: { - presets: ["@babel/preset-react"], + presets: ["@babel/preset-env"], plugins: ["@babel/plugin-transform-runtime"], }, }, -- cgit v1.2.3-70-g09d2