vite-plugin-import-css-sheet
Advanced tools
Comparing version
@@ -8,4 +8,4 @@ import { randomUUID as h } from "node:crypto"; | ||
$: "\\$" | ||
}, d = (t) => new RegExp(t + `['"] *with|assert *{[(?:\r? | ||
) ]*type: *'css'[(?:\r? | ||
}, d = (t) => new RegExp(t + `['"] *(?:with|assert) *{[(?:\r? | ||
) ]*type: *['"]css['"][(?:\r? | ||
) ]*};`), i = (t) => { | ||
@@ -12,0 +12,0 @@ let e = ""; |
{ | ||
"name": "vite-plugin-import-css-sheet", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Small plugin that enables the use of tc39/proposal-import-attributes for css files in vite.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -17,3 +17,3 @@ import { randomUUID } from 'node:crypto'; | ||
const cssImportAssertRegex = (str: string) => | ||
new RegExp(str + `['"] *with|assert *{[(?:\r?\n) \t]*type: *'css'[(?:\r?\n) ]*};`); | ||
new RegExp(str + `['"] *(?:with|assert) *{[(?:\r?\n) \t]*type: *['"]css['"][(?:\r?\n) ]*};`); | ||
@@ -20,0 +20,0 @@ const convert = (str: string) => { |
Sorry, the diff of this file is not supported yet
10422
0.31%