rollup 4.29.0 → 4.29.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/LICENSE.md CHANGED
@@ -190,21 +190,6 @@ Repository: git+https://github.com/paulmillr/chokidar.git
190
190
 
191
191
  ---------------------------------------
192
192
 
193
- ## colorette
194
- License: MIT
195
- By: Jorge Bucaran
196
- Repository: jorgebucaran/colorette
197
-
198
- > Copyright © Jorge Bucaran <<https://jorgebucaran.com>>
199
- >
200
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
201
- >
202
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
203
- >
204
- > THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
205
-
206
- ---------------------------------------
207
-
208
193
  ## date-time
209
194
  License: MIT
210
195
  By: Sindre Sorhus
@@ -470,6 +455,29 @@ Repository: sindresorhus/parse-ms
470
455
 
471
456
  ---------------------------------------
472
457
 
458
+ ## picocolors
459
+ License: ISC
460
+ By: Alexey Raspopov
461
+ Repository: alexeyraspopov/picocolors
462
+
463
+ > ISC License
464
+ >
465
+ > Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov
466
+ >
467
+ > Permission to use, copy, modify, and/or distribute this software for any
468
+ > purpose with or without fee is hereby granted, provided that the above
469
+ > copyright notice and this permission notice appear in all copies.
470
+ >
471
+ > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
472
+ > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
473
+ > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
474
+ > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
475
+ > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
476
+ > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
477
+ > OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
478
+
479
+ ---------------------------------------
480
+
473
481
  ## picomatch
474
482
  License: MIT
475
483
  By: Jon Schlinkert
package/dist/bin/rollup CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.29.0
5
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
4
+ Rollup.js v4.29.2
5
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -22,7 +22,6 @@ const fseventsImporter = require('../shared/fsevents-importer.js');
22
22
  const promises = require('node:fs/promises');
23
23
  const path = require('node:path');
24
24
  const loadConfigFile_js = require('../shared/loadConfigFile.js');
25
- require('tty');
26
25
  require('../native.js');
27
26
  require('node:perf_hooks');
28
27
  require('node:url');
@@ -1662,7 +1661,7 @@ async function build(inputOptions, warnings, silent = false) {
1662
1661
  else if (typeof inputOptions.input === 'object' && inputOptions.input !== null) {
1663
1662
  inputFiles = Object.values(inputOptions.input).join(', ');
1664
1663
  }
1665
- rollup.stderr(rollup.cyan$1(`\n${rollup.bold(inputFiles)} → ${rollup.bold(files.join(', '))}...`));
1664
+ rollup.stderr(rollup.cyan(`\n${rollup.bold(inputFiles)} → ${rollup.bold(files.join(', '))}...`));
1666
1665
  }
1667
1666
  const bundle = __addDisposableResource(env_1, await rollup.rollup(inputOptions), true);
