vue-loader
Advanced tools
Comparing version 16.1.0 to 16.1.1
@@ -44,8 +44,9 @@ "use strict"; | ||
const isProduction = mode === 'production'; | ||
const filename = resourcePath.replace(/\?.*$/, ''); | ||
const { descriptor, errors } = compiler_sfc_1.parse(source, { | ||
filename: resourcePath, | ||
filename, | ||
sourceMap, | ||
}); | ||
// cache descriptor | ||
descriptorCache_1.setDescriptor(resourcePath, descriptor); | ||
descriptorCache_1.setDescriptor(filename, descriptor); | ||
if (errors.length) { | ||
@@ -60,5 +61,5 @@ errors.forEach((err) => { | ||
const rawShortFilePath = path | ||
.relative(rootContext || process.cwd(), resourcePath) | ||
.relative(rootContext || process.cwd(), filename) | ||
.replace(/^(\.\.[\/\\])+/, ''); | ||
const shortFilePath = rawShortFilePath.replace(/\\/g, '/') + resourceQuery; | ||
const shortFilePath = rawShortFilePath.replace(/\\/g, '/'); | ||
const id = hash(isProduction | ||
@@ -65,0 +66,0 @@ ? shortFilePath + '\n' + source.replace(/\r\n/g, '\n') |
@@ -35,2 +35,3 @@ "use strict"; | ||
const vueLoaderUseIndex = vueUse.findIndex((u) => { | ||
// FIXME: this code logic is incorrect when project paths starts with `vue-loader-something` | ||
return /^vue-loader|(\/|\\|@)vue-loader/.test(u.loader || ''); | ||
@@ -37,0 +38,0 @@ }); |
@@ -71,2 +71,3 @@ "use strict"; | ||
const vueLoaderUseIndex = vueUse.findIndex((u) => { | ||
// FIXME: this code logic is incorrect when project paths starts with `vue-loader-something` | ||
return /^vue-loader|(\/|\\|@)vue-loader/.test(u.loader); | ||
@@ -73,0 +74,0 @@ }); |
{ | ||
"name": "vue-loader", | ||
"version": "16.1.0", | ||
"version": "16.1.1", | ||
"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
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
52289
33
1034