@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.
@@ -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 (willTransformJsModules) {
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
- const willTransformJsModules =
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