@kuma-ui/vite
Advanced tools
Comparing version 0.4.3 to 0.5.0
@@ -45,14 +45,13 @@ "use strict"; | ||
const cssLookup = {}; | ||
function filter(file) { | ||
return /\.(t|j)(s|sx)?$/.test(file); | ||
} | ||
return { | ||
name: "kuma-ui", | ||
enforce: "post", | ||
enforce: "pre", | ||
async transform(code, id) { | ||
requireReact(code, id); | ||
if (id.includes("@kuma-ui")) | ||
return; | ||
if (!filter(id)) | ||
if (!/\.(t|j)(s|sx)?$/.test(id)) | ||
return; | ||
if (!/import\s+.+\s+from\s+['"]\@kuma-ui\/core['"]/.test(code)) | ||
return; | ||
requireReact(code, id); | ||
const result = await (0, import_babel_plugin.transform)(code, id); | ||
@@ -59,0 +58,0 @@ if (!result?.code) |
{ | ||
"name": "@kuma-ui/vite", | ||
"version": "0.4.3", | ||
"version": "0.5.0", | ||
"description": "🐻 Kuma UI is a utility-first, zero-runtime CSS-in-JS library that offers an outstanding developer experience and optimized performance.", | ||
@@ -30,4 +30,4 @@ "repository": { | ||
"dependencies": { | ||
"@kuma-ui/sheet": "^0.5.0", | ||
"@kuma-ui/babel-plugin": "^0.8.0" | ||
"@kuma-ui/babel-plugin": "^0.9.0", | ||
"@kuma-ui/sheet": "^0.5.0" | ||
}, | ||
@@ -34,0 +34,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
12769
216
+ Added@kuma-ui/babel-plugin@0.9.0(transitive)
- Removed@kuma-ui/babel-plugin@0.8.0(transitive)
Updated@kuma-ui/babel-plugin@^0.9.0