Skip to content

Commit 2bb8396

Browse files
committed
add a hint for runtimeCompiler: true
1 parent 65d3d16 commit 2bb8396

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

generator/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,11 @@ module.exports.hooks = (api) => {
4242
content = content.replace(/HelloWorld\b/gi, 'HelloWorldWithPlugins')
4343
fs.writeFileSync(appPath, content)
4444
}
45+
46+
// TODO: check if runtimeCompiler is enabled.
47+
// config = import('vue.config')
48+
console.log(`Please make sure that Vue's runtime compiler is enabled if you
49+
plan to use template strings or single file components.\n
50+
You can add 'runtimeCompiler: true' in your vue.config.js file.`)
4551
})
4652
}

0 commit comments

Comments
 (0)