Skip to content

Commit

Permalink
feat: set "@" a alias of "./src"
Browse files Browse the repository at this point in the history
  • Loading branch information
liximomo committed Oct 21, 2022
1 parent 15e17b8 commit d657f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/service/src/bundler/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function createWebpackConfig(

chain.resolve.alias.set('@shuvi/app', paths.appDir);
chain.resolve.alias.set('@shuvi/runtime', paths.runtimeDir);
chain.resolve.alias.set('@shuvi/user', paths.srcDir);
chain.resolve.alias.set('@', paths.srcDir);

return chain;
}

0 comments on commit d657f47

Please sign in to comment.