3. run `vite build` on windows
Occurs rollup error
[rollup-plugin-dynamic-import-variables] Bad character escape sequence (8:107)
file: C:\path-to-my-vue-app\src\ui\AnyComponentName.vue:8:107
error during build:
SyntaxError: Bad character escape sequence (8:107)
The reson is generated code contains `\u...` symbol: `import { render as ... } from 'C:\path-to-my-vue-app\src\ui\AnyComponentName.vue?vue&type=template&lang.js'`.
Without manualChunks it has correct string of import: `'C:/path-to-my-vue-app/src/ui/AnyComponentName.vue?vue&type=template&lang.js'` and works propertly.
ui
, for examplesrc/ui/AnyComponentName.vue
with any template, for example<template><div /></template>
export default defineConfig({ plugins: [ createVuePlugin(), ], build: { rollupOptions: { output: { manualChunks: { anyNameOfChunk: [ 'src/ui/AnyComponentName.vue' ] } } } }, })
[rollup-plugin-dynamic-import-variables] Bad character escape sequence (8:107) file: C:\path-to-my-vue-app\src\ui\AnyComponentName.vue:8:107 error during build: SyntaxError: Bad character escape sequence (8:107)