ns-tailwind-vite 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/nativescript.vite.mjs +2 -2
- package/package.json +4 -2
- package/src/css-transformer.js +3 -1
package/nativescript.vite.mjs
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* by NativeScript's Vite plugin.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import nativescriptTailwind from "
|
|
8
|
+
import nativescriptTailwind from "ns-tailwind-vite";
|
|
9
9
|
|
|
10
10
|
export default () => {
|
|
11
11
|
return {
|
|
12
|
-
plugins: [nativescriptTailwind()],
|
|
12
|
+
plugins: [...nativescriptTailwind()],
|
|
13
13
|
};
|
|
14
14
|
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ns-tailwind-vite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "TailwindCSS v4 for NativeScript with Vite support",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./src/index.js",
|
|
9
|
-
"./vite": "./src/vite-plugin.js"
|
|
9
|
+
"./vite": "./src/vite-plugin.js",
|
|
10
|
+
"./package.json": "./package.json"
|
|
10
11
|
},
|
|
12
|
+
"sideEffects": false,
|
|
11
13
|
"files": [
|
|
12
14
|
"src",
|
|
13
15
|
"nativescript.vite.mjs"
|
package/src/css-transformer.js
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
* This is a pure JavaScript implementation without PostCSS dependency.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { createRequire } from "module";
|
|
9
|
+
const require = createRequire(import.meta.url);
|
|
10
|
+
const { parseSingle, serialize } = require("@hookun/parse-animation-shorthand");
|
|
9
11
|
|
|
10
12
|
const remRE = /(\d*\.?\d+)\s*r?em/g;
|
|
11
13
|
|