vue-loader
Advanced tools
Comparing version 16.0.0-beta.4 to 16.0.0-beta.5
@@ -7,3 +7,3 @@ import webpack from 'webpack'; | ||
transformAssetUrls?: SFCTemplateCompileOptions['transformAssetUrls']; | ||
compiler?: TemplateCompiler; | ||
compiler?: TemplateCompiler | string; | ||
compilerOptions?: CompilerOptions; | ||
@@ -10,0 +10,0 @@ hotReload?: boolean; |
@@ -25,2 +25,9 @@ "use strict"; | ||
const scopeId = query.scoped ? `data-v-${query.id}` : null; | ||
let compiler; | ||
if (typeof options.compiler === 'string') { | ||
compiler = require(options.compiler); | ||
} | ||
else { | ||
compiler = options.compiler; | ||
} | ||
const compiled = compiler_sfc_1.compileTemplate({ | ||
@@ -30,3 +37,3 @@ source, | ||
filename: loaderContext.resourcePath, | ||
compiler: options.compiler, | ||
compiler, | ||
compilerOptions: Object.assign(Object.assign({}, options.compilerOptions), { scopeId }), | ||
@@ -33,0 +40,0 @@ transformAssetUrls: options.transformAssetUrls || true |
{ | ||
"name": "vue-loader", | ||
"version": "16.0.0-beta.4", | ||
"version": "16.0.0-beta.5", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Evan You", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46445
890
2