File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import * as qs from 'querystring'
4
4
5
5
import hash = require( 'hash-sum' )
6
6
7
+ import { Template } from 'webpack'
8
+
7
9
import { compiler } from './compiler'
8
10
import type {
9
11
TemplateCompiler ,
@@ -309,13 +311,13 @@ export default function loader(
309
311
310
312
/* Style injection in beforeCreate */
311
313
if ( / i n j e c t S t y l e s / . test ( stylesCode ) ) {
312
- code += webpack . Template . asString ( [
314
+ code += Template . asString ( [
313
315
'\n' ,
314
316
`const _useSSRContext_ = require('vue').useSSRContext` ,
315
317
'const _oldBeforeCreate_ = script.beforeCreate' ,
316
318
'' ,
317
319
'function _beforeCreate_() {' ,
318
- webpack . Template . indent ( [
320
+ Template . indent ( [
319
321
'const ssrContext = _useSSRContext_()' ,
320
322
'injectStyles(ssrContext)' ,
321
323
`if (typeof _oldBeforeCreate_ === 'function') { _oldBeforeCreate_() }` ,
You can’t perform that action at this time.
0 commit comments