Skip to content

Commit

Permalink
Fix build for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAMS committed Oct 6, 2020
1 parent e42d3ec commit a4608b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ readDir(widgetDir)
return widgetConfig.core || (!widgetConfig.core && file.indexOf('Core') === -1);
})
.forEach(e => {
const core = e.replace('.js', '');
const core = e.replace('.js', '').replace(/\\/g, "/");
const obj = {};
entry[e.replace('.js', '')] = path.join(__dirname, widgetDir, e);
entry[ core ] = path.normalize(path.join(__dirname, widgetDir, e));
obj[ core ] = `${packageName}/${widgetFolder}/${core}`;
externals.push(obj);
});
Expand Down

0 comments on commit a4608b4

Please sign in to comment.