Skip to content

Commit 310ea6a

Browse files
committed
Use simpler syntax for module resolution aliases
1 parent b5be43d commit 310ea6a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

babel.config.js

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

0 commit comments

Comments
 (0)