@lwrjs/module-bundler 0.9.0-alpha.24 → 0.9.0-alpha.27

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.
@@ -29,13 +29,12 @@ __export(exports, {
29
29
  var import_shared_utils = __toModule(require("@lwrjs/shared-utils"));
30
30
  var import_rollup = __toModule(require("rollup"));
31
31
  var import_plugin_replace = __toModule(require("@rollup/plugin-replace"));
32
- var import_rollup_plugin_terser = __toModule(require("rollup-plugin-terser"));
33
32
  var import_rollup_amd_bundler_plugin = __toModule(require("./rollup-amd-bundler-plugin.cjs"));
34
33
  var import_bundle_common = __toModule(require("./bundle-common.cjs"));
35
34
  var AMD_DEFINE = "LWR.define";
36
35
  async function bundle(id, moduleGraphs, minify = false) {
37
36
  const plugins = [(0, import_rollup_amd_bundler_plugin.bundleDefinitions)({moduleGraphs})];
38
- minify && plugins.push((0, import_rollup_plugin_terser.terser)(), (0, import_plugin_replace.default)({
37
+ minify && plugins.push((0, import_plugin_replace.default)({
39
38
  "process.env.NODE_ENV": JSON.stringify("production"),
40
39
  preventAssignment: false
41
40
  }));
@@ -1,14 +1,16 @@
1
1
  import { GraphDepth, getModuleGraphs, getSpecifier } from '@lwrjs/shared-utils';
2
2
  import { rollup } from 'rollup';
3
3
  import replace from '@rollup/plugin-replace';
4
- import { terser } from 'rollup-plugin-terser';
4
+ // import { terser } from 'rollup-plugin-terser';
5
5
  import { bundleDefinitions } from './rollup-amd-bundler-plugin.js';
6
6
  import { overrideBundleConfig } from './bundle-common.js';
7
7
  const AMD_DEFINE = 'LWR.define';
8
8
  async function bundle(id, moduleGraphs, minify = false) {
9
9
  const plugins = [bundleDefinitions({ moduleGraphs })];
10
10
  minify &&
11
- plugins.push(terser(), replace({
11
+ plugins.push(
12
+ // terser(), // Do not minify until needed for client modules. Server/SSR modules do not need to be minifed.
13
+ replace({
12
14
  'process.env.NODE_ENV': JSON.stringify('production'),
13
15
  preventAssignment: false,
14
16
  }));
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.9.0-alpha.24",
7
+ "version": "0.9.0-alpha.27",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -46,13 +46,12 @@
46
46
  ],
47
47
  "dependencies": {
48
48
  "@lwc/features": "2.38.1",
49
- "@lwrjs/shared-utils": "0.9.0-alpha.24",
49
+ "@lwrjs/shared-utils": "0.9.0-alpha.27",
50
50
  "@rollup/plugin-replace": "^2.4.2",
51
- "rollup": "~2.45.2",
52
- "rollup-plugin-terser": "^7.0.2"
51
+ "rollup": "~2.45.2"
53
52
  },
54
53
  "devDependencies": {
55
- "@lwrjs/types": "0.9.0-alpha.24"
54
+ "@lwrjs/types": "0.9.0-alpha.27"
56
55
  },
57
56
  "optionalDependencies": {
58
57
  "esbuild": "^0.9.7"
@@ -60,5 +59,5 @@
60
59
  "engines": {
61
60
  "node": ">=16.0.0 <20"
62
61
  },
63
- "gitHead": "94326d9e8c80254cfab9c17b2235b10fdee13b4d"
62
+ "gitHead": "a7fcd8493b8a3286197e829b28b54670e7d4e97c"
64
63
  }