@vue/compiler-sfc
Advanced tools
Comparing version 3.0.0-beta.15 to 3.0.0-beta.16
@@ -220,2 +220,6 @@ 'use strict'; | ||
} | ||
const dataUrlRE = /^\s*data:/i; | ||
function isDataUrl(url) { | ||
return dataUrlRE.test(url); | ||
} | ||
/** | ||
@@ -299,2 +303,3 @@ * Parses string url into URL object. | ||
isExternalUrl(attr.value.content) || | ||
isDataUrl(attr.value.content) || | ||
attr.value.content[0] === '#' || | ||
@@ -380,2 +385,10 @@ (!options.includeAbsolute && !isRelativeUrl(attr.value.content))) { | ||
}); | ||
// for data url need recheck url | ||
for (let i = 0; i < imageCandidates.length; i++) { | ||
if (imageCandidates[i].url.trim().startsWith('data:')) { | ||
imageCandidates[i + 1].url = | ||
imageCandidates[i].url + ',' + imageCandidates[i + 1].url; | ||
imageCandidates.splice(i, 1); | ||
} | ||
} | ||
// When srcset does not contain any relative URLs, skip transforming | ||
@@ -404,2 +417,3 @@ if (!options.includeAbsolute && | ||
if (!isExternalUrl(url) && | ||
!isDataUrl(url) && | ||
(options.includeAbsolute || isRelativeUrl(url))) { | ||
@@ -406,0 +420,0 @@ const { path } = parseUrl(url); |
{ | ||
"name": "@vue/compiler-sfc", | ||
"version": "3.0.0-beta.15", | ||
"version": "3.0.0-beta.16", | ||
"description": "@vue/compiler-sfc", | ||
@@ -34,9 +34,9 @@ "main": "dist/compiler-sfc.cjs.js", | ||
"peerDependencies": { | ||
"vue": "3.0.0-beta.15" | ||
"vue": "3.0.0-beta.16" | ||
}, | ||
"dependencies": { | ||
"@vue/compiler-core": "3.0.0-beta.15", | ||
"@vue/compiler-dom": "3.0.0-beta.15", | ||
"@vue/compiler-ssr": "3.0.0-beta.15", | ||
"@vue/shared": "3.0.0-beta.15", | ||
"@vue/compiler-core": "3.0.0-beta.16", | ||
"@vue/compiler-dom": "3.0.0-beta.16", | ||
"@vue/compiler-ssr": "3.0.0-beta.16", | ||
"@vue/shared": "3.0.0-beta.16", | ||
"consolidate": "^0.15.1", | ||
@@ -47,3 +47,3 @@ "hash-sum": "^2.0.0", | ||
"postcss": "^7.0.27", | ||
"postcss-modules": "^2.0.0", | ||
"postcss-modules": "^3.1.0", | ||
"postcss-selector-parser": "^6.0.2", | ||
@@ -50,0 +50,0 @@ "source-map": "^0.6.1" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
2191324
9
+ Added@vue/compiler-core@3.0.0-beta.16(transitive)
+ Added@vue/compiler-dom@3.0.0-beta.16(transitive)
+ Added@vue/compiler-ssr@3.0.0-beta.16(transitive)
+ Added@vue/reactivity@3.0.0-beta.16(transitive)
+ Added@vue/runtime-core@3.0.0-beta.16(transitive)
+ Added@vue/runtime-dom@3.0.0-beta.16(transitive)
+ Added@vue/shared@3.0.0-beta.16(transitive)
+ Addedicss-utils@4.1.1(transitive)
+ Addedpostcss-modules@3.2.2(transitive)
+ Addedpostcss-modules-extract-imports@2.0.0(transitive)
+ Addedpostcss-modules-local-by-default@3.0.3(transitive)
+ Addedpostcss-modules-scope@2.2.0(transitive)
+ Addedpostcss-modules-values@3.0.0(transitive)
+ Addedpostcss-value-parser@4.2.0(transitive)
+ Addedvue@3.0.0-beta.16(transitive)
- Removed@vue/compiler-core@3.0.0-beta.15(transitive)
- Removed@vue/compiler-dom@3.0.0-beta.15(transitive)
- Removed@vue/compiler-ssr@3.0.0-beta.15(transitive)
- Removed@vue/reactivity@3.0.0-beta.15(transitive)
- Removed@vue/runtime-core@3.0.0-beta.15(transitive)
- Removed@vue/runtime-dom@3.0.0-beta.15(transitive)
- Removed@vue/shared@3.0.0-beta.15(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.13.2.1(transitive)
- Removedchalk@1.1.32.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcss-modules-loader-core@1.1.0(transitive)
- Removedcss-selector-tokenizer@0.7.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedfastparse@1.1.2(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhas-flag@1.0.03.0.0(transitive)
- Removedpostcss@6.0.16.0.23(transitive)
- Removedpostcss-modules@2.0.0(transitive)
- Removedpostcss-modules-extract-imports@1.1.0(transitive)
- Removedpostcss-modules-local-by-default@1.2.0(transitive)
- Removedpostcss-modules-scope@1.1.0(transitive)
- Removedpostcss-modules-values@1.3.0(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.03.2.35.5.0(transitive)
- Removedvue@3.0.0-beta.15(transitive)
Updated@vue/shared@3.0.0-beta.16
Updatedpostcss-modules@^3.1.0