Skip to content

Commit

Permalink
Merge pull request #606 from MediaMonksForks/fix-module-regex-windows
Browse files Browse the repository at this point in the history
Check for backwards slashes in module regex
  • Loading branch information
zloirock authored Jul 24, 2019
2 parents 5adfcd9 + 52543a6 commit 9205a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js-compat/src/build-entries.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const data = require('./data');
const order = Object.keys(data);

function getModulesForEntryPoint(entry) {
const match = entry.match(/\/modules\/([^/]+)$/);
const match = entry.match(/[/\\]modules[/\\]([^/\\]+)$/);
if (match) return [match[1]];
const name = require.resolve(entry);
const result = [];
Expand Down

0 comments on commit 9205a94

Please sign in to comment.