@jsenv/core 40.5.0 → 40.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.
@@ -11494,6 +11494,7 @@ const entryPointDefaultParams = {
11494
11494
  scenarioPlaceholders: undefined,
11495
11495
  injections: undefined,
11496
11496
  transpilation: {},
11497
+ preserveComments: undefined,
11497
11498
 
11498
11499
  versioningMethod: "search_param", // "filename", "search_param"
11499
11500
  versioningViaImportmap: true,
@@ -11545,6 +11546,7 @@ const prepareEntryPointBuild = async (
11545
11546
  scenarioPlaceholders,
11546
11547
  injections,
11547
11548
  transpilation,
11549
+ preserveComments,
11548
11550
 
11549
11551
  versioningMethod,
11550
11552
  versioningViaImportmap,
@@ -11620,6 +11622,9 @@ const prepareEntryPointBuild = async (
11620
11622
  if (entryPointParams.assetManifest === undefined) {
11621
11623
  assetManifest = versioningMethod === "filename";
11622
11624
  }
11625
+ if (entryPointParams.preserveComments === undefined) {
11626
+ preserveComments = someEntryPointUseNode;
11627
+ }
11623
11628
  }
11624
11629
 
11625
11630
  const buildOperation = Abort.startOperation();
@@ -11678,7 +11683,7 @@ const prepareEntryPointBuild = async (
11678
11683
  },
11679
11684
  ...plugins,
11680
11685
  ...(bundling ? [jsenvPluginBundling(bundling)] : []),
11681
- ...(minification ? [jsenvPluginMinification(minification)] : []),
11686
+ jsenvPluginMinification(minification, { preserveComments }),
11682
11687
  ...getCorePlugins({
11683
11688
  packageDirectory,
11684
11689
  rootDirectoryUrl: sourceDirectoryUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "40.5.0",
3
+ "version": "40.5.2",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -79,12 +79,12 @@
79
79
  },
80
80
  "dependencies": {
81
81
  "@financial-times/polyfill-useragent-normaliser": "1.10.2",
82
- "@jsenv/ast": "6.6.11",
83
- "@jsenv/js-module-fallback": "1.4.9",
82
+ "@jsenv/ast": "6.7.1",
83
+ "@jsenv/js-module-fallback": "1.4.11",
84
84
  "@jsenv/plugin-bundling": "2.9.5",
85
- "@jsenv/plugin-minification": "1.6.3",
86
- "@jsenv/plugin-supervisor": "1.6.15",
87
- "@jsenv/plugin-transpilation": "1.5.16",
85
+ "@jsenv/plugin-minification": "1.7.0",
86
+ "@jsenv/plugin-supervisor": "1.6.17",
87
+ "@jsenv/plugin-transpilation": "1.5.18",
88
88
  "@jsenv/sourcemap": "1.3.7",
89
89
  "@jsenv/server": "16.1.2"
90
90
  },
@@ -894,6 +894,7 @@ const entryPointDefaultParams = {
894
894
  scenarioPlaceholders: undefined,
895
895
  injections: undefined,
896
896
  transpilation: {},
897
+ preserveComments: undefined,
897
898
 
898
899
  versioningMethod: "search_param", // "filename", "search_param"
899
900
  versioningViaImportmap: true,
@@ -945,6 +946,7 @@ const prepareEntryPointBuild = async (
945
946
  scenarioPlaceholders,
946
947
  injections,
947
948
  transpilation,
949
+ preserveComments,
948
950
 
949
951
  versioningMethod,
950
952
  versioningViaImportmap,
@@ -1020,6 +1022,9 @@ const prepareEntryPointBuild = async (
1020
1022
  if (entryPointParams.assetManifest === undefined) {
1021
1023
  assetManifest = versioningMethod === "filename";
1022
1024
  }
1025
+ if (entryPointParams.preserveComments === undefined) {
1026
+ preserveComments = someEntryPointUseNode;
1027
+ }
1023
1028
  }
1024
1029
 
1025
1030
  const buildOperation = Abort.startOperation();
@@ -1078,7 +1083,7 @@ const prepareEntryPointBuild = async (
1078
1083
  },
1079
1084
  ...plugins,
1080
1085
  ...(bundling ? [jsenvPluginBundling(bundling)] : []),
1081
- ...(minification ? [jsenvPluginMinification(minification)] : []),
1086
+ jsenvPluginMinification(minification, { preserveComments }),
1082
1087
  ...getCorePlugins({
1083
1088
  packageDirectory,
1084
1089
  rootDirectoryUrl: sourceDirectoryUrl,