Skip to content

Commit bed5006

Browse files
committed
Fix module resolver alias to work on Windows again
1 parent 310ea6a commit bed5006

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

babel.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ module.exports = (api) => {
5353
...(DEV || TEST
5454
? {
5555
alias: {
56-
'^@apache-annotator/([^/]+)$': `${packagePath}/\\1/src/index.ts`,
56+
'^@apache-annotator/([^/]+)$': ([, name]) =>
57+
path.join(packagePath, name, 'src', 'index.ts'),
5758
},
5859
resolvePath(sourcePath, currentFile, opts) {
5960
if (

0 commit comments

Comments
 (0)