'How to configure delimiters in vue.js version 3+ using build tools?
I was stuck with this for a while.
The official site gave this:
// Delimiters changed to ES6 template string style app.config.compilerOptions.delimiters = ['${', '}']
but it doesn't work for build setup only as mentioned in the site.. it only works for standalone vue.js
Solution 1:[1]
Posting @Emperorsum's own answer here:
Anyway this finally worked:
Editing vite.config.js thus:
// https://vitejs.dev/config/ export default defineConfig({ plugins: [vue({ template:{ compilerOptions: { delimiters: ["[[","]]"] } } })], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } }, })
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | tony19 |
