@rollup/wasm-node 4.0.0-23 → 4.0.0-25

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/dist/bin/rollup CHANGED
@@ -1,9 +1,8 @@
1
1
  #!/usr/bin/env node
2
-
3
2
  /*
4
3
  @license
5
- Rollup.js v4.0.0-23
6
- Tue, 26 Sep 2023 20:13:39 GMT - commit f1d93caae901c556ffb1e2f553428754038d65c1
4
+ Rollup.js v4.0.0-25
5
+ Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d
7
6
 
8
7
  https://github.com/rollup/rollup
9
8
 
@@ -18,13 +17,13 @@ const rollup = require('../shared/rollup.js');
18
17
  const require$$2 = require('util');
19
18
  const require$$0 = require('path');
20
19
  const require$$0$1 = require('fs');
20
+ const parseAst_js = require('../shared/parseAst.js');
21
21
  const fseventsImporter = require('../shared/fsevents-importer.js');
22
22
  const promises = require('node:fs/promises');
23
23
  const node_path = require('node:path');
24
24
  const loadConfigFile_js = require('../shared/loadConfigFile.js');
25
25
  require('tty');
26
26
  require('node:perf_hooks');
27
- require('node:crypto');
28
27
  require('../native.js');
29
28
  require('node:url');
30
29
  require('../getLogFilter.js');
@@ -1525,7 +1524,7 @@ async function build(inputOptions, warnings, silent = false) {
1525
1524
  const outputOptions = inputOptions.output;
1526
1525
  const useStdout = !outputOptions[0].file && !outputOptions[0].dir;
1527
1526
  const start = Date.now();
1528
- const files = useStdout ? ['stdout'] : outputOptions.map(t => rollup.relativeId(t.file || t.dir));
1527
+ const files = useStdout ? ['stdout'] : outputOptions.map(t => parseAst_js.relativeId(t.file || t.dir));
1529
1528
  if (!silent) {
1530
1529
  let inputFiles;
1531
1530
  if (typeof inputOptions.input === 'string') {
@@ -1543,7 +1542,7 @@ async function build(inputOptions, warnings, silent = false) {
1543
1542
  if (useStdout) {
1544
1543
  const output = outputOptions[0];
1545
1544
  if (output.sourcemap && output.sourcemap !== 'inline') {
1546
- rollup.handleError(rollup.logOnlyInlineSourcemapsForStdout());
1545
+ rollup.handleError(parseAst_js.logOnlyInlineSourcemapsForStdout());
1547
1546
  }
1548
1547
  const { output: outputs } = await bundle.generate(output);
1549
1548
  for (const file of outputs) {
@@ -1585,7 +1584,7 @@ async function getConfigPath(commandConfig) {
1585
1584
  }
1586
1585
  catch (error) {
1587
1586
  if (error.code === 'MODULE_NOT_FOUND') {
1588
- rollup.handleError(rollup.logMissingExternalConfig(commandConfig));
1587
+ rollup.handleError(parseAst_js.logMissingExternalConfig(commandConfig));
1589
1588
  }
1590
1589
  throw error;
1591
1590
  }
@@ -1617,7 +1616,7 @@ async function runRollup(command) {
1617
1616
  let inputSource;
1618
1617
  if (command._.length > 0) {
1619
1618
  if (command.input) {
1620
- rollup.handleError(rollup.logDuplicateImportOptions());
1619
+ rollup.handleError(parseAst_js.logDuplicateImportOptions());
1621
1620
  }
1622
1621
  inputSource = command._;
1623
1622
  }
@@ -1633,7 +1632,7 @@ async function runRollup(command) {
1633
1632
  for (const input of inputSource) {
1634
1633
  const equalsIndex = input.indexOf('=');
1635
1634
  const value = input.slice(Math.max(0, equalsIndex + 1));
1636
- const key = input.slice(0, Math.max(0, equalsIndex)) || rollup.getAliasName(input);
1635
+ const key = input.slice(0, Math.max(0, equalsIndex)) || parseAst_js.getAliasName(input);
1637
1636
  command.input[key] = value;
1638
1637
  }
1639
1638
  }
@@ -1666,7 +1665,7 @@ async function runRollup(command) {
1666
1665
  }
1667
1666
  if (command.failAfterWarnings && warnings.warningOccurred) {
1668
1667
  warnings.flush();
1669
- rollup.handleError(rollup.logFailAfterWarnings());
1668
+ rollup.handleError(parseAst_js.logFailAfterWarnings());
1670
1669
  }
1671
1670
  }
1672
1671
  catch (error) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-23
4
- Tue, 26 Sep 2023 20:13:39 GMT - commit f1d93caae901c556ffb1e2f553428754038d65c1
3
+ Rollup.js v4.0.0-25
4
+ Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -0,0 +1,12 @@
1
+ /*
2
+ @license
3
+ Rollup.js v4.0.0-25
4
+ Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d
5
+
6
+ https://github.com/rollup/rollup
7
+
8
+ Released under the MIT License.
9
+ */
10
+ import '../native.js';
11
+ export { parseAst } from './shared/parseAst.js';
12
+ import 'node:path';
package/dist/es/rollup.js CHANGED
@@ -1,18 +1,18 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-23
4
- Tue, 26 Sep 2023 20:13:39 GMT - commit f1d93caae901c556ffb1e2f553428754038d65c1
3
+ Rollup.js v4.0.0-25
4
+ Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
8
8
  Released under the MIT License.
9
9
  */
10
10
  export { version as VERSION, defineConfig, rollup, watch } from './shared/node-entry.js';
11
+ import './shared/parseAst.js';
12
+ import '../native.js';
11
13
  import 'node:path';
12
14
  import 'path';
13
15
  import 'node:process';
14
16
  import 'node:perf_hooks';
15
- import 'node:crypto';
16
- import '../native.js';
17
17
  import 'node:fs/promises';
18
18
  import 'tty';