From 5988aab1d140a050e9cbbea90f8c101d87fa85e2 Mon Sep 17 00:00:00 2001 From: Shammamah Hossain Date: Thu, 27 Feb 2020 11:48:49 -0500 Subject: [PATCH] Handle Windows-style paths in webpack config rules. (#761) --- packages/dash-core-components/webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dash-core-components/webpack.config.js b/packages/dash-core-components/webpack.config.js index 166cc04500..0a7f232b65 100644 --- a/packages/dash-core-components/webpack.config.js +++ b/packages/dash-core-components/webpack.config.js @@ -54,7 +54,7 @@ module.exports = (env, argv) => { }, externals, module: { - noParse: /node_modules\/plotly.js/, + noParse: /node_modules[\\\/]plotly.js/, rules: [ { test: /\.jsx?$/, @@ -65,7 +65,7 @@ module.exports = (env, argv) => { }, { test: /\.jsx?$/, - include: /node_modules\/(react-jsx-parser\/)/, + include: /node_modules[\\\/](react-jsx-parser[\\\/])/, use: { loader: 'babel-loader', options: {