@jsenv/plugin-transpilation 1.5.52 → 1.5.59
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-transpilation",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.59",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"@babel/plugin-syntax-optional-catch-binding": "7.8.3",
|
|
25
25
|
"@babel/plugin-transform-arrow-functions": "7.27.1",
|
|
26
26
|
"@babel/plugin-transform-block-scoped-functions": "7.27.1",
|
|
27
|
-
"@babel/plugin-transform-block-scoping": "7.
|
|
28
|
-
"@babel/plugin-transform-classes": "7.
|
|
27
|
+
"@babel/plugin-transform-block-scoping": "7.28.0",
|
|
28
|
+
"@babel/plugin-transform-classes": "7.28.0",
|
|
29
29
|
"@babel/plugin-transform-computed-properties": "7.27.1",
|
|
30
|
-
"@babel/plugin-transform-destructuring": "7.
|
|
30
|
+
"@babel/plugin-transform-destructuring": "7.28.0",
|
|
31
31
|
"@babel/plugin-transform-dotall-regex": "7.27.1",
|
|
32
32
|
"@babel/plugin-transform-duplicate-keys": "7.27.1",
|
|
33
33
|
"@babel/plugin-transform-exponentiation-operator": "7.27.1",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"@babel/plugin-transform-literals": "7.27.1",
|
|
38
38
|
"@babel/plugin-transform-new-target": "7.27.1",
|
|
39
39
|
"@babel/plugin-transform-numeric-separator": "7.27.1",
|
|
40
|
-
"@babel/plugin-transform-object-rest-spread": "7.
|
|
40
|
+
"@babel/plugin-transform-object-rest-spread": "7.28.0",
|
|
41
41
|
"@babel/plugin-transform-object-super": "7.27.1",
|
|
42
42
|
"@babel/plugin-transform-optional-catch-binding": "7.27.1",
|
|
43
43
|
"@babel/plugin-transform-optional-chaining": "7.27.1",
|
|
44
|
-
"@babel/plugin-transform-parameters": "7.27.
|
|
45
|
-
"@babel/plugin-transform-regenerator": "7.
|
|
44
|
+
"@babel/plugin-transform-parameters": "7.27.7",
|
|
45
|
+
"@babel/plugin-transform-regenerator": "7.28.1",
|
|
46
46
|
"@babel/plugin-transform-shorthand-properties": "7.27.1",
|
|
47
47
|
"@babel/plugin-transform-spread": "7.27.1",
|
|
48
48
|
"@babel/plugin-transform-sticky-regex": "7.27.1",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"@babel/plugin-transform-typeof-symbol": "7.27.1",
|
|
51
51
|
"@babel/plugin-transform-unicode-property-regex": "7.27.1",
|
|
52
52
|
"@babel/plugin-transform-unicode-regex": "7.27.1",
|
|
53
|
-
"@jsenv/ast": "6.7.
|
|
54
|
-
"@jsenv/js-module-fallback": "1.4.
|
|
53
|
+
"@jsenv/ast": "6.7.13",
|
|
54
|
+
"@jsenv/js-module-fallback": "1.4.21",
|
|
55
55
|
"@jsenv/sourcemap": "1.3.10",
|
|
56
56
|
"@jsenv/urls": "2.9.1",
|
|
57
57
|
"@jsenv/utils": "2.3.1",
|
|
58
58
|
"babel-plugin-transform-async-to-promises": "0.8.18",
|
|
59
59
|
"construct-style-sheets-polyfill": "3.1.0",
|
|
60
|
-
"lightningcss": "1.
|
|
60
|
+
"lightningcss": "1.30.1"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=16.13.0"
|
|
@@ -210,10 +210,11 @@ document.adoptedStyleSheets = [...document.adoptedStyleSheets, stylesheet];
|
|
|
210
210
|
`;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
+
const cssServerUrl = cssUrlInfo.context.asServerUrl(cssUrlInfo.url);
|
|
213
214
|
let cssModuleContent = `import ${JSON.stringify(cssUrlInfo.context.inlineContentClientFileUrl)};
|
|
214
215
|
|
|
215
216
|
const inlineContent = ${inlineContentCall};
|
|
216
|
-
const stylesheet = new CSSStyleSheet();
|
|
217
|
+
const stylesheet = new CSSStyleSheet({ baseUrl: ${JSON.stringify(cssServerUrl)} });
|
|
217
218
|
stylesheet.replaceSync(inlineContent.text);
|
|
218
219
|
${cssModuleAutoInjectCode}
|
|
219
220
|
export default stylesheet;`;
|