Skip to content

Commit 6a7c331

Browse files
add resolve paths to rsbuild
Signed-off-by: Carlos Feria <2582866+carlosthe19916@users.noreply.github.com>
1 parent 4605116 commit 6a7c331

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client/rsbuild.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ export const ignoreProcessEnv = (): RsbuildPlugin => ({
8484

8585
export default defineConfig({
8686
plugins: [pluginReact(), renameIndex(), ignoreProcessEnv()],
87+
resolve: {
88+
alias: {
89+
"@app": path.resolve(__dirname, "./src/app"),
90+
"@mocks": path.resolve(__dirname, "./src/mocks"),
91+
},
92+
},
8793
html: {
8894
template: path.join(__dirname, "index.html"),
8995
templateParameters: {

0 commit comments

Comments
 (0)