1668
1667
  if (useStdout) {
@@ -1673,7 +1672,7 @@ async function build(inputOptions, warnings, silent = false) {
1673
1672
  const { output: outputs } = await bundle.generate(output);
1674
1673
  for (const file of outputs) {
1675
1674
  if (outputs.length > 1)
1676
- process$1.stdout.write(`\n${rollup.cyan$1(rollup.bold(`//→ ${file.fileName}:`))}\n`);
1675
+ process$1.stdout.write(`\n${rollup.cyan(rollup.bold(`//→ ${file.fileName}:`))}\n`);
1677
1676
  process$1.stdout.write(file.type === 'asset' ? file.source : file.code);
1678
1677
  }
1679
1678
  if (!silent) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -15,4 +15,3 @@ import 'path';
15
15
  import 'node:process';
16
16
  import 'node:perf_hooks';
17
17
  import 'node:fs/promises';
18
- import 'tty';
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -11,12 +11,11 @@ import { ExportDefaultDeclaration as ExportDefaultDeclaration$1, CallExpression
11
11
  import { relative, dirname, basename, extname, resolve as resolve$1 } from 'node:path';
12
12
  import { posix, win32, isAbsolute, resolve } from 'path';
13
13
  import { parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } from '../../native.js';
14
- import process$1, { env as env$1 } from 'node:process';
14
+ import process$1, { env } from 'node:process';
15
15
  import { performance } from 'node:perf_hooks';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
- import * as tty from 'tty';
18
17
 
19
- var version = "4.29.0";
18
+ var version = "4.29.2";
20
19
 
21
20
  const comma = ','.charCodeAt(0);
22
21
  const semicolon = ';'.charCodeAt(0);
@@ -7639,7 +7638,7 @@ class ExternalChunk {
7639
7638
  (this.renormalizeRenderPath ? normalize(relative(this.inputBase, this.id)) : this.id));
7640
7639
  }
7641
7640
  getImportAttributes(snippets) {
7642
- return (this.importAttributes ||= formatAttributes(this.options.format === 'es' &&
7641
+ return (this.importAttributes ||= formatAttributes(['es', 'cjs'].includes(this.options.format) &&
7643
7642
  this.options.externalImportAttributes &&
7644
7643
  this.moduleInfo.attributes, snippets));
7645
7644
  }
@@ -13047,24 +13046,33 @@ class LogicalExpression extends NodeBase {
13047
13046
  set isBranchResolutionAnalysed(value) {
13048
13047
  this.flags = setFlag(this.flags, 65536 /* Flag.isBranchResolutionAnalysed */, value);
13049
13048
  }
13049
+ get hasDeoptimizedCache() {
13050
+ return isFlagSet(this.flags, 16777216 /* Flag.hasDeoptimizedCache */);
13051
+ }
13052
+ set hasDeoptimizedCache(value) {
13053
+ this.flags = setFlag(this.flags, 16777216 /* Flag.hasDeoptimizedCache */, value);
13054
+ }
13050
13055
  deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker) {
13051
13056
  this.left.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
13052
13057
  this.right.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
13053
13058
  }
13054
13059
  deoptimizeCache() {
13060
+ if (this.hasDeoptimizedCache)
13061
+ return;
13055
13062
  if (this.usedBranch) {
13056
13063
  const unusedBranch = this.usedBranch === this.left ? this.right : this.left;
13057
13064
  this.usedBranch = null;
13058
13065
  unusedBranch.deoptimizePath(UNKNOWN_PATH);
13059
- const { scope: { context }, expressionsToBeDeoptimized } = this;
13060
- this.expressionsToBeDeoptimized = EMPTY_ARRAY;
13061
- for (const expression of expressionsToBeDeoptimized) {
13062
- expression.deoptimizeCache();
13063
- }
13064
- // Request another pass because we need to ensure "include" runs again if
13065
- // it is rendered
13066
- context.requestTreeshakingPass();
13067
13066
  }
13067
+ const { scope: { context }, expressionsToBeDeoptimized } = this;
13068
+ this.expressionsToBeDeoptimized = EMPTY_ARRAY;
13069
+ for (const expression of expressionsToBeDeoptimized) {
13070
+ expression.deoptimizeCache();
13071
+ }
13072
+ // Request another pass because we need to ensure "include" runs again if
13073
+ // it is rendered
13074
+ context.requestTreeshakingPass();
13075
+ this.hasDeoptimizedCache = true;
13068
13076
  }
13069
13077
  deoptimizePath(path) {
13070
13078
  const usedBranch = this.getUsedBranch();
@@ -13082,7 +13090,7 @@ class LogicalExpression extends NodeBase {
13082
13090
  this.expressionsToBeDeoptimized.push(origin);
13083
13091
  return usedBranch.getLiteralValueAtPath(path, recursionTracker, origin);
13084
13092
  }
13085
- else {
13093
+ else if (!this.hasDeoptimizedCache) {
13086
13094
  const rightValue = this.right.getLiteralValueAtPath(path, recursionTracker, origin);
13087
13095
  const booleanOrUnknown = tryCastLiteralValueToBoolean(rightValue);
13088
13096
  if (typeof booleanOrUnknown !== 'symbol') {
@@ -13091,6 +13099,7 @@ class LogicalExpression extends NodeBase {
13091
13099
  return UnknownFalsyValue;
13092
13100
  }
13093
13101
  if (booleanOrUnknown && this.operator === '||') {
13102
+ this.expressionsToBeDeoptimized.push(origin);
13094
13103
  return UnknownTruthyValue;
13095
13104
  }
13096
13105
  }
@@ -17454,7 +17463,9 @@ class Chunk {
17454
17463
  }
17455
17464
  return [
17456
17465
  resolution || '',
17457
- (this.outputOptions.format === 'es' && this.outputOptions.externalImportAttributes) || null
17466
+ (['es', 'cjs'].includes(this.outputOptions.format) &&
17467
+ this.outputOptions.externalImportAttributes) ||
17468
+ null
17458
17469
  ];
17459
17470
  }
17460
17471
  getFallbackChunkName() {
@@ -21896,118 +21907,97 @@ function defineConfig(options) {
21896
21907
  return options;
21897
21908
  }
21898
21909
 
21899
- const {
21900
- env = {},
21901
- argv = [],
21902
- platform = "",
21903
- } = typeof process === "undefined" ? {} : process;
21904
-
21905
- const isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
21906
- const isForced = "FORCE_COLOR" in env || argv.includes("--color");
21907
- const isWindows = platform === "win32";
21908
- const isDumbTerminal = env.TERM === "dumb";
21909
-
21910
- const isCompatibleTerminal =
21911
- tty && tty.isatty && tty.isatty(1) && env.TERM && !isDumbTerminal;
21912
-
21913
- const isCI =
21914
- "CI" in env &&
21915
- ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
21916
-
21917
- const isColorSupported =
21918
- !isDisabled &&
21919
- (isForced || (isWindows && !isDumbTerminal) || isCompatibleTerminal || isCI);
21920
-
21921
- const replaceClose = (
21922
- index,
21923
- string,
21924
- close,
21925
- replace,
21926
- head = string.substring(0, index) + replace,
21927
- tail = string.substring(index + close.length),
21928
- next = tail.indexOf(close)
21929
- ) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
21930
-
21931
- const clearBleed = (index, string, open, close, replace) =>
21932
- index < 0
21933
- ? open + string + close
21934
- : open + replaceClose(index, string, close, replace) + close;
21935
-
21936
- const filterEmpty =
21937
- (open, close, replace = open, at = open.length + 1) =>
21938
- (string) =>
21939
- string || !(string === "" || string === undefined)
21940
- ? clearBleed(
21941
- ("" + string).indexOf(close, at),
21942
- string,
21943
- open,
21944
- close,
21945
- replace
21946
- )
21947
- : "";
21948
-
21949
- const init = (open, close, replace) =>
21950
- filterEmpty(`\x1b[${open}m`, `\x1b[${close}m`, replace);
21951
-
21952
- const colors = {
21953
- reset: init(0, 0),
21954
- bold: init(1, 22, "\x1b[22m\x1b[1m"),
21955
- dim: init(2, 22, "\x1b[22m\x1b[2m"),
21956
- italic: init(3, 23),
21957
- underline: init(4, 24),
21958
- inverse: init(7, 27),
21959
- hidden: init(8, 28),
21960
- strikethrough: init(9, 29),
21961
- black: init(30, 39),
21962
- red: init(31, 39),
21963
- green: init(32, 39),
21964
- yellow: init(33, 39),
21965
- blue: init(34, 39),
21966
- magenta: init(35, 39),
21967
- cyan: init(36, 39),
21968
- white: init(37, 39),
21969
- gray: init(90, 39),
21970
- bgBlack: init(40, 49),
21971
- bgRed: init(41, 49),
21972
- bgGreen: init(42, 49),
21973
- bgYellow: init(43, 49),
21974
- bgBlue: init(44, 49),
21975
- bgMagenta: init(45, 49),
21976
- bgCyan: init(46, 49),
21977
- bgWhite: init(47, 49),
21978
- blackBright: init(90, 39),
21979
- redBright: init(91, 39),
21980
- greenBright: init(92, 39),
21981
- yellowBright: init(93, 39),
21982
- blueBright: init(94, 39),
21983
- magentaBright: init(95, 39),
21984
- cyanBright: init(96, 39),
21985
- whiteBright: init(97, 39),
21986
- bgBlackBright: init(100, 49),
21987
- bgRedBright: init(101, 49),
21988
- bgGreenBright: init(102, 49),
21989
- bgYellowBright: init(103, 49),
21990
- bgBlueBright: init(104, 49),
21991
- bgMagentaBright: init(105, 49),
21992
- bgCyanBright: init(106, 49),
21993
- bgWhiteBright: init(107, 49),
21994
- };
21910
+ var picocolors = {exports: {}};
21995
21911
 
21996
- const createColors = ({ useColor = isColorSupported } = {}) =>
21997
- useColor
21998
- ? colors
21999
- : Object.keys(colors).reduce(
22000
- (colors, key) => ({ ...colors, [key]: String }),
22001
- {}
22002
- );
21912
+ var hasRequiredPicocolors;
22003
21913
 
22004
- createColors();
21914
+ function requirePicocolors () {
21915
+ if (hasRequiredPicocolors) return picocolors.exports;
21916
+ hasRequiredPicocolors = 1;
21917
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
21918
+ let isColorSupported =
21919
+ !(!!env.NO_COLOR || argv.includes("--no-color")) &&
21920
+ (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || ((p.stdout || {}).isTTY && env.TERM !== "dumb") || !!env.CI);
21921
+
21922
+ let formatter = (open, close, replace = open) =>
21923
+ input => {
21924
+ let string = "" + input, index = string.indexOf(close, open.length);
21925
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close
21926
+ };
21927
+
21928
+ let replaceClose = (string, close, replace, index) => {
21929
+ let result = "", cursor = 0;
21930
+ do {
21931
+ result += string.substring(cursor, index) + replace;
21932
+ cursor = index + close.length;
21933
+ index = string.indexOf(close, cursor);
21934
+ } while (~index)
21935
+ return result + string.substring(cursor)
21936
+ };
21937
+
21938
+ let createColors = (enabled = isColorSupported) => {
21939
+ let f = enabled ? formatter : () => String;
21940
+ return {
21941
+ isColorSupported: enabled,
21942
+ reset: f("\x1b[0m", "\x1b[0m"),
21943
+ bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
21944
+ dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
21945
+ italic: f("\x1b[3m", "\x1b[23m"),
21946
+ underline: f("\x1b[4m", "\x1b[24m"),
21947
+ inverse: f("\x1b[7m", "\x1b[27m"),
21948
+ hidden: f("\x1b[8m", "\x1b[28m"),
21949
+ strikethrough: f("\x1b[9m", "\x1b[29m"),
21950
+
21951
+ black: f("\x1b[30m", "\x1b[39m"),
21952
+ red: f("\x1b[31m", "\x1b[39m"),
21953
+ green: f("\x1b[32m", "\x1b[39m"),
21954
+ yellow: f("\x1b[33m", "\x1b[39m"),
21955
+ blue: f("\x1b[34m", "\x1b[39m"),
21956
+ magenta: f("\x1b[35m", "\x1b[39m"),
21957
+ cyan: f("\x1b[36m", "\x1b[39m"),
21958
+ white: f("\x1b[37m", "\x1b[39m"),
21959
+ gray: f("\x1b[90m", "\x1b[39m"),
21960
+
21961
+ bgBlack: f("\x1b[40m", "\x1b[49m"),
21962
+ bgRed: f("\x1b[41m", "\x1b[49m"),
21963
+ bgGreen: f("\x1b[42m", "\x1b[49m"),
21964
+ bgYellow: f("\x1b[43m", "\x1b[49m"),
21965
+ bgBlue: f("\x1b[44m", "\x1b[49m"),
21966
+ bgMagenta: f("\x1b[45m", "\x1b[49m"),
21967
+ bgCyan: f("\x1b[46m", "\x1b[49m"),
21968
+ bgWhite: f("\x1b[47m", "\x1b[49m"),
21969
+
21970
+ blackBright: f("\x1b[90m", "\x1b[39m"),
21971
+ redBright: f("\x1b[91m", "\x1b[39m"),
21972
+ greenBright: f("\x1b[92m", "\x1b[39m"),
21973
+ yellowBright: f("\x1b[93m", "\x1b[39m"),
21974
+ blueBright: f("\x1b[94m", "\x1b[39m"),
21975
+ magentaBright: f("\x1b[95m", "\x1b[39m"),
21976
+ cyanBright: f("\x1b[96m", "\x1b[39m"),
21977
+ whiteBright: f("\x1b[97m", "\x1b[39m"),
21978
+
21979
+ bgBlackBright: f("\x1b[100m", "\x1b[49m"),
21980
+ bgRedBright: f("\x1b[101m", "\x1b[49m"),
21981
+ bgGreenBright: f("\x1b[102m", "\x1b[49m"),
21982
+ bgYellowBright: f("\x1b[103m", "\x1b[49m"),
21983
+ bgBlueBright: f("\x1b[104m", "\x1b[49m"),
21984
+ bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
21985
+ bgCyanBright: f("\x1b[106m", "\x1b[49m"),
21986
+ bgWhiteBright: f("\x1b[107m", "\x1b[49m"),
21987
+ }
21988
+ };
21989
+
21990
+ picocolors.exports = createColors();
21991
+ picocolors.exports.createColors = createColors;
21992
+ return picocolors.exports;
21993
+ }
21994
+
21995
+ var picocolorsExports = /*@__PURE__*/ requirePicocolors();
21996
+ const pc = /*@__PURE__*/getDefaultExportFromCjs(picocolorsExports);
22005
21997
 
22006
21998
  // @see https://no-color.org
22007
21999
  // @see https://www.npmjs.com/package/chalk
22008
- const { bold, cyan, dim, gray, green, red, underline, yellow } = createColors({
22009
- useColor: env$1.FORCE_COLOR !== '0' && !env$1.NO_COLOR
22010
- });
22000
+ const { bold, cyan, dim, gray, green, red, underline, yellow } = pc.createColors(env.FORCE_COLOR !== '0' && !env.NO_COLOR);
22011
22001
 
22012
22002
  // log to stderr to keep `rollup main.js > bundle.js` from breaking
22013
22003
  const stderr = (...parameters) => process$1.stderr.write(`${parameters.join('')}\n`);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -21,7 +21,6 @@ import './parseAst.js';
21
21
  import '../../native.js';
22
22
  import 'node:perf_hooks';
23
23
  import 'node:fs/promises';
24
- import 'tty';
25
24
 
26
25
  var chokidar$1 = {};
27
26
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -18,7 +18,6 @@ require('node:url');
18
18
  require('./shared/rollup.js');
19
19
  require('./shared/parseAst.js');
20
20
  const loadConfigFile_js = require('./shared/loadConfigFile.js');
21
- require('tty');
22
21
  require('path');
23
22
  require('./native.js');
24
23
  require('node:perf_hooks');
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -15,7 +15,6 @@ const rollup = require('./shared/rollup.js');
15
15
  const parseAst_js = require('./shared/parseAst.js');
16
16
  const fseventsImporter = require('./shared/fsevents-importer.js');
17
17
  require('node:process');
18
- require('tty');
19
18
  require('node:path');
20
19
  require('path');
21
20
  require('./native.js');
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -63,14 +63,14 @@ function batchWarnings(command) {
63
63
  }
64
64
  case parseAst_js.LOGLEVEL_DEBUG: {
65
65
  if (!silent) {
66
- rollup.stderr(rollup.bold(rollup.blue(log.message)));
66
+ rollup.stderr(rollup.bold(rollup.pc.blue(log.message)));
67
67
  defaultBody(log);
68
68
  }
69
69
  return;
70
70
  }
71
71
  default: {
72
72
  if (!silent) {
73
- rollup.stderr(rollup.bold(rollup.cyan(log.message)));
73
+ rollup.stderr(rollup.bold(rollup.pc.cyan(log.message)));
74
74
  defaultBody(log);
75
75
  }
76
76
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -11,27 +11,13 @@
11
11
 
12
12
  const parseAst_js = require('./parseAst.js');
13
13
  const process$1 = require('node:process');
14
- const tty = require('tty');
15
14
  const path = require('node:path');
16
15
  const require$$0 = require('path');
17
16
  const native_js = require('../native.js');
18
17
  const node_perf_hooks = require('node:perf_hooks');
19
18
  const promises = require('node:fs/promises');
20
19
 
21
- function _interopNamespaceDefault(e) {
22
- const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
23
- if (e) {
24
- for (const k in e) {
25
- n[k] = e[k];
26
- }
27
- }
28
- n.default = e;
29
- return n;
30
- }
31
-
32
- const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
33
-
34
- var version = "4.29.0";
20
+ var version = "4.29.2";
35
21
 
36
22
  function ensureArray$1(items) {
37
23
  if (Array.isArray(items)) {
@@ -1395,160 +1381,126 @@ async function mergeOutputOptions(config, overrides, log) {
1395
1381
  return outputOptions;
1396
1382
  }
1397
1383
 
1398
- const {
1399
- env = {},
1400
- argv = [],
1401
- platform = "",
1402
- } = typeof process === "undefined" ? {} : process;
1403
-
1404
- const isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
1405
- const isForced = "FORCE_COLOR" in env || argv.includes("--color");
1406
- const isWindows = platform === "win32";
1407
- const isDumbTerminal = env.TERM === "dumb";
1408
-
1409
- const isCompatibleTerminal =
1410
- tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env.TERM && !isDumbTerminal;
1411
-
1412
- const isCI =
1413
- "CI" in env &&
1414
- ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
1415
-
1416
- const isColorSupported =
1417
- !isDisabled &&
1418
- (isForced || (isWindows && !isDumbTerminal) || isCompatibleTerminal || isCI);
1419
-
1420
- const replaceClose = (
1421
- index,
1422
- string,
1423
- close,
1424
- replace,
1425
- head = string.substring(0, index) + replace,
1426
- tail = string.substring(index + close.length),
1427
- next = tail.indexOf(close)
1428
- ) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
1429
-
1430
- const clearBleed = (index, string, open, close, replace) =>
1431
- index < 0
1432
- ? open + string + close
1433
- : open + replaceClose(index, string, close, replace) + close;
1434
-
1435
- const filterEmpty =
1436
- (open, close, replace = open, at = open.length + 1) =>
1437
- (string) =>
1438
- string || !(string === "" || string === undefined)
1439
- ? clearBleed(
1440
- ("" + string).indexOf(close, at),
1441
- string,
1442
- open,
1443
- close,
1444
- replace
1445
- )
1446
- : "";
1447
-
1448
- const init = (open, close, replace) =>
1449
- filterEmpty(`\x1b[${open}m`, `\x1b[${close}m`, replace);
1450
-
1451
- const colors = {
1452
- reset: init(0, 0),
1453
- bold: init(1, 22, "\x1b[22m\x1b[1m"),
1454
- dim: init(2, 22, "\x1b[22m\x1b[2m"),
1455
- italic: init(3, 23),
1456
- underline: init(4, 24),
1457
- inverse: init(7, 27),
1458
- hidden: init(8, 28),
1459
- strikethrough: init(9, 29),
1460
- black: init(30, 39),
1461
- red: init(31, 39),
1462
- green: init(32, 39),
1463
- yellow: init(33, 39),
1464
- blue: init(34, 39),
1465
- magenta: init(35, 39),
1466
- cyan: init(36, 39),
1467
- white: init(37, 39),
1468
- gray: init(90, 39),
1469
- bgBlack: init(40, 49),
1470
- bgRed: init(41, 49),
1471
- bgGreen: init(42, 49),
1472
- bgYellow: init(43, 49),
1473
- bgBlue: init(44, 49),
1474
- bgMagenta: init(45, 49),
1475
- bgCyan: init(46, 49),
1476
- bgWhite: init(47, 49),
1477
- blackBright: init(90, 39),
1478
- redBright: init(91, 39),
1479
- greenBright: init(92, 39),
1480
- yellowBright: init(93, 39),
1481
- blueBright: init(94, 39),
1482
- magentaBright: init(95, 39),
1483
- cyanBright: init(96, 39),
1484
- whiteBright: init(97, 39),
1485
- bgBlackBright: init(100, 49),
1486
- bgRedBright: init(101, 49),
1487
- bgGreenBright: init(102, 49),
1488
- bgYellowBright: init(103, 49),
1489
- bgBlueBright: init(104, 49),
1490
- bgMagentaBright: init(105, 49),
1491
- bgCyanBright: init(106, 49),
1492
- bgWhiteBright: init(107, 49),
1493
- };
1384
+ function getDefaultExportFromCjs (x) {
1385
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
1386
+ }
1387
+
1388
+ function getAugmentedNamespace(n) {
1389
+ if (n.__esModule) return n;
1390
+ var f = n.default;
1391
+ if (typeof f == "function") {
1392
+ var a = function a () {
1393
+ if (this instanceof a) {
1394
+ return Reflect.construct(f, arguments, this.constructor);
1395
+ }
1396
+ return f.apply(this, arguments);
1397
+ };
1398
+ a.prototype = f.prototype;
1399
+ } else a = {};
1400
+ Object.defineProperty(a, '__esModule', {value: true});
1401
+ Object.keys(n).forEach(function (k) {
1402
+ var d = Object.getOwnPropertyDescriptor(n, k);
1403
+ Object.defineProperty(a, k, d.get ? d : {
1404
+ enumerable: true,
1405
+ get: function () {
1406
+ return n[k];
1407
+ }
1408
+ });
1409
+ });
1410
+ return a;
1411
+ }
1412
+
1413
+ var picocolors = {exports: {}};
1414
+
1415
+ var hasRequiredPicocolors;
1416
+
1417
+ function requirePicocolors () {
1418
+ if (hasRequiredPicocolors) return picocolors.exports;
1419
+ hasRequiredPicocolors = 1;
1420
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
1421
+ let isColorSupported =
1422
+ !(!!env.NO_COLOR || argv.includes("--no-color")) &&
1423
+ (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || ((p.stdout || {}).isTTY && env.TERM !== "dumb") || !!env.CI);
1424
+
1425
+ let formatter = (open, close, replace = open) =>
1426
+ input => {
1427
+ let string = "" + input, index = string.indexOf(close, open.length);
1428
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close
1429
+ };
1430
+
1431
+ let replaceClose = (string, close, replace, index) => {
1432
+ let result = "", cursor = 0;
1433
+ do {
1434
+ result += string.substring(cursor, index) + replace;
1435
+ cursor = index + close.length;
1436
+ index = string.indexOf(close, cursor);
1437
+ } while (~index)
1438
+ return result + string.substring(cursor)
1439
+ };
1440
+
1441
+ let createColors = (enabled = isColorSupported) => {
1442
+ let f = enabled ? formatter : () => String;
1443
+ return {
1444
+ isColorSupported: enabled,
1445
+ reset: f("\x1b[0m", "\x1b[0m"),
1446
+ bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
1447
+ dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
1448
+ italic: f("\x1b[3m", "\x1b[23m"),
1449
+ underline: f("\x1b[4m", "\x1b[24m"),
1450
+ inverse: f("\x1b[7m", "\x1b[27m"),
1451
+ hidden: f("\x1b[8m", "\x1b[28m"),
1452
+ strikethrough: f("\x1b[9m", "\x1b[29m"),
1453
+
1454
+ black: f("\x1b[30m", "\x1b[39m"),
1455
+ red: f("\x1b[31m", "\x1b[39m"),
1456
+ green: f("\x1b[32m", "\x1b[39m"),
1457
+ yellow: f("\x1b[33m", "\x1b[39m"),
1458
+ blue: f("\x1b[34m", "\x1b[39m"),
1459
+ magenta: f("\x1b[35m", "\x1b[39m"),
1460
+ cyan: f("\x1b[36m", "\x1b[39m"),
1461
+ white: f("\x1b[37m", "\x1b[39m"),
1462
+ gray: f("\x1b[90m", "\x1b[39m"),
1463
+
1464
+ bgBlack: f("\x1b[40m", "\x1b[49m"),
1465
+ bgRed: f("\x1b[41m", "\x1b[49m"),
1466
+ bgGreen: f("\x1b[42m", "\x1b[49m"),
1467
+ bgYellow: f("\x1b[43m", "\x1b[49m"),
1468
+ bgBlue: f("\x1b[44m", "\x1b[49m"),
1469
+ bgMagenta: f("\x1b[45m", "\x1b[49m"),
1470
+ bgCyan: f("\x1b[46m", "\x1b[49m"),
1471
+ bgWhite: f("\x1b[47m", "\x1b[49m"),
1472
+
1473
+ blackBright: f("\x1b[90m", "\x1b[39m"),
1474
+ redBright: f("\x1b[91m", "\x1b[39m"),
1475
+ greenBright: f("\x1b[92m", "\x1b[39m"),
1476
+ yellowBright: f("\x1b[93m", "\x1b[39m"),
1477
+ blueBright: f("\x1b[94m", "\x1b[39m"),
1478
+ magentaBright: f("\x1b[95m", "\x1b[39m"),
1479
+ cyanBright: f("\x1b[96m", "\x1b[39m"),
1480
+ whiteBright: f("\x1b[97m", "\x1b[39m"),
1481
+
1482
+ bgBlackBright: f("\x1b[100m", "\x1b[49m"),
1483
+ bgRedBright: f("\x1b[101m", "\x1b[49m"),
1484
+ bgGreenBright: f("\x1b[102m", "\x1b[49m"),
1485
+ bgYellowBright: f("\x1b[103m", "\x1b[49m"),
1486
+ bgBlueBright: f("\x1b[104m", "\x1b[49m"),
1487
+ bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
1488
+ bgCyanBright: f("\x1b[106m", "\x1b[49m"),
1489
+ bgWhiteBright: f("\x1b[107m", "\x1b[49m"),
1490
+ }
1491
+ };
1494
1492
 
1495
- const createColors = ({ useColor = isColorSupported } = {}) =>
1496
- useColor
1497
- ? colors
1498
- : Object.keys(colors).reduce(
1499
- (colors, key) => ({ ...colors, [key]: String }),
1500
- {}
1501
- );
1502
-
1503
- const {
1504
- reset,
1505
- bold: bold$1,
1506
- dim: dim$1,
1507
- italic,
1508
- underline: underline$1,
1509
- inverse,
1510
- hidden,
1511
- strikethrough,
1512
- black,
1513
- red: red$1,
1514
- green: green$1,
1515
- yellow: yellow$1,
1516
- blue,
1517
- magenta,
1518
- cyan: cyan$1,
1519
- white,
1520
- gray: gray$1,
1521
- bgBlack,
1522
- bgRed,
1523
- bgGreen,
1524
- bgYellow,
1525
- bgBlue,
1526
- bgMagenta,
1527
- bgCyan,
1528
- bgWhite,
1529
- blackBright,
1530
- redBright,
1531
- greenBright,
1532
- yellowBright,
1533
- blueBright,
1534
- magentaBright,
1535
- cyanBright,
1536
- whiteBright,
1537
- bgBlackBright,
1538
- bgRedBright,
1539
- bgGreenBright,
1540
- bgYellowBright,
1541
- bgBlueBright,
1542
- bgMagentaBright,
1543
- bgCyanBright,
1544
- bgWhiteBright,
1545
- } = createColors();
1493
+ picocolors.exports = createColors();
1494
+ picocolors.exports.createColors = createColors;
1495
+ return picocolors.exports;
1496
+ }
1497
+
1498
+ var picocolorsExports = /*@__PURE__*/ requirePicocolors();
1499
+ const pc = /*@__PURE__*/getDefaultExportFromCjs(picocolorsExports);
1546
1500
 
1547
1501
  // @see https://no-color.org
1548
1502
  // @see https://www.npmjs.com/package/chalk
1549
- const { bold, cyan, dim, gray, green, red, underline, yellow } = createColors({
1550
- useColor: process$1.env.FORCE_COLOR !== '0' && !process$1.env.NO_COLOR
1551
- });
1503
+ const { bold, cyan, dim, gray, green, red, underline, yellow } = pc.createColors(process$1.env.FORCE_COLOR !== '0' && !process$1.env.NO_COLOR);
1552
1504
 
1553
1505
  // log to stderr to keep `rollup main.js > bundle.js` from breaking
1554
1506
  const stderr = (...parameters) => process$1.stderr.write(`${parameters.join('')}\n`);
@@ -9183,7 +9135,7 @@ class ExternalChunk {
9183
9135
  (this.renormalizeRenderPath ? parseAst_js.normalize(path.relative(this.inputBase, this.id)) : this.id));
9184
9136
  }
9185
9137
  getImportAttributes(snippets) {
9186
- return (this.importAttributes ||= formatAttributes(this.options.format === 'es' &&
9138
+ return (this.importAttributes ||= formatAttributes(['es', 'cjs'].includes(this.options.format) &&
9187
9139
  this.options.externalImportAttributes &&
9188
9140
  this.moduleInfo.attributes, snippets));
9189
9141
  }
@@ -10075,35 +10027,6 @@ function umd(magicString, { accessedGlobals, dependencies, exports, hasDefaultEx
10075
10027
 
10076
10028
  const finalisers = { amd, cjs, es, iife, system, umd };
10077
10029
 
10078
- function getDefaultExportFromCjs (x) {
10079
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
10080
- }
10081
-
10082
- function getAugmentedNamespace(n) {
10083
- if (n.__esModule) return n;
10084
- var f = n.default;
10085
- if (typeof f == "function") {
10086
- var a = function a () {
10087
- if (this instanceof a) {
10088
- return Reflect.construct(f, arguments, this.constructor);
10089
- }
10090
- return f.apply(this, arguments);
10091
- };
10092
- a.prototype = f.prototype;
10093
- } else a = {};
10094
- Object.defineProperty(a, '__esModule', {value: true});
10095
- Object.keys(n).forEach(function (k) {
10096
- var d = Object.getOwnPropertyDescriptor(n, k);
10097
- Object.defineProperty(a, k, d.get ? d : {
10098
- enumerable: true,
10099
- get: function () {
10100
- return n[k];
10101
- }
10102
- });
10103
- });
10104
- return a;
10105
- }
10106
-
10107
10030
  var utils = {};
10108
10031
 
10109
10032
  var constants;
@@ -14591,24 +14514,33 @@ class LogicalExpression extends NodeBase {
14591
14514
  set isBranchResolutionAnalysed(value) {
14592
14515
  this.flags = setFlag(this.flags, 65536 /* Flag.isBranchResolutionAnalysed */, value);
14593
14516
  }
14517
+ get hasDeoptimizedCache() {
14518
+ return isFlagSet(this.flags, 16777216 /* Flag.hasDeoptimizedCache */);
14519
+ }
14520
+ set hasDeoptimizedCache(value) {
14521
+ this.flags = setFlag(this.flags, 16777216 /* Flag.hasDeoptimizedCache */, value);
14522
+ }
14594
14523
  deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker) {
14595
14524
  this.left.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
14596
14525
  this.right.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
14597
14526
  }
14598
14527
  deoptimizeCache() {
14528
+ if (this.hasDeoptimizedCache)
14529
+ return;
14599
14530
  if (this.usedBranch) {
14600
14531
  const unusedBranch = this.usedBranch === this.left ? this.right : this.left;
14601
14532
  this.usedBranch = null;
14602
14533
  unusedBranch.deoptimizePath(UNKNOWN_PATH);
14603
- const { scope: { context }, expressionsToBeDeoptimized } = this;
14604
- this.expressionsToBeDeoptimized = parseAst_js.EMPTY_ARRAY;
14605
- for (const expression of expressionsToBeDeoptimized) {
14606
- expression.deoptimizeCache();
14607
- }
14608
- // Request another pass because we need to ensure "include" runs again if
14609
- // it is rendered
14610
- context.requestTreeshakingPass();
14611
14534
  }
14535
+ const { scope: { context }, expressionsToBeDeoptimized } = this;
14536
+ this.expressionsToBeDeoptimized = parseAst_js.EMPTY_ARRAY;
14537
+ for (const expression of expressionsToBeDeoptimized) {
14538
+ expression.deoptimizeCache();
14539
+ }
14540
+ // Request another pass because we need to ensure "include" runs again if
14541
+ // it is rendered
14542
+ context.requestTreeshakingPass();
14543
+ this.hasDeoptimizedCache = true;
14612
14544
  }
14613
14545
  deoptimizePath(path) {
14614
14546
  const usedBranch = this.getUsedBranch();
@@ -14626,7 +14558,7 @@ class LogicalExpression extends NodeBase {
14626
14558
  this.expressionsToBeDeoptimized.push(origin);
14627
14559
  return usedBranch.getLiteralValueAtPath(path, recursionTracker, origin);
14628
14560
  }
14629
- else {
14561
+ else if (!this.hasDeoptimizedCache) {
14630
14562
  const rightValue = this.right.getLiteralValueAtPath(path, recursionTracker, origin);
14631
14563
  const booleanOrUnknown = tryCastLiteralValueToBoolean(rightValue);
14632
14564
  if (typeof booleanOrUnknown !== 'symbol') {
@@ -14635,6 +14567,7 @@ class LogicalExpression extends NodeBase {
14635
14567
  return UnknownFalsyValue;
14636
14568
  }
14637
14569
  if (booleanOrUnknown && this.operator === '||') {
14570
+ this.expressionsToBeDeoptimized.push(origin);
14638
14571
  return UnknownTruthyValue;
14639
14572
  }
14640
14573
  }
@@ -18882,7 +18815,9 @@ class Chunk {
18882
18815
  }
18883
18816
  return [
18884
18817
  resolution || '',
18885
- (this.outputOptions.format === 'es' && this.outputOptions.externalImportAttributes) || null
18818
+ (['es', 'cjs'].includes(this.outputOptions.format) &&
18819
+ this.outputOptions.externalImportAttributes) ||
18820
+ null
18886
18821
  ];
18887
18822
  }
18888
18823
  getFallbackChunkName() {
@@ -22294,12 +22229,10 @@ function defineConfig(options) {
22294
22229
  return options;
22295
22230
  }
22296
22231
 
22297
- exports.blue = blue;
22298
22232
  exports.bold = bold;
22299
22233
  exports.commandAliases = commandAliases;
22300
22234
  exports.createFilter = createFilter;
22301
- exports.cyan = cyan$1;
22302
- exports.cyan$1 = cyan;
22235
+ exports.cyan = cyan;
22303
22236
  exports.defineConfig = defineConfig;
22304
22237
  exports.ensureArray = ensureArray$1;
22305
22238
  exports.getAugmentedNamespace = getAugmentedNamespace;
@@ -22312,6 +22245,7 @@ exports.handleError = handleError;
22312
22245
  exports.isWatchEnabled = isWatchEnabled;
22313
22246
  exports.mergeOptions = mergeOptions;
22314
22247
  exports.normalizePluginOption = normalizePluginOption;
22248
+ exports.pc = pc;
22315
22249
  exports.rollup = rollup;
22316
22250
  exports.rollupInternal = rollupInternal;
22317
22251
  exports.stderr = stderr;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -28,7 +28,6 @@ require('os');
28
28
  require('./fsevents-importer.js');
29
29
  require('events');
30
30
  require('node:path');
31
- require('tty');
32
31
  require('../native.js');
33
32
  require('node:perf_hooks');
34
33
  require('node:url');
@@ -417,7 +416,7 @@ function createWatchHooks(command) {
417
416
  if (watchHooks[hook]) {
418
417
  const cmd = watchHooks[hook];
419
418
  if (!command.silent) {
420
- rollup.stderr(rollup.cyan$1(`watch.${hook} ${rollup.bold(`$ ${cmd}`)}`));
419
+ rollup.stderr(rollup.cyan(`watch.${hook} ${rollup.bold(`$ ${cmd}`)}`));
421
420
  }
422
421
  try {
423
422
  // !! important - use stderr for all writes from execSync
@@ -512,7 +511,7 @@ async function watch(command) {
512
511
  ? input.join(', ')
513
512
  : Object.values(input).join(', ');
514
513
  }
515
- rollup.stderr(rollup.cyan$1(`bundles ${rollup.bold(input)} → ${rollup.bold(event.output.map(parseAst_js.relativeId).join(', '))}...`));
514
+ rollup.stderr(rollup.cyan(`bundles ${rollup.bold(input)} → ${rollup.bold(event.output.map(parseAst_js.relativeId).join(', '))}...`));
516
515
  }
517
516
  runWatchHook('onBundleStart');
518
517
  break;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.29.0
4
- Fri, 20 Dec 2024 18:36:54 GMT - commit dadd4882c4984d7875af799ad56e506784d50e1c
3
+ Rollup.js v4.29.2
4
+ Sun, 05 Jan 2025 12:07:13 GMT - commit f5c349e5bb4cb40b0cc1a1b2a3fb5de415946406
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -18,7 +18,6 @@ const index = require('./index.js');
18
18
  const node_os = require('node:os');
19
19
  require('./parseAst.js');
20
20
  require('../native.js');
21
- require('tty');
22
21
  require('path');
23
22
  require('node:perf_hooks');
24
23
  require('node:fs/promises');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "4.29.0",
3
+ "version": "4.29.2",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -110,25 +110,25 @@
110
110
  "homepage": "https://rollupjs.org/",
111
111
  "optionalDependencies": {
112
112
  "fsevents": "~2.3.2",
113
- "@rollup/rollup-darwin-arm64": "4.29.0",
114
- "@rollup/rollup-android-arm64": "4.29.0",
115
- "@rollup/rollup-win32-arm64-msvc": "4.29.0",
116
- "@rollup/rollup-freebsd-arm64": "4.29.0",
117
- "@rollup/rollup-linux-arm64-gnu": "4.29.0",
118
- "@rollup/rollup-linux-arm64-musl": "4.29.0",
119
- "@rollup/rollup-android-arm-eabi": "4.29.0",
120
- "@rollup/rollup-linux-arm-gnueabihf": "4.29.0",
121
- "@rollup/rollup-linux-arm-musleabihf": "4.29.0",
122
- "@rollup/rollup-win32-ia32-msvc": "4.29.0",
123
- "@rollup/rollup-linux-loongarch64-gnu": "4.29.0",
124
- "@rollup/rollup-linux-riscv64-gnu": "4.29.0",
125
- "@rollup/rollup-linux-powerpc64le-gnu": "4.29.0",
126
- "@rollup/rollup-linux-s390x-gnu": "4.29.0",
127
- "@rollup/rollup-darwin-x64": "4.29.0",
128
- "@rollup/rollup-win32-x64-msvc": "4.29.0",
129
- "@rollup/rollup-freebsd-x64": "4.29.0",
130
- "@rollup/rollup-linux-x64-gnu": "4.29.0",
131
- "@rollup/rollup-linux-x64-musl": "4.29.0"
113
+ "@rollup/rollup-darwin-arm64": "4.29.2",
114
+ "@rollup/rollup-android-arm64": "4.29.2",
115
+ "@rollup/rollup-win32-arm64-msvc": "4.29.2",
116
+ "@rollup/rollup-freebsd-arm64": "4.29.2",
117
+ "@rollup/rollup-linux-arm64-gnu": "4.29.2",
118
+ "@rollup/rollup-linux-arm64-musl": "4.29.2",
119
+ "@rollup/rollup-android-arm-eabi": "4.29.2",
120
+ "@rollup/rollup-linux-arm-gnueabihf": "4.29.2",
121
+ "@rollup/rollup-linux-arm-musleabihf": "4.29.2",
122
+ "@rollup/rollup-win32-ia32-msvc": "4.29.2",
123
+ "@rollup/rollup-linux-loongarch64-gnu": "4.29.2",
124
+ "@rollup/rollup-linux-riscv64-gnu": "4.29.2",
125
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.29.2",
126
+ "@rollup/rollup-linux-s390x-gnu": "4.29.2",
127
+ "@rollup/rollup-darwin-x64": "4.29.2",
128
+ "@rollup/rollup-win32-x64-msvc": "4.29.2",
129
+ "@rollup/rollup-freebsd-x64": "4.29.2",
130
+ "@rollup/rollup-linux-x64-gnu": "4.29.2",
131
+ "@rollup/rollup-linux-x64-musl": "4.29.2"
132
132
  },
133
133
  "dependencies": {
134
134
  "@types/estree": "1.0.6"
@@ -139,12 +139,12 @@
139
139
  "devDependencies": {
140
140
  "@codemirror/commands": "^6.7.1",
141
141
  "@codemirror/lang-javascript": "^6.2.2",
142
- "@codemirror/language": "^6.10.7",
142
+ "@codemirror/language": "^6.10.8",
143
143
  "@codemirror/search": "^6.5.8",
144
144
  "@codemirror/state": "^6.5.0",
145
- "@codemirror/view": "^6.36.0",
145
+ "@codemirror/view": "^6.36.1",
146
146
  "@eslint/js": "^9.17.0",
147
- "@inquirer/prompts": "^7.2.0",
147
+ "@inquirer/prompts": "^7.2.1",
148
148
  "@jridgewell/sourcemap-codec": "^1.5.0",
149
149
  "@mermaid-js/mermaid-cli": "^11.4.2",
150
150
  "@napi-rs/cli": "^2.18.4",
@@ -157,19 +157,18 @@
157
157
  "@rollup/plugin-terser": "^0.4.4",
158
158
  "@rollup/plugin-typescript": "^12.1.2",
159
159
  "@rollup/pluginutils": "^5.1.4",
160
- "@shikijs/vitepress-twoslash": "^1.24.2",
160
+ "@shikijs/vitepress-twoslash": "^1.24.4",
161
161
  "@types/mocha": "^10.0.10",
162
162
  "@types/node": "^18.19.68",
163
163
  "@types/semver": "^7.5.8",
164
164
  "@types/yargs-parser": "^21.0.3",
165
- "@vue/language-server": "^2.1.10",
165
+ "@vue/language-server": "^2.2.0",
166
166
  "acorn": "^8.14.0",
167
167
  "acorn-import-assertions": "^1.9.0",
168
168
  "acorn-jsx": "^5.3.2",
169
169
  "buble": "^0.20.0",
170
170
  "builtin-modules": "^4.0.0",
171
171
  "chokidar": "^3.6.0",
172
- "colorette": "^2.0.20",
173
172
  "concurrently": "^9.1.0",
174
173
  "core-js": "3.38.1",
175
174
  "cross-env": "^7.0.3",
@@ -185,7 +184,7 @@
185
184
  "flru": "^1.0.2",
186
185
  "fs-extra": "^11.2.0",
187
186
  "github-api": "^3.4.0",
188
- "globals": "^15.13.0",
187
+ "globals": "^15.14.0",
189
188
  "husky": "^9.1.7",
190
189
  "is-reference": "^3.0.3",
191
190
  "lint-staged": "^15.2.11",
@@ -195,13 +194,14 @@
195
194
  "nodemon": "^3.1.9",
196
195
  "npm-audit-resolver": "^3.0.0-RC.0",
197
196
  "nyc": "^17.1.0",
197
+ "picocolors": "^1.1.1",
198
198
  "pinia": "^2.3.0",
199
199
  "prettier": "^3.4.2",
200
200
  "prettier-plugin-organize-imports": "^4.1.0",
201
201
  "pretty-bytes": "^6.1.1",
202
202
  "pretty-ms": "^9.2.0",
203
203
  "requirejs": "^2.3.7",
204
- "rollup": "^4.28.1",
204
+ "rollup": "^4.29.1",
205
205
  "rollup-plugin-license": "^3.5.3",
206
206
  "rollup-plugin-string": "^3.0.0",
207
207
  "semver": "^7.6.3",
@@ -213,11 +213,11 @@
213
213
  "terser": "^5.37.0",
214
214
  "tslib": "^2.8.1",
215
215
  "typescript": "^5.7.2",
216
- "typescript-eslint": "^8.18.1",
217
- "vite": "^6.0.3",
216
+ "typescript-eslint": "^8.18.2",
217
+ "vite": "^6.0.5",
218
218
  "vitepress": "^1.5.0",
219
219
  "vue": "^3.5.13",
220
- "vue-tsc": "^2.1.10",
220
+ "vue-tsc": "^2.2.0",
221
221
  "wasm-pack": "^0.13.1",
222
222
  "yargs-parser": "^21.1.1"
223
223
  },