@unocss/vite
Advanced tools
Comparing version 0.1.0-beta.2 to 0.1.0
@@ -145,3 +145,3 @@ var __create = Object.create; | ||
const [main, opacity2] = body.split("/"); | ||
const [name, no = "DEFAULT"] = main.split(/(?<=[a-z])-?(?=[0-9])/g); | ||
const [name, no = "DEFAULT"] = main.replace(/([a-z])([0-9])/g, "$1-$2").split(/-/g); | ||
if (!name) | ||
@@ -1262,6 +1262,7 @@ return; | ||
]; | ||
var splitterRE = /[\s'"`;]/g; | ||
var splitterRE = /[\s'"`;]+/g; | ||
var elementRE = /<[\w:\.$-]+\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g; | ||
var valuedAttributeRE = /([\w:-]+)(?:=(["'])([^\2]+?)\2)?/g; | ||
var extractorAttributify = (options) => (code) => { | ||
const result = Array.from(code.matchAll(valuedAttributeRE)).flatMap(([, name, _, content]) => { | ||
const result = Array.from(code.matchAll(elementRE)).flatMap((match) => Array.from((match[1] || "").matchAll(valuedAttributeRE))).flatMap(([, name, _, content]) => { | ||
for (const prefix of strippedPrefixes) { | ||
@@ -1268,0 +1269,0 @@ if (name.startsWith(prefix)) { |
{ | ||
"name": "@unocss/vite", | ||
"version": "0.1.0-beta.2", | ||
"version": "0.1.0", | ||
"description": "", | ||
@@ -32,5 +32,5 @@ "keywords": [], | ||
"@rollup/pluginutils": "^4.1.1", | ||
"@unocss/config": "0.1.0-beta.2", | ||
"@unocss/core": "0.1.0-beta.2", | ||
"@unocss/scope": "0.1.0-beta.2", | ||
"@unocss/config": "0.1.0", | ||
"@unocss/core": "0.1.0", | ||
"@unocss/scope": "0.1.0", | ||
"nanoevents": "^6.0.2" | ||
@@ -37,0 +37,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
98698
3384
+ Added@unocss/config@0.1.0(transitive)
+ Added@unocss/core@0.1.0(transitive)
+ Added@unocss/scope@0.1.0(transitive)
- Removed@unocss/config@0.1.0-beta.2(transitive)
- Removed@unocss/core@0.1.0-beta.2(transitive)
- Removed@unocss/scope@0.1.0-beta.2(transitive)
Updated@unocss/config@0.1.0
Updated@unocss/core@0.1.0
Updated@unocss/scope@0.1.0