@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 +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/shared/watch-cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.0.0
|
|
4
|
-
|
|
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
|
|
|
@@ -16,6 +16,7 @@ const process$2 = require('node:process');
|
|
|
16
16
|
const index = require('./index.js');
|
|
17
17
|
const cli = require('../bin/rollup');
|
|
18
18
|
const rollup = require('./rollup.js');
|
|
19
|
+
const parseAst_js = require('./parseAst.js');
|
|
19
20
|
const loadConfigFile_js = require('./loadConfigFile.js');
|
|
20
21
|
const node_child_process = require('node:child_process');
|
|
21
22
|
const watchProxy = require('./watch-proxy.js');
|
|
@@ -511,7 +512,7 @@ async function watch(command) {
|
|
|
511
512
|
? input.join(', ')
|
|
512
513
|
: Object.values(input).join(', ');
|
|
513
514
|
}
|
|
514
|
-
rollup.stderr(rollup.cyan$1(`bundles ${rollup.bold(input)} → ${rollup.bold(event.output.map(
|
|
515
|
+
rollup.stderr(rollup.cyan$1(`bundles ${rollup.bold(input)} → ${rollup.bold(event.output.map(parseAst_js.relativeId).join(', '))}...`));
|
|
515
516
|
}
|
|
516
517
|
runWatchHook('onBundleStart');
|
|
517
518
|
break;
|
|
@@ -519,7 +520,7 @@ async function watch(command) {
|
|
|
519
520
|
case 'BUNDLE_END': {
|
|
520
521
|
warnings.flush();
|
|
521
522
|
if (!silent)
|
|
522
|
-
rollup.stderr(rollup.green(`created ${rollup.bold(event.output.map(
|
|
523
|
+
rollup.stderr(rollup.green(`created ${rollup.bold(event.output.map(parseAst_js.relativeId).join(', '))} in ${rollup.bold(cli.prettyMilliseconds(event.duration))}`));
|
|
523
524
|
runWatchHook('onBundleEnd');
|
|
524
525
|
if (event.result && event.result.getTimings) {
|
|
525
526
|
cli.printTimings(event.result.getTimings());
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.0.0
|
|
4
|
-
|
|
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
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
12
|
const rollup = require('./rollup.js');
|
|
13
|
+
const parseAst_js = require('./parseAst.js');
|
|
13
14
|
const fseventsImporter = require('./fsevents-importer.js');
|
|
14
15
|
|
|
15
16
|
class WatchEmitter {
|
|
@@ -76,7 +77,7 @@ async function watchInternal(configs, emitter) {
|
|
|
76
77
|
const optionsList = await Promise.all(rollup.ensureArray(configs).map(config => rollup.mergeOptions(config, true)));
|
|
77
78
|
const watchOptionsList = optionsList.filter(config => config.watch !== false);
|
|
78
79
|
if (watchOptionsList.length === 0) {
|
|
79
|
-
return
|
|
80
|
+
return parseAst_js.error(parseAst_js.logInvalidOption('watch', parseAst_js.URL_WATCH, 'there must be at least one config where "watch" is not set to "false"'));
|
|
80
81
|
}
|
|
81
82
|
await fseventsImporter.loadFsEvents();
|
|
82
83
|
const { Watcher } = await Promise.resolve().then(() => require('./watch.js'));
|
package/dist/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.0.0
|
|
4
|
-
|
|
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
|
|
|
@@ -16,10 +16,11 @@ const process = require('node:process');
|
|
|
16
16
|
const rollup = require('./rollup.js');
|
|
17
17
|
const node_os = require('node:os');
|
|
18
18
|
const index = require('./index.js');
|
|
19
|
+
require('./parseAst.js');
|
|
20
|
+
require('../native.js');
|
|
19
21
|
require('tty');
|
|
20
22
|
require('path');
|
|
21
23
|
require('node:perf_hooks');
|
|
22
|
-
require('../native.js');
|
|
23
24
|
require('node:fs/promises');
|
|
24
25
|
require('fs');
|
|
25
26
|
require('util');
|
|
@@ -273,8 +273,8 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
273
273
|
takeObject(arg0);
|
|
274
274
|
};
|
|
275
275
|
|
|
276
|
-
module.exports.
|
|
277
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
276
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
277
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
278
278
|
return addHeapObject(ret);
|
|
279
279
|
};
|
|
280
280
|
|
|
@@ -309,8 +309,8 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
309
309
|
return ret;
|
|
310
310
|
};
|
|
311
311
|
|
|
312
|
-
module.exports.
|
|
313
|
-
const ret =
|
|
312
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
313
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
314
314
|
return addHeapObject(ret);
|
|
315
315
|
};
|
|
316
316
|
|
|
@@ -331,6 +331,11 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
|
331
331
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
332
332
|
};
|
|
333
333
|
|
|
334
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
335
|
+
const ret = arg0;
|
|
336
|
+
return addHeapObject(ret);
|
|
337
|
+
};
|
|
338
|
+
|
|
334
339
|
module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
335
340
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
336
341
|
return addHeapObject(ret);
|
|
@@ -454,6 +459,11 @@ module.exports.__wbg_getTimezoneOffset_8aee3445f323973e = function(arg0) {
|
|
|
454
459
|
return ret;
|
|
455
460
|
};
|
|
456
461
|
|
|
462
|
+
module.exports.__wbg_new_cd59bfc8881f487b = function(arg0) {
|
|
463
|
+
const ret = new Date(getObject(arg0));
|
|
464
|
+
return addHeapObject(ret);
|
|
465
|
+
};
|
|
466
|
+
|
|
457
467
|
module.exports.__wbg_new0_c0be7df4b6bd481f = function() {
|
|
458
468
|
const ret = new Date();
|
|
459
469
|
return addHeapObject(ret);
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollup/wasm-node",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Next-generation ES module bundler with Node wasm",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"@rollup/plugin-typescript": "It appears that 11.1.3 breaks sourcemaps"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@codemirror/commands": "^6.
|
|
32
|
+
"@codemirror/commands": "^6.3.0",
|
|
33
33
|
"@codemirror/lang-javascript": "^6.2.1",
|
|
34
34
|
"@codemirror/language": "^6.9.1",
|
|
35
35
|
"@codemirror/search": "^6.5.4",
|
|
36
36
|
"@codemirror/state": "^6.2.1",
|
|
37
|
-
"@codemirror/view": "^6.
|
|
37
|
+
"@codemirror/view": "^6.21.2",
|
|
38
38
|
"@jridgewell/sourcemap-codec": "^1.4.15",
|
|
39
39
|
"@mermaid-js/mermaid-cli": "^10.4.0",
|
|
40
|
-
"@napi-rs/cli": "^2.16.
|
|
40
|
+
"@napi-rs/cli": "^2.16.3",
|
|
41
41
|
"@rollup/plugin-alias": "^5.0.0",
|
|
42
42
|
"@rollup/plugin-buble": "^1.0.2",
|
|
43
43
|
"@rollup/plugin-commonjs": "^25.0.4",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
46
46
|
"@rollup/plugin-replace": "^5.0.2",
|
|
47
47
|
"@rollup/plugin-terser": "^0.4.3",
|
|
48
|
-
"@rollup/plugin-typescript": "11.1.
|
|
48
|
+
"@rollup/plugin-typescript": "11.1.4",
|
|
49
49
|
"@rollup/pluginutils": "^5.0.4",
|
|
50
50
|
"@types/estree": "1.0.2",
|
|
51
|
-
"@types/mocha": "^10.0.
|
|
51
|
+
"@types/mocha": "^10.0.2",
|
|
52
52
|
"@types/node": "18.0.0",
|
|
53
53
|
"@types/yargs-parser": "^21.0.1",
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^6.7.
|
|
55
|
-
"@typescript-eslint/parser": "^6.7.
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^6.7.4",
|
|
55
|
+
"@typescript-eslint/parser": "^6.7.4",
|
|
56
56
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
57
57
|
"@vue/eslint-config-typescript": "^12.0.0",
|
|
58
58
|
"acorn": "^8.10.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"chokidar": "^3.5.3",
|
|
63
63
|
"colorette": "^2.0.20",
|
|
64
64
|
"concurrently": "^8.2.1",
|
|
65
|
-
"core-js": "^3.
|
|
65
|
+
"core-js": "^3.33.0",
|
|
66
66
|
"date-time": "^4.0.0",
|
|
67
67
|
"es5-shim": "^4.6.7",
|
|
68
68
|
"es6-shim": "^0.35.8",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"is-reference": "^3.0.2",
|
|
83
83
|
"lint-staged": "^14.0.1",
|
|
84
84
|
"locate-character": "^3.0.0",
|
|
85
|
-
"magic-string": "^0.30.
|
|
85
|
+
"magic-string": "^0.30.4",
|
|
86
86
|
"mocha": "^10.2.0",
|
|
87
87
|
"nyc": "^15.1.0",
|
|
88
88
|
"pinia": "^2.1.6",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"pretty-bytes": "^6.1.1",
|
|
91
91
|
"pretty-ms": "^8.0.0",
|
|
92
92
|
"requirejs": "^2.3.6",
|
|
93
|
-
"rollup": "^3.29.
|
|
93
|
+
"rollup": "^3.29.4",
|
|
94
94
|
"rollup-plugin-license": "^3.1.0",
|
|
95
95
|
"rollup-plugin-string": "^3.0.0",
|
|
96
96
|
"rollup-plugin-thatworks": "^1.0.4",
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
"source-map": "^0.7.4",
|
|
101
101
|
"source-map-support": "^0.5.21",
|
|
102
102
|
"systemjs": "^6.14.2",
|
|
103
|
-
"terser": "^5.
|
|
103
|
+
"terser": "^5.21.0",
|
|
104
104
|
"tslib": "^2.6.2",
|
|
105
105
|
"typescript": "^5.2.2",
|
|
106
|
-
"vite": "^4.4.
|
|
106
|
+
"vite": "^4.4.11",
|
|
107
107
|
"vitepress": "^1.0.0-rc.20",
|
|
108
108
|
"vue": "^3.3.4",
|
|
109
109
|
"wasm-pack": "^0.12.1",
|
|
@@ -141,6 +141,11 @@
|
|
|
141
141
|
"require": "./dist/getLogFilter.js",
|
|
142
142
|
"import": "./dist/es/getLogFilter.js"
|
|
143
143
|
},
|
|
144
|
+
"./parseAst": {
|
|
145
|
+
"types": "./dist/parseAst.d.ts",
|
|
146
|
+
"require": "./dist/parseAst.js",
|
|
147
|
+
"import": "./dist/es/parseAst.js"
|
|
148
|
+
},
|
|
144
149
|
"./dist/*": "./dist/*"
|
|
145
150
|
}
|
|
146
151
|
}
|