File tree 4 files changed +9
-3
lines changed
4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11
11
import { ref } from ' vue'
12
12
import Button from ' ./Button.vue'
13
13
14
- const count = ref ( 0 )
14
+ ref : count = 100
15
15
16
16
function inc () {
17
- count . value ++
17
+ count++
18
18
}
19
19
20
20
const hello = ' hi from scriptttt'
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ module.exports = (env = {}) => {
53
53
{
54
54
test : / \. v u e $ / ,
55
55
loader : 'vue-loader' ,
56
+ options : {
57
+ refSugar : true ,
58
+ } ,
56
59
} ,
57
60
{
58
61
test : / \. p n g $ / ,
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export interface VueLoaderOptions {
40
40
transformAssetUrls ?: SFCTemplateCompileOptions [ 'transformAssetUrls' ]
41
41
compiler ?: TemplateCompiler | string
42
42
compilerOptions ?: CompilerOptions
43
+ refSugar ?: boolean
43
44
hotReload ?: boolean
44
45
exposeFilename ?: boolean
45
46
appendExtension ?: boolean
Original file line number Diff line number Diff line change @@ -57,10 +57,12 @@ export function resolveScript(
57
57
id : scopeId ,
58
58
isProd,
59
59
inlineTemplate : enableInline ,
60
+ refSugar : options . refSugar ,
60
61
babelParserPlugins : options . babelParserPlugins ,
61
62
templateOptions : {
62
- compiler,
63
63
ssr : isServer ,
64
+ compiler,
65
+ compilerOptions : options . compilerOptions ,
64
66
transformAssetUrls : options . transformAssetUrls || true ,
65
67
} ,
66
68
} )
You can’t perform that action at this time.
0 commit comments