rollup 2.66.1 → 2.67.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/CHANGELOG.md +28 -1
- package/dist/bin/rollup +9 -9
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +8329 -8341
- package/dist/es/shared/watch.js +17 -17
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.d.ts +2 -3
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +17 -17
- package/dist/shared/loadConfigFile.js +4 -4
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +89 -101
- package/dist/shared/watch-cli.js +15 -15
- package/dist/shared/watch.js +2 -2
- package/package.json +2 -2
package/dist/shared/watch-cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.67.0
|
|
4
|
+
Wed, 02 Feb 2022 06:19:08 GMT - commit 61d772ba59be605e53e72613ae51cee4b72aee64
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
-
const
|
|
13
|
+
const require$$0$2 = require('fs');
|
|
14
|
+
const process$2 = require('process');
|
|
14
15
|
const index = require('./index.js');
|
|
15
16
|
const cli = require('../bin/rollup');
|
|
16
17
|
const rollup = require('./rollup.js');
|
|
@@ -22,7 +23,6 @@ require('util');
|
|
|
22
23
|
require('stream');
|
|
23
24
|
require('os');
|
|
24
25
|
require('./mergeOptions.js');
|
|
25
|
-
require('process');
|
|
26
26
|
require('perf_hooks');
|
|
27
27
|
require('crypto');
|
|
28
28
|
require('url');
|
|
@@ -350,18 +350,18 @@ function getResetScreen(configs, allowClearScreen) {
|
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
async function watch(command) {
|
|
353
|
-
process.env.ROLLUP_WATCH = 'true';
|
|
354
|
-
const isTTY = process.stderr.isTTY;
|
|
353
|
+
process$2.env.ROLLUP_WATCH = 'true';
|
|
354
|
+
const isTTY = process$2.stderr.isTTY;
|
|
355
355
|
const silent = command.silent;
|
|
356
356
|
let watcher;
|
|
357
357
|
let configWatcher;
|
|
358
358
|
let resetScreen;
|
|
359
|
-
const configFile = command.config ? cli.getConfigPath(command.config) : null;
|
|
359
|
+
const configFile = command.config ? await cli.getConfigPath(command.config) : null;
|
|
360
360
|
onExit(close);
|
|
361
|
-
process.on('uncaughtException', close);
|
|
362
|
-
if (!process.stdin.isTTY) {
|
|
363
|
-
process.stdin.on('end', close);
|
|
364
|
-
process.stdin.resume();
|
|
361
|
+
process$2.on('uncaughtException', close);
|
|
362
|
+
if (!process$2.stdin.isTTY) {
|
|
363
|
+
process$2.stdin.on('end', close);
|
|
364
|
+
process$2.stdin.resume();
|
|
365
365
|
}
|
|
366
366
|
async function loadConfigFromFileAndTrack(configFile) {
|
|
367
367
|
let configFileData = null;
|
|
@@ -370,7 +370,7 @@ async function watch(command) {
|
|
|
370
370
|
await reloadConfigFile();
|
|
371
371
|
async function reloadConfigFile() {
|
|
372
372
|
try {
|
|
373
|
-
const newConfigFileData =
|
|
373
|
+
const newConfigFileData = await require$$0$2.promises.readFile(configFile, 'utf8');
|
|
374
374
|
if (newConfigFileData === configFileData) {
|
|
375
375
|
return;
|
|
376
376
|
}
|
|
@@ -452,15 +452,15 @@ async function watch(command) {
|
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
454
|
function close(code) {
|
|
455
|
-
process.removeListener('uncaughtException', close);
|
|
455
|
+
process$2.removeListener('uncaughtException', close);
|
|
456
456
|
// removing a non-existent listener is a no-op
|
|
457
|
-
process.stdin.removeListener('end', close);
|
|
457
|
+
process$2.stdin.removeListener('end', close);
|
|
458
458
|
if (watcher)
|
|
459
459
|
watcher.close();
|
|
460
460
|
if (configWatcher)
|
|
461
461
|
configWatcher.close();
|
|
462
462
|
if (code) {
|
|
463
|
-
process.exit(code);
|
|
463
|
+
process$2.exit(code);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
}
|
package/dist/shared/watch.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.67.0",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
"eslint-plugin-prettier": "^4.0.0",
|
|
88
88
|
"execa": "^5.1.1",
|
|
89
89
|
"fixturify": "^2.1.1",
|
|
90
|
+
"fs-extra": "^10.0.0",
|
|
90
91
|
"hash.js": "^1.1.7",
|
|
91
92
|
"husky": "^7.0.4",
|
|
92
93
|
"is-reference": "^3.0.0",
|
|
@@ -105,7 +106,6 @@
|
|
|
105
106
|
"rollup-plugin-string": "^3.0.0",
|
|
106
107
|
"rollup-plugin-terser": "^7.0.2",
|
|
107
108
|
"rollup-plugin-thatworks": "^1.0.4",
|
|
108
|
-
"sander": "^0.6.0",
|
|
109
109
|
"shx": "^0.3.4",
|
|
110
110
|
"signal-exit": "^3.0.6",
|
|
111
111
|
"source-map": "^0.7.3",
|