@utoo/pack-shared 1.5.8-alpha.3 → 1.5.9-alpha.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.
package/cjs/config.d.ts CHANGED
@@ -224,6 +224,11 @@ export interface ConfigComplete {
224
224
  /** Extract legal comments to `[file].LICENSE.txt` when minifying library output. */
225
225
  extractComments?: boolean;
226
226
  treeShaking?: boolean;
227
+ /**
228
+ * Infer side-effect-free modules from source code when package metadata does not
229
+ * declare side effects. Defaults to `true`, matching Next.js.
230
+ */
231
+ inferModuleSideEffects?: boolean;
227
232
  splitChunks?: Record<"js" | "css", {
228
233
  minChunkSize?: number;
229
234
  maxChunkCountPerGroup?: number;
package/esm/config.d.ts CHANGED
@@ -224,6 +224,11 @@ export interface ConfigComplete {
224
224
  /** Extract legal comments to `[file].LICENSE.txt` when minifying library output. */
225
225
  extractComments?: boolean;
226
226
  treeShaking?: boolean;
227
+ /**
228
+ * Infer side-effect-free modules from source code when package metadata does not
229
+ * declare side effects. Defaults to `true`, matching Next.js.
230
+ */
231
+ inferModuleSideEffects?: boolean;
227
232
  splitChunks?: Record<"js" | "css", {
228
233
  minChunkSize?: number;
229
234
  maxChunkCountPerGroup?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack-shared",
3
- "version": "1.5.8-alpha.3",
3
+ "version": "1.5.9-alpha.0",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",