@jsenv/core 30.4.0 → 30.4.2
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/README.md +1 -3
- package/dist/babel_helpers/applyDecs2203R/applyDecs2203R.js +355 -388
- package/dist/babel_helpers/applyDecs2301/applyDecs2301.js +575 -0
- package/dist/js/s.js.map +12 -11
- package/dist/js/ws.js +30 -26
- package/dist/main.js +656 -288
- package/package.json +15 -14
- package/src/plugins/transpilation/babel/jsenv_plugin_babel.js +3 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "30.4.
|
|
3
|
+
"version": "30.4.2",
|
|
4
4
|
"description": "Tool to develop, test and build js projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -67,47 +67,48 @@
|
|
|
67
67
|
"@c88/v8-coverage": "0.1.1",
|
|
68
68
|
"@financial-times/polyfill-useragent-normaliser": "1.10.2",
|
|
69
69
|
"@jsenv/abort": "4.2.4",
|
|
70
|
-
"@jsenv/ast": "3.0.
|
|
71
|
-
"@jsenv/babel-plugins": "1.1.
|
|
72
|
-
"@jsenv/plugin-bundling": "1.1.2",
|
|
70
|
+
"@jsenv/ast": "3.0.3",
|
|
71
|
+
"@jsenv/babel-plugins": "1.1.5",
|
|
73
72
|
"@jsenv/filesystem": "4.1.9",
|
|
74
73
|
"@jsenv/importmap": "1.2.1",
|
|
75
74
|
"@jsenv/integrity": "0.0.1",
|
|
76
|
-
"@jsenv/log": "3.3.
|
|
75
|
+
"@jsenv/log": "3.3.4",
|
|
77
76
|
"@jsenv/node-esm-resolution": "1.0.1",
|
|
78
|
-
"@jsenv/
|
|
79
|
-
"@jsenv/
|
|
77
|
+
"@jsenv/plugin-bundling": "1.2.2",
|
|
78
|
+
"@jsenv/server": "14.1.16",
|
|
79
|
+
"@jsenv/sourcemap": "1.0.9",
|
|
80
80
|
"@jsenv/uneval": "1.6.0",
|
|
81
81
|
"@jsenv/url-meta": "7.0.2",
|
|
82
82
|
"@jsenv/urls": "1.2.8",
|
|
83
83
|
"@jsenv/utils": "2.0.1",
|
|
84
|
-
"@paralleldrive/cuid2": "2.0
|
|
84
|
+
"@paralleldrive/cuid2": "2.2.0",
|
|
85
85
|
"construct-style-sheets-polyfill": "3.1.0",
|
|
86
86
|
"istanbul-lib-coverage": "3.2.0",
|
|
87
87
|
"istanbul-lib-instrument": "5.2.1",
|
|
88
88
|
"istanbul-lib-report": "3.0.0",
|
|
89
89
|
"istanbul-reports": "3.1.5",
|
|
90
90
|
"launch-editor": "2.6.0",
|
|
91
|
-
"lightningcss": "1.
|
|
91
|
+
"lightningcss": "1.19.0",
|
|
92
92
|
"pidtree": "0.6.0",
|
|
93
93
|
"string-width": "5.1.2",
|
|
94
94
|
"strip-ansi": "7.0.1",
|
|
95
|
-
"v8-to-istanbul": "9.0
|
|
95
|
+
"v8-to-istanbul": "9.1.0",
|
|
96
|
+
"webidl2": "24.2.2",
|
|
96
97
|
"wrap-ansi": "8.1.0"
|
|
97
98
|
},
|
|
98
99
|
"devDependencies": {
|
|
99
|
-
"@babel/eslint-parser": "7.
|
|
100
|
+
"@babel/eslint-parser": "7.21.3",
|
|
100
101
|
"@babel/plugin-syntax-import-assertions": "7.20.0",
|
|
101
102
|
"@jsenv/assert": "./packages/assert/",
|
|
102
103
|
"@jsenv/eslint-config": "./packages/eslint-config/",
|
|
103
104
|
"@jsenv/file-size-impact": "14.0.0",
|
|
104
105
|
"@jsenv/https-local": "3.0.6",
|
|
105
106
|
"@jsenv/package-workspace": "0.5.1",
|
|
106
|
-
"@jsenv/
|
|
107
|
+
"@jsenv/performance-impact": "4.1.0",
|
|
107
108
|
"@jsenv/plugin-globals": "./packages/jsenv-plugin-globals/",
|
|
109
|
+
"@jsenv/plugin-minification": "./packages/jsenv-plugin-minification/",
|
|
108
110
|
"@jsenv/plugin-placeholders": "./packages/jsenv-plugin-placeholders/",
|
|
109
|
-
"
|
|
110
|
-
"eslint": "8.35.0",
|
|
111
|
+
"eslint": "8.36.0",
|
|
111
112
|
"eslint-plugin-html": "7.1.0",
|
|
112
113
|
"eslint-plugin-import": "2.27.5",
|
|
113
114
|
"eslint-plugin-react": "7.32.2",
|
|
@@ -5,18 +5,9 @@ import { babelPluginInstrument } from "@jsenv/core/src/test/coverage/babel_plugi
|
|
|
5
5
|
import { RUNTIME_COMPAT } from "@jsenv/core/src/kitchen/compat/runtime_compat.js"
|
|
6
6
|
import { getBaseBabelPluginStructure } from "./helpers/babel_plugin_structure.js"
|
|
7
7
|
import { babelPluginBabelHelpersAsJsenvImports } from "./helpers/babel_plugin_babel_helpers_as_jsenv_imports.js"
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./new_stylesheet/babel_plugin_new_stylesheet_as_jsenv_import.js"
|
|
12
|
-
import {
|
|
13
|
-
babelPluginGlobalThisAsJsenvImport,
|
|
14
|
-
globalThisClientFileUrl,
|
|
15
|
-
} from "./global_this/babel_plugin_global_this_as_jsenv_import.js"
|
|
16
|
-
import {
|
|
17
|
-
babelPluginRegeneratorRuntimeAsJsenvImport,
|
|
18
|
-
regeneratorRuntimeClientFileUrl,
|
|
19
|
-
} from "./regenerator_runtime/babel_plugin_regenerator_runtime_as_jsenv_import.js"
|
|
8
|
+
import { babelPluginNewStylesheetAsJsenvImport } from "./new_stylesheet/babel_plugin_new_stylesheet_as_jsenv_import.js"
|
|
9
|
+
import { babelPluginGlobalThisAsJsenvImport } from "./global_this/babel_plugin_global_this_as_jsenv_import.js"
|
|
10
|
+
import { babelPluginRegeneratorRuntimeAsJsenvImport } from "./regenerator_runtime/babel_plugin_regenerator_runtime_as_jsenv_import.js"
|
|
20
11
|
|
|
21
12
|
export const jsenvPluginBabel = ({
|
|
22
13
|
getCustomBabelPlugins,
|
|
@@ -115,17 +106,6 @@ export const jsenvPluginBabel = ({
|
|
|
115
106
|
return {
|
|
116
107
|
name: "jsenv:babel",
|
|
117
108
|
appliesDuring: "*",
|
|
118
|
-
transformUrlContent: (urlInfo) => {
|
|
119
|
-
if (urlInfo.url === regeneratorRuntimeClientFileUrl) {
|
|
120
|
-
urlInfo.data.isBabelClientFile = true
|
|
121
|
-
}
|
|
122
|
-
if (urlInfo.url === globalThisClientFileUrl) {
|
|
123
|
-
urlInfo.data.isBabelClientFile = true
|
|
124
|
-
}
|
|
125
|
-
if (urlInfo.url === newStylesheetClientFileUrl) {
|
|
126
|
-
urlInfo.data.isBabelClientFile = true
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
109
|
finalizeUrlContent: {
|
|
130
110
|
js_classic: transformWithBabel,
|
|
131
111
|
js_module: transformWithBabel,
|