File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1111import { ref } from ' vue'
1212import Button from ' ./Button.vue'
1313
14- const count = ref ( 0 )
14+ ref : count = 100
1515
1616function inc () {
17- count . value ++
17+ count++
1818}
1919
2020const hello = ' hi from scriptttt'
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ module.exports = (env = {}) => {
5353 {
5454 test : / \. v u e $ / ,
5555 loader : 'vue-loader' ,
56+ options : {
57+ refSugar : true ,
58+ } ,
5659 } ,
5760 {
5861 test : / \. p n g $ / ,
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export interface VueLoaderOptions {
4040 transformAssetUrls ?: SFCTemplateCompileOptions [ 'transformAssetUrls' ]
4141 compiler ?: TemplateCompiler | string
4242 compilerOptions ?: CompilerOptions
43+ refSugar ?: boolean
4344 hotReload ?: boolean
4445 exposeFilename ?: boolean
4546 appendExtension ?: boolean
Original file line number Diff line number Diff line change @@ -57,10 +57,12 @@ export function resolveScript(
5757 id : scopeId ,
5858 isProd,
5959 inlineTemplate : enableInline ,
60+ refSugar : options . refSugar ,
6061 babelParserPlugins : options . babelParserPlugins ,
6162 templateOptions : {
62- compiler,
6363 ssr : isServer ,
64+ compiler,
65+ compilerOptions : options . compilerOptions ,
6466 transformAssetUrls : options . transformAssetUrls || true ,
6567 } ,
6668 } )
You can’t perform that action at this time.
0 commit comments