diff --git a/webpack.config.js b/webpack.config.js index a3bc623286..f9105f8445 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -49,9 +49,7 @@ module.exports = { }, resolve: { extensions: [".js", ".jsx"], - alias: { - esquery: path.resolve(__dirname, "src/js/demo/node_modules/esquery/dist/esquery.js") - } + mainFields: ["browser", "main", "module"] }, stats: "errors-only" };