@jsenv/plugin-bundling 2.4.0 → 2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-bundling",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  "@jsenv/sourcemap": "1.1.0",
31
31
  "acorn-import-assertions": "1.9.0",
32
32
  "lightningcss": "1.21.5",
33
- "rollup": "3.26.2"
33
+ "rollup": "3.26.3"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@jsenv/core": "*"
@@ -27,8 +27,8 @@ export const bundleJsModules = async (
27
27
  assetsDirectory,
28
28
  runtimeCompat,
29
29
  sourcemaps,
30
- minification,
31
30
  isSupportedOnCurrentClients,
31
+ getPluginMeta,
32
32
  } = jsModuleUrlInfos[0].context;
33
33
  const graph = jsModuleUrlInfos[0].graph;
34
34
  if (buildDirectoryUrl === undefined) {
@@ -59,6 +59,7 @@ export const bundleJsModules = async (
59
59
  }
60
60
 
61
61
  const resultRef = { current: null };
62
+ const willMinifyJsModule = Boolean(getPluginMeta("willMinifyJsModule"));
62
63
  try {
63
64
  await applyRollupPlugins({
64
65
  rollup,
@@ -97,8 +98,8 @@ export const bundleJsModules = async (
97
98
  ...rollupInput,
98
99
  },
99
100
  rollupOutput: {
100
- compact: minification,
101
- minifyInternalExports: minification,
101
+ compact: willMinifyJsModule,
102
+ minifyInternalExports: willMinifyJsModule,
102
103
  generatedCode: {
103
104
  arrowFunctions: isSupportedOnCurrentClients("arrow_function"),
104
105
  constBindings: isSupportedOnCurrentClients("const_bindings"),