@parcel/transformer-css 2.0.0-nightly.1471 → 2.0.0-nightly.1481
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/package.json +7 -7
- package/wasm-wrapper.js +0 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/transformer-css",
|
|
3
|
-
"version": "2.0.0-nightly.
|
|
3
|
+
"version": "2.0.0-nightly.1481+e92fe6448",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"source": "src/CSSTransformer.js",
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">= 12.0.0",
|
|
20
|
-
"parcel": "2.0.0-nightly.
|
|
20
|
+
"parcel": "2.0.0-nightly.1479+e92fe6448"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@parcel/diagnostic": "2.0.0-nightly.
|
|
24
|
-
"@parcel/plugin": "2.0.0-nightly.
|
|
23
|
+
"@parcel/diagnostic": "2.0.0-nightly.1481+e92fe6448",
|
|
24
|
+
"@parcel/plugin": "2.0.0-nightly.1481+e92fe6448",
|
|
25
25
|
"@parcel/source-map": "^2.1.1",
|
|
26
|
-
"@parcel/utils": "2.0.0-nightly.
|
|
26
|
+
"@parcel/utils": "2.0.0-nightly.1481+e92fe6448",
|
|
27
27
|
"browserslist": "^4.6.6",
|
|
28
28
|
"lightningcss": "^1.22.1",
|
|
29
29
|
"nullthrows": "^1.1.1"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"lightningcss-wasm": "^1.22.1"
|
|
33
33
|
},
|
|
34
34
|
"browser": {
|
|
35
|
-
"lightningcss": "
|
|
35
|
+
"lightningcss": "lightningcss-wasm"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "e92fe6448955f43a02c1bdca8f7e61bb86b1ac78"
|
|
38
38
|
}
|
package/wasm-wrapper.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import {transform, transformStyleAttribute} from 'lightningcss-wasm';
|
|
2
|
-
|
|
3
|
-
export {default, browserslistToTargets} from 'lightningcss-wasm';
|
|
4
|
-
|
|
5
|
-
// Hydrate Uint8Array into Buffer
|
|
6
|
-
|
|
7
|
-
function transformWrapper(config) {
|
|
8
|
-
let result = transform(config);
|
|
9
|
-
return {
|
|
10
|
-
...result,
|
|
11
|
-
code: Buffer.from(result.code),
|
|
12
|
-
map: result.map ? Buffer.from(result.map) : result.map,
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
function transformStyleAttributeWrapper(config) {
|
|
16
|
-
let result = transformStyleAttribute(config);
|
|
17
|
-
return {
|
|
18
|
-
...result,
|
|
19
|
-
code: Buffer.from(result.code),
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export {
|
|
24
|
-
transformWrapper as transform,
|
|
25
|
-
transformStyleAttributeWrapper as transformStyleAttribute,
|
|
26
|
-
};
|