Skip to content

Commit

Permalink
Fix scope regex
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed Jan 14, 2020
1 parent b4d5fd3 commit 9929b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/importType.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function isExternalModuleMain(name, settings, path) {
return externalModuleMainRegExp.test(name) && isExternalPath(path, name, settings)
}

const scopedRegExp = /^@[^/]+\/?[^/]+/
const scopedRegExp = /^@[^/]*\/?[^/]+/
export function isScoped(name) {
return scopedRegExp.test(name)
}
Expand Down

0 comments on commit 9929b90

Please sign in to comment.