Comparing version 1.0.35 to 1.0.36
{ | ||
"name": "void-css", | ||
"version": "1.0.35", | ||
"version": "1.0.36", | ||
"description": "A JIT & statically compiled CSS processor", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,5 +13,8 @@ "use strict"; | ||
name: "void-css-plugin", | ||
resolveId(id) { | ||
return id; | ||
async configResolved(config) { | ||
void config; | ||
}, | ||
handleHotUpdate(context) { | ||
return void context; | ||
}, | ||
load(id) { | ||
@@ -21,3 +24,2 @@ if (/\.vcss(?:\?import)?$/.test(id)) { | ||
return ` | ||
var updateDynamicStyles = ${(0, runtime_1.clientDevelopment)(compiler(content), Buffer.from(id, "utf-8").toString("base64"), id)} | ||
@@ -27,3 +29,3 @@ export default updateDynamicStyles; | ||
} | ||
} | ||
}, | ||
}; | ||
@@ -30,0 +32,0 @@ return plugin; |
@@ -6,23 +6,25 @@ import VoidCSS from "../../../index"; | ||
export default function viteVoidCSS(...args: Parameters<typeof VoidCSS>) { | ||
const compiler = VoidCSS(...args); | ||
const compiler = VoidCSS(...args); | ||
const plugin = { | ||
name: "void-css-plugin", | ||
resolveId(id: string) { | ||
return id; | ||
}, | ||
load(id: string): any { | ||
if (/\.vcss(?:\?import)?$/.test(id)) { | ||
const content = fs.readFileSync(id, "utf8"); | ||
return ` | ||
const plugin = { | ||
name: "void-css-plugin", | ||
async configResolved(config: any) { | ||
void config; | ||
}, | ||
handleHotUpdate(context: any) { | ||
return void context; | ||
}, | ||
load(id: string): any { | ||
if (/\.vcss(?:\?import)?$/.test(id)) { | ||
const content = fs.readFileSync(id, "utf8"); | ||
return ` | ||
var updateDynamicStyles = ${clientDevelopment(compiler(content), Buffer.from(id, "utf-8").toString("base64"), id)} | ||
export default updateDynamicStyles; | ||
`; | ||
} | ||
} | ||
} | ||
return plugin; | ||
} | ||
}, | ||
} | ||
return plugin; | ||
} |
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
211895
4444