@jsenv/plugin-transpilation 1.3.6 → 1.3.8
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 +26 -26
- package/src/babel/babel_helper_directory/README.md +1 -1
- package/src/babel/babel_helper_directory/babel_helpers/applyDecs2301/applyDecs2301.js +2 -2
- package/src/babel/babel_helper_directory/babel_helpers/applyDecs2305/applyDecs2305.js +2 -2
- package/src/js_module_fallback/jsenv_plugin_js_module_fallback_inside_html.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-transpilation",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,33 +26,33 @@
|
|
|
26
26
|
"@babel/plugin-proposal-optional-catch-binding": "7.18.6",
|
|
27
27
|
"@babel/plugin-proposal-optional-chaining": "7.21.0",
|
|
28
28
|
"@babel/plugin-proposal-unicode-property-regex": "7.18.6",
|
|
29
|
-
"@babel/plugin-syntax-import-assertions": "7.
|
|
29
|
+
"@babel/plugin-syntax-import-assertions": "7.23.3",
|
|
30
30
|
"@babel/plugin-syntax-object-rest-spread": "7.8.3",
|
|
31
31
|
"@babel/plugin-syntax-optional-catch-binding": "7.8.3",
|
|
32
|
-
"@babel/plugin-transform-arrow-functions": "7.
|
|
33
|
-
"@babel/plugin-transform-block-scoped-functions": "7.
|
|
34
|
-
"@babel/plugin-transform-block-scoping": "7.23.
|
|
35
|
-
"@babel/plugin-transform-classes": "7.
|
|
36
|
-
"@babel/plugin-transform-computed-properties": "7.
|
|
37
|
-
"@babel/plugin-transform-destructuring": "7.23.
|
|
38
|
-
"@babel/plugin-transform-dotall-regex": "7.
|
|
39
|
-
"@babel/plugin-transform-duplicate-keys": "7.
|
|
40
|
-
"@babel/plugin-transform-exponentiation-operator": "7.
|
|
41
|
-
"@babel/plugin-transform-for-of": "7.
|
|
42
|
-
"@babel/plugin-transform-function-name": "7.
|
|
43
|
-
"@babel/plugin-transform-literals": "7.
|
|
44
|
-
"@babel/plugin-transform-new-target": "7.
|
|
45
|
-
"@babel/plugin-transform-object-super": "7.
|
|
46
|
-
"@babel/plugin-transform-parameters": "7.
|
|
47
|
-
"@babel/plugin-transform-regenerator": "7.
|
|
48
|
-
"@babel/plugin-transform-shorthand-properties": "7.
|
|
49
|
-
"@babel/plugin-transform-spread": "7.
|
|
50
|
-
"@babel/plugin-transform-sticky-regex": "7.
|
|
51
|
-
"@babel/plugin-transform-template-literals": "7.
|
|
52
|
-
"@babel/plugin-transform-typeof-symbol": "7.
|
|
53
|
-
"@babel/plugin-transform-unicode-regex": "7.
|
|
54
|
-
"@jsenv/ast": "
|
|
55
|
-
"@jsenv/js-module-fallback": "1.3.
|
|
32
|
+
"@babel/plugin-transform-arrow-functions": "7.23.3",
|
|
33
|
+
"@babel/plugin-transform-block-scoped-functions": "7.23.3",
|
|
34
|
+
"@babel/plugin-transform-block-scoping": "7.23.3",
|
|
35
|
+
"@babel/plugin-transform-classes": "7.23.3",
|
|
36
|
+
"@babel/plugin-transform-computed-properties": "7.23.3",
|
|
37
|
+
"@babel/plugin-transform-destructuring": "7.23.3",
|
|
38
|
+
"@babel/plugin-transform-dotall-regex": "7.23.3",
|
|
39
|
+
"@babel/plugin-transform-duplicate-keys": "7.23.3",
|
|
40
|
+
"@babel/plugin-transform-exponentiation-operator": "7.23.3",
|
|
41
|
+
"@babel/plugin-transform-for-of": "7.23.3",
|
|
42
|
+
"@babel/plugin-transform-function-name": "7.23.3",
|
|
43
|
+
"@babel/plugin-transform-literals": "7.23.3",
|
|
44
|
+
"@babel/plugin-transform-new-target": "7.23.3",
|
|
45
|
+
"@babel/plugin-transform-object-super": "7.23.3",
|
|
46
|
+
"@babel/plugin-transform-parameters": "7.23.3",
|
|
47
|
+
"@babel/plugin-transform-regenerator": "7.23.3",
|
|
48
|
+
"@babel/plugin-transform-shorthand-properties": "7.23.3",
|
|
49
|
+
"@babel/plugin-transform-spread": "7.23.3",
|
|
50
|
+
"@babel/plugin-transform-sticky-regex": "7.23.3",
|
|
51
|
+
"@babel/plugin-transform-template-literals": "7.23.3",
|
|
52
|
+
"@babel/plugin-transform-typeof-symbol": "7.23.3",
|
|
53
|
+
"@babel/plugin-transform-unicode-regex": "7.23.3",
|
|
54
|
+
"@jsenv/ast": "6.0.1",
|
|
55
|
+
"@jsenv/js-module-fallback": "1.3.9",
|
|
56
56
|
"@jsenv/runtime-compat": "1.2.0",
|
|
57
57
|
"babel-plugin-transform-async-to-promises": "0.8.18",
|
|
58
58
|
"construct-style-sheets-polyfill": "3.1.0",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Babel helpers are copied in there to properly appear in sourcemap.
|
|
4
4
|
|
|
5
|
-
- Last sync date:
|
|
5
|
+
- Last sync date: 16 November 2023
|
|
6
6
|
|
|
7
7
|
- Helpers file: https://github.com/babel/babel/blob/main/packages/babel-helpers/src/helpers.ts
|
|
8
8
|
- Individual helpers: https://github.com/babel/babel/tree/main/packages/babel-helpers/src/helpers
|
|
@@ -136,8 +136,8 @@ function applyDecs2301Factory() {
|
|
|
136
136
|
get && set
|
|
137
137
|
? { get: get, set: set, has: has }
|
|
138
138
|
: get
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
? { get: get, has: has }
|
|
140
|
+
: { set: set, has: has };
|
|
141
141
|
|
|
142
142
|
try {
|
|
143
143
|
return dec(value, ctx);
|
|
@@ -137,8 +137,8 @@ function memberDec(
|
|
|
137
137
|
get && set
|
|
138
138
|
? { get: get, set: set, has: has }
|
|
139
139
|
: get
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
? { get: get, has: has }
|
|
141
|
+
: { set: set, has: has };
|
|
142
142
|
|
|
143
143
|
try {
|
|
144
144
|
return dec.call(thisArg, value, ctx);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { injectQueryParams } from "@jsenv/urls";
|
|
9
9
|
import {
|
|
10
|
-
|
|
10
|
+
parseHtml,
|
|
11
11
|
visitHtmlNodes,
|
|
12
12
|
stringifyHtmlAst,
|
|
13
13
|
getHtmlNodeAttribute,
|
|
@@ -73,7 +73,7 @@ export const jsenvPluginJsModuleFallbackInsideHtml = ({
|
|
|
73
73
|
},
|
|
74
74
|
finalizeUrlContent: {
|
|
75
75
|
html: async (urlInfo) => {
|
|
76
|
-
const htmlAst =
|
|
76
|
+
const htmlAst = parseHtml({ html: urlInfo.content, url: urlInfo.url });
|
|
77
77
|
const mutations = [];
|
|
78
78
|
visitHtmlNodes(htmlAst, {
|
|
79
79
|
link: (node) => {
|