@rollup/wasm-node 4.0.0-24 → 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 +9 -8
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +12 -0
- package/dist/es/rollup.js +4 -3
- package/dist/es/shared/node-entry.js +1021 -3121
- package/dist/es/shared/parseAst.js +2134 -0
- package/dist/es/shared/watch.js +4 -3
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +3 -2
- package/dist/parseAst.d.ts +3 -0
- package/dist/parseAst.js +21 -0
- package/dist/rollup.d.ts +6 -1
- package/dist/rollup.js +5 -4
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +33 -32
- package/dist/shared/parseAst.js +2326 -0
- package/dist/shared/rollup.js +2269 -4454
- package/dist/shared/watch-cli.js +5 -4
- package/dist/shared/watch-proxy.js +4 -3
- package/dist/shared/watch.js +4 -3
- package/dist/wasm-node/bindings_wasm.js +14 -4
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +18 -13
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-
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.0.0-25
|
|
5
|
+
Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d
|
|
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 =>
|
|
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(
|
|
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(
|
|
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(
|
|
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)) ||
|
|
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(
|
|
1668
|
+
rollup.handleError(parseAst_js.logFailAfterWarnings());
|
|
1668
1669
|
}
|
|
1669
1670
|
}
|
|
1670
1671
|
catch (error) {
|
package/dist/es/getLogFilter.js
CHANGED
|
@@ -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,17 +1,18 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.0.0-
|
|
4
|
-
|
|
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 '../native.js';
|
|
16
17
|
import 'node:fs/promises';
|
|
17
18
|
import 'tty';
|