Skip to content

Commit

Permalink
chore: update vue playground
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 18, 2021
1 parent 864d41d commit de2c754
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions packages/playground/vue/CustomBlockPlugin.ts
Expand Up @@ -9,8 +9,11 @@ export const vueI18nPlugin: Plugin = {
if (/\.ya?ml$/.test(id)) {
code = JSON.stringify(require('js-yaml').safeLoad(code.trim()))
}
return `export default Comp => {
return {
code: `export default Comp => {
Comp.i18n = ${code}
}`
}`,
map: { mappings: '' }
}
}
}
2 changes: 1 addition & 1 deletion packages/playground/vue/vite.config.ts
Expand Up @@ -17,7 +17,7 @@ export default defineConfig({
],
build: {
// to make tests faster
// minify: false
minify: false
},
css: {
modules: {
Expand Down

0 comments on commit de2c754

Please sign in to comment.