rollup 3.20.5 → 3.20.6
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 +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +13 -21
- package/dist/es/shared/watch.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/rollup.js +13 -21
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch-proxy.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +1 -1
package/dist/bin/rollup
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.20.
|
|
4
|
-
Tue, 18 Apr 2023
|
|
3
|
+
Rollup.js v3.20.6
|
|
4
|
+
Tue, 18 Apr 2023 11:34:41 GMT - commit 911700bc0bc90e5b1b8db01ea77fe3040a05480d
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -16,7 +16,7 @@ import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/pr
|
|
|
16
16
|
import { EventEmitter } from 'node:events';
|
|
17
17
|
import * as tty from 'tty';
|
|
18
18
|
|
|
19
|
-
var version$1 = "3.20.
|
|
19
|
+
var version$1 = "3.20.6";
|
|
20
20
|
|
|
21
21
|
const comma = ','.charCodeAt(0);
|
|
22
22
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -6860,17 +6860,11 @@ function toBase64(value) {
|
|
|
6860
6860
|
return outString;
|
|
6861
6861
|
}
|
|
6862
6862
|
|
|
6863
|
-
const validIdentifier = /^(?!\d)[\w$]+$/;
|
|
6864
|
-
function isValidIdentifier(name) {
|
|
6865
|
-
return validIdentifier.test(name);
|
|
6866
|
-
}
|
|
6867
|
-
|
|
6868
6863
|
function getSafeName(baseName, usedNames, forbiddenNames) {
|
|
6869
|
-
|
|
6870
|
-
let safeName = safeBase;
|
|
6864
|
+
let safeName = baseName;
|
|
6871
6865
|
let count = 1;
|
|
6872
6866
|
while (usedNames.has(safeName) || RESERVED_NAMES$1.has(safeName) || forbiddenNames?.has(safeName)) {
|
|
6873
|
-
safeName = `${
|
|
6867
|
+
safeName = `${baseName}$${toBase64(count++)}`;
|
|
6874
6868
|
}
|
|
6875
6869
|
usedNames.add(safeName);
|
|
6876
6870
|
return safeName;
|
|
@@ -14407,7 +14401,6 @@ function getImportBlock$1(dependencies, { _, cnst, n }, compact) {
|
|
|
14407
14401
|
return '';
|
|
14408
14402
|
}
|
|
14409
14403
|
|
|
14410
|
-
const safeExportName = (name) => isValidIdentifier(name) ? name : JSON.stringify(name);
|
|
14411
14404
|
function es(magicString, { accessedGlobals, indent: t, intro, outro, dependencies, exports, snippets }, { externalLiveBindings, freeze, namespaceToStringTag }) {
|
|
14412
14405
|
const { n } = snippets;
|
|
14413
14406
|
const importBlock = getImportBlock(dependencies, snippets);
|
|
@@ -14457,7 +14450,7 @@ function getImportBlock(dependencies, { _ }) {
|
|
|
14457
14450
|
importBlock.push(`import ${defaultImport ? `${defaultImport.local},${_}` : ''}{${_}${importedNames
|
|
14458
14451
|
.map(specifier => specifier.imported === specifier.local
|
|
14459
14452
|
? specifier.imported
|
|
14460
|
-
: `${
|
|
14453
|
+
: `${specifier.imported} as ${specifier.local}`)
|
|
14461
14454
|
.join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
|
|
14462
14455
|
}
|
|
14463
14456
|
}
|
|
@@ -14485,16 +14478,14 @@ function getImportBlock(dependencies, { _ }) {
|
|
|
14485
14478
|
importBlock.push(`import${_}*${_}as ${name} from${_}${pathWithAssertion}`);
|
|
14486
14479
|
}
|
|
14487
14480
|
for (const specifier of namespaceReexports) {
|
|
14488
|
-
importBlock.push(`export${_}{${_}${name === specifier.reexported
|
|
14489
|
-
? name
|
|
14490
|
-
: `${name} as ${safeExportName(specifier.reexported)}`} };`);
|
|
14481
|
+
importBlock.push(`export${_}{${_}${name === specifier.reexported ? name : `${name} as ${specifier.reexported}`} };`);
|
|
14491
14482
|
}
|
|
14492
14483
|
}
|
|
14493
14484
|
if (namedReexports.length > 0) {
|
|
14494
14485
|
importBlock.push(`export${_}{${_}${namedReexports
|
|
14495
14486
|
.map(specifier => specifier.imported === specifier.reexported
|
|
14496
|
-
?
|
|
14497
|
-
: `${
|
|
14487
|
+
? specifier.imported
|
|
14488
|
+
: `${specifier.imported} as ${specifier.reexported}`)
|
|
14498
14489
|
.join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
|
|
14499
14490
|
}
|
|
14500
14491
|
}
|
|
@@ -14510,7 +14501,7 @@ function getExportBlock(exports, { _, cnst }) {
|
|
|
14510
14501
|
}
|
|
14511
14502
|
exportDeclaration.push(specifier.exported === specifier.local
|
|
14512
14503
|
? specifier.local
|
|
14513
|
-
: `${specifier.local} as ${
|
|
14504
|
+
: `${specifier.local} as ${specifier.exported}`);
|
|
14514
14505
|
}
|
|
14515
14506
|
if (exportDeclaration.length > 0) {
|
|
14516
14507
|
exportBlock.push(`export${_}{${_}${exportDeclaration.join(`,${_}`)}${_}};`);
|
|
@@ -16968,8 +16959,8 @@ function getGenerateCodeSnippets({ compact, generatedCode: { arrowFunctions, con
|
|
|
16968
16959
|
: `${s}${lineBreakIndent ? `${n}${lineBreakIndent.base}` : _}}`
|
|
16969
16960
|
];
|
|
16970
16961
|
const isValidPropertyName = reservedNamesAsProps
|
|
16971
|
-
?
|
|
16972
|
-
: (name) => !RESERVED_NAMES$1.has(name) &&
|
|
16962
|
+
? (name) => validPropertyName.test(name)
|
|
16963
|
+
: (name) => !RESERVED_NAMES$1.has(name) && validPropertyName.test(name);
|
|
16973
16964
|
return {
|
|
16974
16965
|
_,
|
|
16975
16966
|
cnst,
|
|
@@ -17003,6 +16994,7 @@ function getGenerateCodeSnippets({ compact, generatedCode: { arrowFunctions, con
|
|
|
17003
16994
|
};
|
|
17004
16995
|
}
|
|
17005
16996
|
const wrapIfNeeded = (code, needsParens) => needsParens ? `(${code})` : code;
|
|
16997
|
+
const validPropertyName = /^(?!\d)[\w$]+$/;
|
|
17006
16998
|
|
|
17007
16999
|
class Source {
|
|
17008
17000
|
constructor(filename, content) {
|
package/dist/es/shared/watch.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.20.
|
|
4
|
-
Tue, 18 Apr 2023
|
|
3
|
+
Rollup.js v3.20.6
|
|
4
|
+
Tue, 18 Apr 2023 11:34:41 GMT - commit 911700bc0bc90e5b1b8db01ea77fe3040a05480d
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
|
|
|
31
31
|
|
|
32
32
|
const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
|
|
33
33
|
|
|
34
|
-
var version$1 = "3.20.
|
|
34
|
+
var version$1 = "3.20.6";
|
|
35
35
|
|
|
36
36
|
function ensureArray$1(items) {
|
|
37
37
|
if (Array.isArray(items)) {
|
|
@@ -7358,17 +7358,11 @@ function toBase64(value) {
|
|
|
7358
7358
|
return outString;
|
|
7359
7359
|
}
|
|
7360
7360
|
|
|
7361
|
-
const validIdentifier = /^(?!\d)[\w$]+$/;
|
|
7362
|
-
function isValidIdentifier(name) {
|
|
7363
|
-
return validIdentifier.test(name);
|
|
7364
|
-
}
|
|
7365
|
-
|
|
7366
7361
|
function getSafeName(baseName, usedNames, forbiddenNames) {
|
|
7367
|
-
|
|
7368
|
-
let safeName = safeBase;
|
|
7362
|
+
let safeName = baseName;
|
|
7369
7363
|
let count = 1;
|
|
7370
7364
|
while (usedNames.has(safeName) || RESERVED_NAMES$1.has(safeName) || forbiddenNames?.has(safeName)) {
|
|
7371
|
-
safeName = `${
|
|
7365
|
+
safeName = `${baseName}$${toBase64(count++)}`;
|
|
7372
7366
|
}
|
|
7373
7367
|
usedNames.add(safeName);
|
|
7374
7368
|
return safeName;
|
|
@@ -14905,7 +14899,6 @@ function getImportBlock$1(dependencies, { _, cnst, n }, compact) {
|
|
|
14905
14899
|
return '';
|
|
14906
14900
|
}
|
|
14907
14901
|
|
|
14908
|
-
const safeExportName = (name) => isValidIdentifier(name) ? name : JSON.stringify(name);
|
|
14909
14902
|
function es(magicString, { accessedGlobals, indent: t, intro, outro, dependencies, exports, snippets }, { externalLiveBindings, freeze, namespaceToStringTag }) {
|
|
14910
14903
|
const { n } = snippets;
|
|
14911
14904
|
const importBlock = getImportBlock(dependencies, snippets);
|
|
@@ -14955,7 +14948,7 @@ function getImportBlock(dependencies, { _ }) {
|
|
|
14955
14948
|
importBlock.push(`import ${defaultImport ? `${defaultImport.local},${_}` : ''}{${_}${importedNames
|
|
14956
14949
|
.map(specifier => specifier.imported === specifier.local
|
|
14957
14950
|
? specifier.imported
|
|
14958
|
-
: `${
|
|
14951
|
+
: `${specifier.imported} as ${specifier.local}`)
|
|
14959
14952
|
.join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
|
|
14960
14953
|
}
|
|
14961
14954
|
}
|
|
@@ -14983,16 +14976,14 @@ function getImportBlock(dependencies, { _ }) {
|
|
|
14983
14976
|
importBlock.push(`import${_}*${_}as ${name} from${_}${pathWithAssertion}`);
|
|
14984
14977
|
}
|
|
14985
14978
|
for (const specifier of namespaceReexports) {
|
|
14986
|
-
importBlock.push(`export${_}{${_}${name === specifier.reexported
|
|
14987
|
-
? name
|
|
14988
|
-
: `${name} as ${safeExportName(specifier.reexported)}`} };`);
|
|
14979
|
+
importBlock.push(`export${_}{${_}${name === specifier.reexported ? name : `${name} as ${specifier.reexported}`} };`);
|
|
14989
14980
|
}
|
|
14990
14981
|
}
|
|
14991
14982
|
if (namedReexports.length > 0) {
|
|
14992
14983
|
importBlock.push(`export${_}{${_}${namedReexports
|
|
14993
14984
|
.map(specifier => specifier.imported === specifier.reexported
|
|
14994
|
-
?
|
|
14995
|
-
: `${
|
|
14985
|
+
? specifier.imported
|
|
14986
|
+
: `${specifier.imported} as ${specifier.reexported}`)
|
|
14996
14987
|
.join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
|
|
14997
14988
|
}
|
|
14998
14989
|
}
|
|
@@ -15008,7 +14999,7 @@ function getExportBlock(exports, { _, cnst }) {
|
|
|
15008
14999
|
}
|
|
15009
15000
|
exportDeclaration.push(specifier.exported === specifier.local
|
|
15010
15001
|
? specifier.local
|
|
15011
|
-
: `${specifier.local} as ${
|
|
15002
|
+
: `${specifier.local} as ${specifier.exported}`);
|
|
15012
15003
|
}
|
|
15013
15004
|
if (exportDeclaration.length > 0) {
|
|
15014
15005
|
exportBlock.push(`export${_}{${_}${exportDeclaration.join(`,${_}`)}${_}};`);
|
|
@@ -17466,8 +17457,8 @@ function getGenerateCodeSnippets({ compact, generatedCode: { arrowFunctions, con
|
|
|
17466
17457
|
: `${s}${lineBreakIndent ? `${n}${lineBreakIndent.base}` : _}}`
|
|
17467
17458
|
];
|
|
17468
17459
|
const isValidPropertyName = reservedNamesAsProps
|
|
17469
|
-
?
|
|
17470
|
-
: (name) => !RESERVED_NAMES$1.has(name) &&
|
|
17460
|
+
? (name) => validPropertyName.test(name)
|
|
17461
|
+
: (name) => !RESERVED_NAMES$1.has(name) && validPropertyName.test(name);
|
|
17471
17462
|
return {
|
|
17472
17463
|
_,
|
|
17473
17464
|
cnst,
|
|
@@ -17501,6 +17492,7 @@ function getGenerateCodeSnippets({ compact, generatedCode: { arrowFunctions, con
|
|
|
17501
17492
|
};
|
|
17502
17493
|
}
|
|
17503
17494
|
const wrapIfNeeded = (code, needsParens) => needsParens ? `(${code})` : code;
|
|
17495
|
+
const validPropertyName = /^(?!\d)[\w$]+$/;
|
|
17504
17496
|
|
|
17505
17497
|
class Source {
|
|
17506
17498
|
constructor(filename, content) {
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED