@rollup/wasm-node 4.0.0-24 → 4.0.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/dist/bin/rollup CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.0.0-24
5
- Tue, 03 Oct 2023 05:11:52 GMT - commit ced077f2920c473c4c2ca31a8d72b259bec91f67
4
+ Rollup.js v4.0.0
5
+ Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -17,6 +17,7 @@ const rollup = require('../shared/rollup.js');
17
17
  const require$$2 = require('util');
18
18
  const require$$0 = require('path');
19
19
  const require$$0$1 = require('fs');
20
+ const parseAst_js = require('../shared/parseAst.js');
20
21
  const fseventsImporter = require('../shared/fsevents-importer.js');
21
22
  const promises = require('node:fs/promises');
22
23
  const node_path = require('node:path');
@@ -1523,7 +1524,7 @@ async function build(inputOptions, warnings, silent = false) {
1523
1524
  const outputOptions = inputOptions.output;
1524
1525
  const useStdout = !outputOptions[0].file && !outputOptions[0].dir;
1525
1526
  const start = Date.now();
1526
- 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));
1527
1528
  if (!silent) {
1528
1529
  let inputFiles;
1529
1530
  if (typeof inputOptions.input === 'string') {
@@ -1541,7 +1542,7 @@ async function build(inputOptions, warnings, silent = false) {
1541
1542
  if (useStdout) {
1542
1543
  const output = outputOptions[0];
1543
1544
  if (output.sourcemap && output.sourcemap !== 'inline') {
1544
- rollup.handleError(rollup.logOnlyInlineSourcemapsForStdout());
1545
+ rollup.handleError(parseAst_js.logOnlyInlineSourcemapsForStdout());
1545
1546
  }
1546
1547
  const { output: outputs } = await bundle.generate(output);
1547
1548
  for (const file of outputs) {
@@ -1583,7 +1584,7 @@ async function getConfigPath(commandConfig) {
1583
1584
  }
1584
1585
  catch (error) {
1585
1586
  if (error.code === 'MODULE_NOT_FOUND') {
1586
- rollup.handleError(rollup.logMissingExternalConfig(commandConfig));
1587
+ rollup.handleError(parseAst_js.logMissingExternalConfig(commandConfig));
1587
1588
  }
1588
1589
  throw error;
1589
1590
  }
@@ -1615,7 +1616,7 @@ async function runRollup(command) {
1615
1616
  let inputSource;
1616
1617
  if (command._.length > 0) {
1617
1618
  if (command.input) {
1618
- rollup.handleError(rollup.logDuplicateImportOptions());
1619
+ rollup.handleError(parseAst_js.logDuplicateImportOptions());
1619
1620
  }
1620
1621
  inputSource = command._;
1621
1622
  }
@@ -1631,7 +1632,7 @@ async function runRollup(command) {
1631
1632
  for (const input of inputSource) {
1632
1633
  const equalsIndex = input.indexOf('=');
1633
1634
  const value = input.slice(Math.max(0, equalsIndex + 1));
1634
- 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);
1635
1636
  command.input[key] = value;
1636
1637
  }
1637
1638
  }
@@ -1664,7 +1665,7 @@ async function runRollup(command) {
1664
1665
  }
1665
1666
  if (command.failAfterWarnings && warnings.warningOccurred) {
1666
1667
  warnings.flush();
1667
- rollup.handleError(rollup.logFailAfterWarnings());
1668
+ rollup.handleError(parseAst_js.logFailAfterWarnings());
1668
1669
  }
1669
1670
  }
1670
1671
  catch (error) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-24
4
- Tue, 03 Oct 2023 05:11:52 GMT - commit ced077f2920c473c4c2ca31a8d72b259bec91f67
3
+ Rollup.js v4.0.0
4
+ Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -0,0 +1,12 @@
1
+ /*
2
+ @license
3
+ Rollup.js v4.0.0
4
+ Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
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,17 +1,18 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.0.0-24
4
- Tue, 03 Oct 2023 05:11:52 GMT - commit ced077f2920c473c4c2ca31a8d72b259bec91f67
3
+ Rollup.js v4.0.0
4
+ Thu, 05 Oct 2023 15:13:44 GMT - commit 2f261358c62b4f9e62cb86bf99de8d4ff3668994
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 '../native.js';
16
17
  import 'node:fs/promises';
17
18
  import 'tty';