Skip to content

Commit dfd8a53

Browse files
authored
fix: fix Configuring Alias And Externals example error (#155)
1 parent 5392a4a commit dfd8a53

File tree

1 file changed

+4
-6
lines changed
  • i18n/zh/docusaurus-plugin-content-docs/current/tutorials

1 file changed

+4
-6
lines changed

i18n/zh/docusaurus-plugin-content-docs/current/tutorials/2-start.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,11 @@ export default defineConfig({
266266
compilation: {
267267
resolve: {
268268
alias: {
269-
'@/': path.join(process.cwd(), 'src')
269+
"@/": path.join(process.cwd(), "src"),
270270
},
271-
externals: [
272-
'node:fs'
273-
]
274-
}
275-
}
271+
},
272+
externals: ["node:fs"],
273+
},
276274
// ...
277275
});
278276
```

0 commit comments

Comments
 (0)