@rollup/wasm-node 4.30.0-0 → 4.30.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/LICENSE.md +23 -15
- package/dist/bin/rollup +8 -9
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +2 -2
- package/dist/es/rollup.js +2 -3
- package/dist/es/shared/node-entry.js +802 -1569
- package/dist/es/shared/parseAst.js +3 -3
- package/dist/es/shared/watch.js +6 -7
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -3
- package/dist/parseAst.js +2 -2
- package/dist/rollup.js +2 -3
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +6 -6
- package/dist/shared/loadConfigFile.js +4 -4
- package/dist/shared/parseAst.js +2 -2
- package/dist/shared/rollup.js +833 -1616
- package/dist/shared/watch-cli.js +22 -7
- package/dist/shared/watch.js +3 -4
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +12 -12
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.30.0
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.30.0
|
|
4
|
+
Mon, 06 Jan 2025 06:36:11 GMT - commit 958d5ebabd49297e9a4b78ad34ac0a0132305dea
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
8
8
|
Released under the MIT License.
|
|
9
9
|
*/
|
|
10
10
|
import { parse, parseAsync } from '../../native.js';
|
|
11
|
-
import { resolve,
|
|
11
|
+
import { resolve, basename, extname, dirname } from 'node:path';
|
|
12
12
|
|
|
13
13
|
// This file is generated by scripts/generate-node-types.js.
|
|
14
14
|
// Do not edit this file directly.
|
package/dist/es/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.30.0
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.30.0
|
|
4
|
+
Mon, 06 Jan 2025 06:36:11 GMT - commit 958d5ebabd49297e9a4b78ad34ac0a0132305dea
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -11,8 +11,8 @@ import { getAugmentedNamespace, fseventsImporter, getDefaultExportFromCjs, creat
|
|
|
11
11
|
import path from 'node:path';
|
|
12
12
|
import process$1 from 'node:process';
|
|
13
13
|
import require$$0$1 from 'path';
|
|
14
|
-
import require$$2 from 'util';
|
|
15
14
|
import require$$0$2 from 'fs';
|
|
15
|
+
import require$$2 from 'util';
|
|
16
16
|
import require$$1 from 'stream';
|
|
17
17
|
import require$$2$1 from 'os';
|
|
18
18
|
import require$$0$3 from 'events';
|
|
@@ -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
|
|
|
@@ -1559,7 +1558,7 @@ function requireParse$2 () {
|
|
|
1559
1558
|
}
|
|
1560
1559
|
|
|
1561
1560
|
if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
|
|
1562
|
-
const end = rest[1] !==
|
|
1561
|
+
const end = rest[1] !== undefined ? '|$' : '';
|
|
1563
1562
|
|
|
1564
1563
|
state.output = state.output.slice(0, -(prior.output + prev.output).length);
|
|
1565
1564
|
prior.output = `(?:${prior.output}`;
|
|
@@ -3970,7 +3969,7 @@ function requireParse$1 () {
|
|
|
3970
3969
|
}
|
|
3971
3970
|
|
|
3972
3971
|
if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
|
|
3973
|
-
const end = rest[1] !==
|
|
3972
|
+
const end = rest[1] !== undefined ? '|$' : '';
|
|
3974
3973
|
|
|
3975
3974
|
state.output = state.output.slice(0, -(prior.output + prev.output).length);
|
|
3976
3975
|
prior.output = `(?:${prior.output}`;
|
|
@@ -5164,7 +5163,7 @@ function requireToRegexRange () {
|
|
|
5164
5163
|
throw new TypeError('toRegexRange: expected the first argument to be a number');
|
|
5165
5164
|
}
|
|
5166
5165
|
|
|
5167
|
-
if (max ===
|
|
5166
|
+
if (max === undefined || min === max) {
|
|
5168
5167
|
return String(min);
|
|
5169
5168
|
}
|
|
5170
5169
|
|
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.30.0
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.30.0
|
|
4
|
+
Mon, 06 Jan 2025 06:36:11 GMT - commit 958d5ebabd49297e9a4b78ad34ac0a0132305dea
|
|
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
package/dist/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.30.0
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.30.0
|
|
4
|
+
Mon, 06 Jan 2025 06:36:11 GMT - commit 958d5ebabd49297e9a4b78ad34ac0a0132305dea
|
|
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');
|
package/dist/shared/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.30.0
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.30.0
|
|
4
|
+
Mon, 06 Jan 2025 06:36:11 GMT - commit 958d5ebabd49297e9a4b78ad34ac0a0132305dea
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
const rollup = require('./rollup.js');
|
|
13
13
|
const require$$0$1 = require('path');
|
|
14
|
-
const require$$2 = require('util');
|
|
15
14
|
const require$$0$2 = require('fs');
|
|
15
|
+
const require$$2 = require('util');
|
|
16
16
|
const require$$1 = require('stream');
|
|
17
17
|
const require$$2$1 = require('os');
|
|
18
18
|
const fseventsImporter = require('./fsevents-importer.js');
|
|
@@ -1554,7 +1554,7 @@ function requireParse$2 () {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
1556
|
if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
|
|
1557
|
-
const end = rest[1] !==
|
|
1557
|
+
const end = rest[1] !== undefined ? '|$' : '';
|
|
1558
1558
|
|
|
1559
1559
|
state.output = state.output.slice(0, -(prior.output + prev.output).length);
|
|
1560
1560
|
prior.output = `(?:${prior.output}`;
|
|
@@ -3965,7 +3965,7 @@ function requireParse$1 () {
|
|
|
3965
3965
|
}
|
|
3966
3966
|
|
|
3967
3967
|
if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
|
|
3968
|
-
const end = rest[1] !==
|
|
3968
|
+
const end = rest[1] !== undefined ? '|$' : '';
|
|
3969
3969
|
|
|
3970
3970
|
state.output = state.output.slice(0, -(prior.output + prev.output).length);
|
|
3971
3971
|
prior.output = `(?:${prior.output}`;
|
|
@@ -5159,7 +5159,7 @@ function requireToRegexRange () {
|
|
|
5159
5159
|
throw new TypeError('toRegexRange: expected the first argument to be a number');
|
|
5160
5160
|
}
|
|
5161
5161
|
|
|
5162
|
-
if (max ===
|
|
5162
|
+
if (max === undefined || min === max) {
|
|
5163
5163
|
return String(min);
|
|
5164
5164
|
}
|
|
5165
5165
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.30.0
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.30.0
|
|
4
|
+
Mon, 06 Jan 2025 06:36:11 GMT - commit 958d5ebabd49297e9a4b78ad34ac0a0132305dea
|
|
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
|
}
|
package/dist/shared/parseAst.js
CHANGED