rollup 3.16.0 → 3.17.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/dist/bin/rollup +5 -4
- package/dist/es/rollup.js +3 -3
- package/dist/es/shared/{rollup.js → node-entry.js} +271 -112
- package/dist/es/shared/watch.js +3 -3
- package/dist/loadConfigFile.d.ts +18 -0
- package/dist/loadConfigFile.js +3 -3
- package/dist/rollup.d.ts +2 -0
- package/dist/rollup.js +7 -5
- package/dist/shared/fsevents-importer.js +37 -0
- package/dist/shared/index.js +4 -3
- package/dist/shared/loadConfigFile.js +4 -4
- package/dist/shared/rollup.js +276 -211
- package/dist/shared/watch-cli.js +6 -4
- package/dist/shared/watch-proxy.js +87 -0
- package/dist/shared/watch.js +4 -3
- package/package.json +7 -3
package/dist/rollup.d.ts
CHANGED
|
@@ -653,6 +653,7 @@ export interface OutputOptions {
|
|
|
653
653
|
dynamicImportInCjs?: boolean;
|
|
654
654
|
entryFileNames?: string | ((chunkInfo: PreRenderedChunk) => string);
|
|
655
655
|
esModule?: boolean | 'if-default-prop';
|
|
656
|
+
/** @deprecated This option is no longer needed and ignored. */
|
|
656
657
|
experimentalDeepDynamicChunkOptimization?: boolean;
|
|
657
658
|
experimentalMinChunkSize?: number;
|
|
658
659
|
exports?: 'default' | 'named' | 'none' | 'auto';
|
|
@@ -708,6 +709,7 @@ export interface NormalizedOutputOptions {
|
|
|
708
709
|
dynamicImportInCjs: boolean;
|
|
709
710
|
entryFileNames: string | ((chunkInfo: PreRenderedChunk) => string);
|
|
710
711
|
esModule: boolean | 'if-default-prop';
|
|
712
|
+
/** @deprecated This option is no longer needed and ignored. */
|
|
711
713
|
experimentalDeepDynamicChunkOptimization: boolean;
|
|
712
714
|
experimentalMinChunkSize: number;
|
|
713
715
|
exports: 'default' | 'named' | 'none' | 'auto';
|
package/dist/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.17.1
|
|
4
|
+
Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -12,19 +12,21 @@
|
|
|
12
12
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
13
13
|
|
|
14
14
|
const rollup = require('./shared/rollup.js');
|
|
15
|
+
const watchProxy = require('./shared/watch-proxy.js');
|
|
16
|
+
require('node:process');
|
|
17
|
+
require('tty');
|
|
15
18
|
require('node:path');
|
|
16
19
|
require('path');
|
|
17
|
-
require('node:process');
|
|
18
20
|
require('node:perf_hooks');
|
|
19
21
|
require('node:crypto');
|
|
20
22
|
require('node:fs/promises');
|
|
21
23
|
require('node:events');
|
|
22
|
-
require('
|
|
24
|
+
require('./shared/fsevents-importer.js');
|
|
23
25
|
|
|
24
26
|
|
|
25
27
|
|
|
26
28
|
exports.VERSION = rollup.version;
|
|
27
29
|
exports.defineConfig = rollup.defineConfig;
|
|
28
30
|
exports.rollup = rollup.rollup;
|
|
29
|
-
exports.watch =
|
|
31
|
+
exports.watch = watchProxy.watch;
|
|
30
32
|
//# sourceMappingURL=rollup.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@license
|
|
3
|
+
Rollup.js v3.17.1
|
|
4
|
+
Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
|
|
5
|
+
|
|
6
|
+
https://github.com/rollup/rollup
|
|
7
|
+
|
|
8
|
+
Released under the MIT License.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
let fsEvents;
|
|
13
|
+
let fsEventsImportError;
|
|
14
|
+
async function loadFsEvents() {
|
|
15
|
+
try {
|
|
16
|
+
({ default: fsEvents } = await import('fsevents'));
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
fsEventsImportError = error;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
// A call to this function will be injected into the chokidar code
|
|
23
|
+
function getFsEvents() {
|
|
24
|
+
if (fsEventsImportError)
|
|
25
|
+
throw fsEventsImportError;
|
|
26
|
+
return fsEvents;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const fseventsImporter = /*#__PURE__*/Object.defineProperty({
|
|
30
|
+
__proto__: null,
|
|
31
|
+
getFsEvents,
|
|
32
|
+
loadFsEvents
|
|
33
|
+
}, Symbol.toStringTag, { value: 'Module' });
|
|
34
|
+
|
|
35
|
+
exports.fseventsImporter = fseventsImporter;
|
|
36
|
+
exports.loadFsEvents = loadFsEvents;
|
|
37
|
+
//# sourceMappingURL=fsevents-importer.js.map
|
package/dist/shared/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.17.1
|
|
4
|
+
Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -15,6 +15,7 @@ const require$$2 = require('util');
|
|
|
15
15
|
const require$$1 = require('stream');
|
|
16
16
|
const require$$0$2 = require('path');
|
|
17
17
|
const require$$2$1 = require('os');
|
|
18
|
+
const fseventsImporter = require('./fsevents-importer.js');
|
|
18
19
|
const require$$0$3 = require('events');
|
|
19
20
|
|
|
20
21
|
var chokidar = {};
|
|
@@ -3079,7 +3080,7 @@ var fseventsHandler = {
|
|
|
3079
3080
|
set exports(v){ fseventsHandlerExports = v; },
|
|
3080
3081
|
};
|
|
3081
3082
|
|
|
3082
|
-
const require$$3 = /*@__PURE__*/rollup.getAugmentedNamespace(
|
|
3083
|
+
const require$$3 = /*@__PURE__*/rollup.getAugmentedNamespace(fseventsImporter.fseventsImporter);
|
|
3083
3084
|
|
|
3084
3085
|
const fs$1 = require$$0$1;
|
|
3085
3086
|
const sysPath$1 = require$$0$2;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.17.1
|
|
4
|
+
Sat, 18 Feb 2023 19:47:52 GMT - commit 2a9abba955cfcb187167aba96e64c7c06f3f02ca
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -387,7 +387,7 @@ async function requireOrImport(pluginPath) {
|
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
-
async
|
|
390
|
+
const loadConfigFile = async (fileName, commandOptions = {}) => {
|
|
391
391
|
const configs = await getConfigList(getDefaultFromCjs(await getConfigFileExport(fileName, commandOptions)), commandOptions);
|
|
392
392
|
const warnings = batchWarnings();
|
|
393
393
|
try {
|
|
@@ -403,7 +403,7 @@ async function loadConfigFile(fileName, commandOptions = {}) {
|
|
|
403
403
|
warnings.flush();
|
|
404
404
|
throw error_;
|
|
405
405
|
}
|
|
406
|
-
}
|
|
406
|
+
};
|
|
407
407
|
async function getConfigFileExport(fileName, commandOptions) {
|
|
408
408
|
if (commandOptions.configPlugin || commandOptions.bundleConfigAsCjs) {
|
|
409
409
|
try {
|