Skip to content

Commit 5988aab

Browse files
author
Shammamah Hossain
committed
Handle Windows-style paths in webpack config rules. (#761)
1 parent 8cc8d49 commit 5988aab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/dash-core-components/webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = (env, argv) => {
5454
},
5555
externals,
5656
module: {
57-
noParse: /node_modules\/plotly.js/,
57+
noParse: /node_modules[\\\/]plotly.js/,
5858
rules: [
5959
{
6060
test: /\.jsx?$/,
@@ -65,7 +65,7 @@ module.exports = (env, argv) => {
6565
},
6666
{
6767
test: /\.jsx?$/,
68-
include: /node_modules\/(react-jsx-parser\/)/,
68+
include: /node_modules[\\\/](react-jsx-parser[\\\/])/,
6969
use: {
7070
loader: 'babel-loader',
7171
options: {

0 commit comments

Comments
 (0)