Skip to content

Commit

Permalink
Handle Windows-style paths in webpack config rules. (plotly#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shammamah Hossain committed Feb 27, 2020
1 parent 21da47e commit c7909e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dash-core-components/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = (env, argv) => {
},
externals,
module: {
noParse: /node_modules\/plotly.js/,
noParse: /node_modules[\\\/]plotly.js/,
rules: [
{
test: /\.jsx?$/,
Expand All @@ -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: {
Expand Down

0 comments on commit c7909e3

Please sign in to comment.