rollup 3.9.0 → 3.9.1
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 +46 -0
- package/dist/bin/rollup +5 -5
- package/dist/es/rollup.js +3 -3
- package/dist/es/shared/rollup.js +330 -233
- package/dist/es/shared/watch.js +27 -15
- package/dist/loadConfigFile.js +3 -3
- package/dist/rollup.js +3 -3
- package/dist/shared/index.js +25 -13
- package/dist/shared/loadConfigFile.js +5 -5
- package/dist/shared/rollup.js +332 -236
- package/dist/shared/watch-cli.js +20 -12
- package/dist/shared/watch.js +3 -3
- package/package.json +30 -30
package/dist/es/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.9.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.9.1
|
|
4
|
+
Mon, 02 Jan 2023 13:46:34 GMT - commit c6c884433e748cde70f3f4299dd48b81af97ec14
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { resolve } from 'node:path';
|
|
11
11
|
import process$1 from 'node:process';
|
|
12
|
-
import {
|
|
12
|
+
import { picomatchExports, getAugmentedNamespace, fseventsImporter, createFilter, rollupInternal } from './rollup.js';
|
|
13
13
|
import { platform } from 'node:os';
|
|
14
14
|
import require$$0$1 from 'fs';
|
|
15
15
|
import require$$2 from 'util';
|
|
@@ -19,7 +19,7 @@ import require$$2$1 from 'os';
|
|
|
19
19
|
import require$$0$3 from 'events';
|
|
20
20
|
import 'node:perf_hooks';
|
|
21
21
|
import 'node:crypto';
|
|
22
|
-
import 'node:fs';
|
|
22
|
+
import 'node:fs/promises';
|
|
23
23
|
import 'node:events';
|
|
24
24
|
import 'tty';
|
|
25
25
|
|
|
@@ -29,7 +29,7 @@ const fs$3 = require$$0$1;
|
|
|
29
29
|
const { Readable } = require$$1;
|
|
30
30
|
const sysPath$3 = require$$0$2;
|
|
31
31
|
const { promisify: promisify$3 } = require$$2;
|
|
32
|
-
const picomatch$1 =
|
|
32
|
+
const picomatch$1 = picomatchExports;
|
|
33
33
|
|
|
34
34
|
const readdir$1 = promisify$3(fs$3.readdir);
|
|
35
35
|
const stat$3 = promisify$3(fs$3.stat);
|
|
@@ -311,7 +311,11 @@ readdirp$1.default = readdirp$1;
|
|
|
311
311
|
|
|
312
312
|
var readdirp_1 = readdirp$1;
|
|
313
313
|
|
|
314
|
-
var
|
|
314
|
+
var anymatchExports = {};
|
|
315
|
+
var anymatch$2 = {
|
|
316
|
+
get exports(){ return anymatchExports; },
|
|
317
|
+
set exports(v){ anymatchExports = v; },
|
|
318
|
+
};
|
|
315
319
|
|
|
316
320
|
/*!
|
|
317
321
|
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
@@ -349,9 +353,9 @@ var normalizePath$2 = function(path, stripTrailing) {
|
|
|
349
353
|
return prefix + segs.join('/');
|
|
350
354
|
};
|
|
351
355
|
|
|
352
|
-
Object.defineProperty(
|
|
356
|
+
Object.defineProperty(anymatchExports, "__esModule", { value: true });
|
|
353
357
|
|
|
354
|
-
const picomatch =
|
|
358
|
+
const picomatch = picomatchExports;
|
|
355
359
|
const normalizePath$1 = normalizePath$2;
|
|
356
360
|
|
|
357
361
|
/**
|
|
@@ -396,7 +400,7 @@ const matchPatterns = (patterns, negPatterns, args, returnIndex) => {
|
|
|
396
400
|
throw new TypeError('anymatch: second argument must be a string: got ' +
|
|
397
401
|
Object.prototype.toString.call(_path))
|
|
398
402
|
}
|
|
399
|
-
const path = normalizePath$1(_path);
|
|
403
|
+
const path = normalizePath$1(_path, false);
|
|
400
404
|
|
|
401
405
|
for (let index = 0; index < negPatterns.length; index++) {
|
|
402
406
|
const nglob = negPatterns[index];
|
|
@@ -2085,7 +2089,11 @@ braces$1.create = (input, options = {}) => {
|
|
|
2085
2089
|
|
|
2086
2090
|
var braces_1 = braces$1;
|
|
2087
2091
|
|
|
2088
|
-
var
|
|
2092
|
+
var binaryExtensionsExports = {};
|
|
2093
|
+
var binaryExtensions$1 = {
|
|
2094
|
+
get exports(){ return binaryExtensionsExports; },
|
|
2095
|
+
set exports(v){ binaryExtensionsExports = v; },
|
|
2096
|
+
};
|
|
2089
2097
|
|
|
2090
2098
|
const require$$0 = [
|
|
2091
2099
|
"3dm",
|
|
@@ -2353,7 +2361,7 @@ const require$$0 = [
|
|
|
2353
2361
|
} (binaryExtensions$1));
|
|
2354
2362
|
|
|
2355
2363
|
const path = require$$0$2;
|
|
2356
|
-
const binaryExtensions =
|
|
2364
|
+
const binaryExtensions = binaryExtensionsExports;
|
|
2357
2365
|
|
|
2358
2366
|
const extensions = new Set(binaryExtensions);
|
|
2359
2367
|
|
|
@@ -3071,7 +3079,11 @@ async _addToNodeFs(path, initialAdd, priorWh, depth, target) {
|
|
|
3071
3079
|
|
|
3072
3080
|
var nodefsHandler = NodeFsHandler$1;
|
|
3073
3081
|
|
|
3074
|
-
var
|
|
3082
|
+
var fseventsHandlerExports = {};
|
|
3083
|
+
var fseventsHandler = {
|
|
3084
|
+
get exports(){ return fseventsHandlerExports; },
|
|
3085
|
+
set exports(v){ fseventsHandlerExports = v; },
|
|
3086
|
+
};
|
|
3075
3087
|
|
|
3076
3088
|
const require$$3 = /*@__PURE__*/getAugmentedNamespace(fseventsImporter);
|
|
3077
3089
|
|
|
@@ -3596,21 +3608,21 @@ async _addToFsEvents(path, transform, forceAdd, priorDepth) {
|
|
|
3596
3608
|
};
|
|
3597
3609
|
|
|
3598
3610
|
fseventsHandler.exports = FsEventsHandler$1;
|
|
3599
|
-
|
|
3611
|
+
fseventsHandlerExports.canUse = canUse;
|
|
3600
3612
|
|
|
3601
3613
|
const { EventEmitter } = require$$0$3;
|
|
3602
3614
|
const fs = require$$0$1;
|
|
3603
3615
|
const sysPath = require$$0$2;
|
|
3604
3616
|
const { promisify } = require$$2;
|
|
3605
3617
|
const readdirp = readdirp_1;
|
|
3606
|
-
const anymatch =
|
|
3618
|
+
const anymatch = anymatchExports.default;
|
|
3607
3619
|
const globParent = globParent$1;
|
|
3608
3620
|
const isGlob = isGlob$2;
|
|
3609
3621
|
const braces = braces_1;
|
|
3610
3622
|
const normalizePath = normalizePath$2;
|
|
3611
3623
|
|
|
3612
3624
|
const NodeFsHandler = nodefsHandler;
|
|
3613
|
-
const FsEventsHandler =
|
|
3625
|
+
const FsEventsHandler = fseventsHandlerExports;
|
|
3614
3626
|
const {
|
|
3615
3627
|
EV_ALL,
|
|
3616
3628
|
EV_READY,
|
package/dist/loadConfigFile.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.9.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.9.1
|
|
4
|
+
Mon, 02 Jan 2023 13:46:34 GMT - commit c6c884433e748cde70f3f4299dd48b81af97ec14
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
13
13
|
|
|
14
|
-
require('node:fs');
|
|
14
|
+
require('node:fs/promises');
|
|
15
15
|
require('node:path');
|
|
16
16
|
require('node:process');
|
|
17
17
|
require('node:url');
|
package/dist/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.9.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.9.1
|
|
4
|
+
Mon, 02 Jan 2023 13:46:34 GMT - commit c6c884433e748cde70f3f4299dd48b81af97ec14
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -17,7 +17,7 @@ require('path');
|
|
|
17
17
|
require('node:process');
|
|
18
18
|
require('node:perf_hooks');
|
|
19
19
|
require('node:crypto');
|
|
20
|
-
require('node:fs');
|
|
20
|
+
require('node:fs/promises');
|
|
21
21
|
require('node:events');
|
|
22
22
|
require('tty');
|
|
23
23
|
|
package/dist/shared/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.9.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.9.1
|
|
4
|
+
Mon, 02 Jan 2023 13:46:34 GMT - commit c6c884433e748cde70f3f4299dd48b81af97ec14
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -23,7 +23,7 @@ const fs$3 = require$$0$1;
|
|
|
23
23
|
const { Readable } = require$$1;
|
|
24
24
|
const sysPath$3 = require$$0$2;
|
|
25
25
|
const { promisify: promisify$3 } = require$$2;
|
|
26
|
-
const picomatch$1 = rollup.
|
|
26
|
+
const picomatch$1 = rollup.picomatchExports;
|
|
27
27
|
|
|
28
28
|
const readdir$1 = promisify$3(fs$3.readdir);
|
|
29
29
|
const stat$3 = promisify$3(fs$3.stat);
|
|
@@ -305,7 +305,11 @@ readdirp$1.default = readdirp$1;
|
|
|
305
305
|
|
|
306
306
|
var readdirp_1 = readdirp$1;
|
|
307
307
|
|
|
308
|
-
var
|
|
308
|
+
var anymatchExports = {};
|
|
309
|
+
var anymatch$2 = {
|
|
310
|
+
get exports(){ return anymatchExports; },
|
|
311
|
+
set exports(v){ anymatchExports = v; },
|
|
312
|
+
};
|
|
309
313
|
|
|
310
314
|
/*!
|
|
311
315
|
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
@@ -343,9 +347,9 @@ var normalizePath$2 = function(path, stripTrailing) {
|
|
|
343
347
|
return prefix + segs.join('/');
|
|
344
348
|
};
|
|
345
349
|
|
|
346
|
-
Object.defineProperty(
|
|
350
|
+
Object.defineProperty(anymatchExports, "__esModule", { value: true });
|
|
347
351
|
|
|
348
|
-
const picomatch = rollup.
|
|
352
|
+
const picomatch = rollup.picomatchExports;
|
|
349
353
|
const normalizePath$1 = normalizePath$2;
|
|
350
354
|
|
|
351
355
|
/**
|
|
@@ -390,7 +394,7 @@ const matchPatterns = (patterns, negPatterns, args, returnIndex) => {
|
|
|
390
394
|
throw new TypeError('anymatch: second argument must be a string: got ' +
|
|
391
395
|
Object.prototype.toString.call(_path))
|
|
392
396
|
}
|
|
393
|
-
const path = normalizePath$1(_path);
|
|
397
|
+
const path = normalizePath$1(_path, false);
|
|
394
398
|
|
|
395
399
|
for (let index = 0; index < negPatterns.length; index++) {
|
|
396
400
|
const nglob = negPatterns[index];
|
|
@@ -2079,7 +2083,11 @@ braces$1.create = (input, options = {}) => {
|
|
|
2079
2083
|
|
|
2080
2084
|
var braces_1 = braces$1;
|
|
2081
2085
|
|
|
2082
|
-
var
|
|
2086
|
+
var binaryExtensionsExports = {};
|
|
2087
|
+
var binaryExtensions$1 = {
|
|
2088
|
+
get exports(){ return binaryExtensionsExports; },
|
|
2089
|
+
set exports(v){ binaryExtensionsExports = v; },
|
|
2090
|
+
};
|
|
2083
2091
|
|
|
2084
2092
|
const require$$0 = [
|
|
2085
2093
|
"3dm",
|
|
@@ -2347,7 +2355,7 @@ const require$$0 = [
|
|
|
2347
2355
|
} (binaryExtensions$1));
|
|
2348
2356
|
|
|
2349
2357
|
const path = require$$0$2;
|
|
2350
|
-
const binaryExtensions =
|
|
2358
|
+
const binaryExtensions = binaryExtensionsExports;
|
|
2351
2359
|
|
|
2352
2360
|
const extensions = new Set(binaryExtensions);
|
|
2353
2361
|
|
|
@@ -3065,7 +3073,11 @@ async _addToNodeFs(path, initialAdd, priorWh, depth, target) {
|
|
|
3065
3073
|
|
|
3066
3074
|
var nodefsHandler = NodeFsHandler$1;
|
|
3067
3075
|
|
|
3068
|
-
var
|
|
3076
|
+
var fseventsHandlerExports = {};
|
|
3077
|
+
var fseventsHandler = {
|
|
3078
|
+
get exports(){ return fseventsHandlerExports; },
|
|
3079
|
+
set exports(v){ fseventsHandlerExports = v; },
|
|
3080
|
+
};
|
|
3069
3081
|
|
|
3070
3082
|
const require$$3 = /*@__PURE__*/rollup.getAugmentedNamespace(rollup.fseventsImporter);
|
|
3071
3083
|
|
|
@@ -3590,21 +3602,21 @@ async _addToFsEvents(path, transform, forceAdd, priorDepth) {
|
|
|
3590
3602
|
};
|
|
3591
3603
|
|
|
3592
3604
|
fseventsHandler.exports = FsEventsHandler$1;
|
|
3593
|
-
|
|
3605
|
+
fseventsHandlerExports.canUse = canUse;
|
|
3594
3606
|
|
|
3595
3607
|
const { EventEmitter } = require$$0$3;
|
|
3596
3608
|
const fs = require$$0$1;
|
|
3597
3609
|
const sysPath = require$$0$2;
|
|
3598
3610
|
const { promisify } = require$$2;
|
|
3599
3611
|
const readdirp = readdirp_1;
|
|
3600
|
-
const anymatch =
|
|
3612
|
+
const anymatch = anymatchExports.default;
|
|
3601
3613
|
const globParent = globParent$1;
|
|
3602
3614
|
const isGlob = isGlob$2;
|
|
3603
3615
|
const braces = braces_1;
|
|
3604
3616
|
const normalizePath = normalizePath$2;
|
|
3605
3617
|
|
|
3606
3618
|
const NodeFsHandler = nodefsHandler;
|
|
3607
|
-
const FsEventsHandler =
|
|
3619
|
+
const FsEventsHandler = fseventsHandlerExports;
|
|
3608
3620
|
const {
|
|
3609
3621
|
EV_ALL,
|
|
3610
3622
|
EV_READY,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.9.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.9.1
|
|
4
|
+
Mon, 02 Jan 2023 13:46:34 GMT - commit c6c884433e748cde70f3f4299dd48b81af97ec14
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
|
-
const
|
|
12
|
+
const promises = require('node:fs/promises');
|
|
13
13
|
const node_path = require('node:path');
|
|
14
14
|
const process = require('node:process');
|
|
15
15
|
const node_url = require('node:url');
|
|
@@ -482,13 +482,13 @@ async function loadTranspiledConfigFile(fileName, { bundleConfigAsCjs, configPlu
|
|
|
482
482
|
return loadConfigFromWrittenFile(node_path.join(node_path.dirname(fileName), `rollup.config-${Date.now()}.${bundleConfigAsCjs ? 'cjs' : 'mjs'}`), code);
|
|
483
483
|
}
|
|
484
484
|
async function loadConfigFromWrittenFile(bundledFileName, bundledCode) {
|
|
485
|
-
await
|
|
485
|
+
await promises.writeFile(bundledFileName, bundledCode);
|
|
486
486
|
try {
|
|
487
487
|
return (await import(node_url.pathToFileURL(bundledFileName).href)).default;
|
|
488
488
|
}
|
|
489
489
|
finally {
|
|
490
490
|
// Not awaiting here saves some ms while potentially hiding a non-critical error
|
|
491
|
-
|
|
491
|
+
promises.unlink(bundledFileName);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
async function getConfigList(configFileExport, commandOptions) {
|