@@ -63,7 +63,7 @@ node -e "require('express')().use(require('express').static(__dirname, {index:'i
63
63
if ( url === ' /main.vue' )
64
64
return Promise .resolve (mainComponent);
65
65
},
66
- addStyle () {},
66
+ addStyle () { /* unused here */ },
67
67
}
68
68
69
69
loadModule (' ./main.vue' , options)
@@ -224,7 +224,7 @@ node -e "require('express')().use(require('express').static(__dirname, {index:'i
224
224
if ( url === ' /myComponent.vue' )
225
225
return Promise .resolve (sfcContent);
226
226
},
227
- addStyle () {},
227
+ addStyle () { /* unused here */ },
228
228
}
229
229
230
230
const { loadModule } = window [' vue3-sfc-loader' ];
321
321
const options = {
322
322
moduleCache: {
323
323
vue: Vue,
324
- stylus : source => Object .assign (stylus (source), { deps : () => [] }), // note: deps() does not work in this bundle of stylus (see https://stylus-lang.com/docs/js.html#deps)
324
+ // note: deps() does not work in this bundle of stylus (see https://stylus-lang.com/docs/js.html#deps)
325
+ stylus : source => Object .assign (stylus (source), { deps : () => [] }),
325
326
},
326
327
getFile : () => vueContent,
327
328
addStyle (styleStr ) {
@@ -470,7 +471,7 @@ _see at [vuejs/rfcs](https://github.com/vuejs/rfcs/pull/231)_
470
471
if ( url === ' /myComponent.vue' )
471
472
return Promise .resolve (sfcContent);
472
473
},
473
- addStyle () {},
474
+ addStyle () { /* unused here */ },
474
475
}
475
476
476
477
const { loadModule } = window [' vue3-sfc-loader' ];
@@ -523,7 +524,7 @@ In the following example we use a trick to preserve reactivity through the `Vue.
523
524
})[url] || Promise .reject ( new Error (res .statusText ) );
524
525
},
525
526
526
- addStyle () { /* ignore styles */ },
527
+ addStyle () { /* unused here */ },
527
528
}
528
529
529
530
const { loadModule } = window [" vue3-sfc-loader" ];
@@ -827,7 +828,8 @@ In the following example we use a trick to preserve reactivity through the `Vue.
827
828
addStyle () { /* unused here */ },
828
829
}
829
830
830
- Vue .createApp (Vue .defineAsyncComponent (() => window [' vue3-sfc-loader' ].loadModule (' /main.vue' , options))).mount (document .body );
831
+ const { loadModule } = window [' vue3-sfc-loader' ];
832
+ Vue .createApp (Vue .defineAsyncComponent (() => loadModule (' /main.vue' , options))).mount (document .body );
831
833
832
834
</script >
833
835
</body >
0 commit comments