Skip to content

Commit 0753d06

Browse files
committed
Ensure stable scope ids with componentIdGenerator: 'filepath'
1 parent 2038b7e commit 0753d06

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/create-vue-lib/src/template/base/config/packages/@projectName@/vite.config.mts.ejs

+5-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ export default defineConfig(({ mode }): UserConfig => {
3535
__DEV__: mode === 'production' ? 'false' : mode === 'development' ? 'true' : '!(process.env.NODE_ENV === "production")'
3636
}
3737
}),
38-
vue(),
38+
vue({
39+
features: {
40+
componentIdGenerator: 'filepath'
41+
}
42+
}),
3943
dtsPlugin
4044
],
4145
<%_ if (config.includeAtAliases) { _%>

0 commit comments

Comments
 (0)