@jsenv/js-module-fallback 1.5.0 → 1.5.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.
@@ -3942,6 +3942,7 @@ const convertJsModuleToJsClassic = async ({
3942
3942
  inputSourcemap,
3943
3943
  inputUrl,
3944
3944
  outputUrl,
3945
+ generateSourcemap = true,
3945
3946
  outputFormat = "system", // "systemjs" or "umd"
3946
3947
  preferAbsoluteSpecifiers,
3947
3948
  remapImportSpecifier = (specifier) => specifier,
@@ -4019,6 +4020,7 @@ const convertJsModuleToJsClassic = async ({
4019
4020
  inputIsJsModule: true,
4020
4021
  inputUrl,
4021
4022
  outputUrl,
4023
+ options: { sourceMaps: generateSourcemap },
4022
4024
  });
4023
4025
  const sourcemap = composeTwoSourcemaps(inputSourcemap, map);
4024
4026
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/js-module-fallback",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,7 +32,7 @@
32
32
  "@babel/plugin-transform-dynamic-import": "7.29.7",
33
33
  "@babel/plugin-transform-modules-systemjs": "7.29.8",
34
34
  "@babel/plugin-transform-modules-umd": "7.29.7",
35
- "@jsenv/ast": "6.9.1",
35
+ "@jsenv/ast": "6.9.3",
36
36
  "@jsenv/sourcemap": "1.4.2",
37
37
  "@jsenv/urls": "2.9.10",
38
38
  "babel-plugin-transform-async-to-promises": "0.8.18"
@@ -18,6 +18,7 @@ export const convertJsModuleToJsClassic = async ({
18
18
  inputSourcemap,
19
19
  inputUrl,
20
20
  outputUrl,
21
+ generateSourcemap = true,
21
22
  outputFormat = "system", // "systemjs" or "umd"
22
23
  preferAbsoluteSpecifiers,
23
24
  remapImportSpecifier = (specifier) => specifier,
@@ -95,6 +96,7 @@ export const convertJsModuleToJsClassic = async ({
95
96
  inputIsJsModule: true,
96
97
  inputUrl,
97
98
  outputUrl,
99
+ options: { sourceMaps: generateSourcemap },
98
100
  });
99
101
  const sourcemap = composeTwoSourcemaps(inputSourcemap, map);
100
102
  return {