@jsenv/core 30.2.0 → 30.3.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/dist/controllable_child_process.mjs +1 -1
- package/dist/controllable_worker_thread.mjs +1 -1
- package/dist/js/execute_using_dynamic_import.js +2 -2
- package/dist/js/v8_coverage.js +4 -4
- package/dist/main.js +240 -91
- package/package.json +3 -3
- package/src/build/build.js +141 -44
- package/src/build/{inject_global_version_mappings.js → version_mappings_injection.js} +44 -33
- package/src/dev/file_service.js +12 -4
- package/src/kitchen/compat/features_compatibility.js +59 -0
- package/src/kitchen/kitchen.js +5 -1
- package/src/plugins/transpilation/as_js_classic/jsenv_plugin_as_js_classic_html.js +13 -22
- package/src/plugins/transpilation/jsenv_plugin_import_meta_resolve.js +1 -5
- package/src/plugins/transpilation/jsenv_plugin_top_level_await.js +1 -5
|
@@ -8,12 +8,8 @@ export const jsenvPluginImportMetaResolve = () => {
|
|
|
8
8
|
if (context.isSupportedOnCurrentClients("import_meta_resolve")) {
|
|
9
9
|
return false
|
|
10
10
|
}
|
|
11
|
-
const willTransformJsModules =
|
|
12
|
-
!context.isSupportedOnCurrentClients("script_type_module") ||
|
|
13
|
-
!context.isSupportedOnCurrentClients("import_dynamic") ||
|
|
14
|
-
!context.isSupportedOnCurrentClients("import_meta")
|
|
15
11
|
// keep it untouched, systemjs will handle it
|
|
16
|
-
if (
|
|
12
|
+
if (context.systemJsTranspilation) {
|
|
17
13
|
return false
|
|
18
14
|
}
|
|
19
15
|
return true
|
|
@@ -11,11 +11,7 @@ export const jsenvPluginTopLevelAwait = () => {
|
|
|
11
11
|
return false
|
|
12
12
|
}
|
|
13
13
|
// keep it untouched, systemjs will handle it
|
|
14
|
-
|
|
15
|
-
!context.isSupportedOnCurrentClients("script_type_module") ||
|
|
16
|
-
!context.isSupportedOnCurrentClients("import_dynamic") ||
|
|
17
|
-
!context.isSupportedOnCurrentClients("import_meta")
|
|
18
|
-
if (willTransformJsModules) {
|
|
14
|
+
if (context.systemJsTranspilation) {
|
|
19
15
|
return false
|
|
20
16
|
}
|
|
21
17
|
return true
|