Skip to content

Commit

Permalink
[plugin-webpack] fix unnamed import scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Sep 25, 2020
1 parent f2dad02 commit 9891763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/plugin-webpack/plugins/proxy-import-resolve.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = function proxyImportResolver(source) {
return source.replace(/from\s*['"].*\.(\w+)\.proxy\.js['"]/g, (fullMatch, originalExt) => {
return source.replace(/(?:import|from)\s*['"].*\.(\w+)\.proxy\.js['"]/g, (fullMatch, originalExt) => {
return fullMatch.replace('.proxy.js', '');
});
};

1 comment on commit 9891763

@vercel
Copy link

@vercel vercel bot commented on 9891763 Sep 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.