rollup 3.2.2 → 3.2.3
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/rollup.js +15 -10
- package/dist/es/shared/watch.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/rollup.js +15 -10
- package/dist/shared/watch-cli.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
package/dist/es/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.2.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.2.3
|
|
4
|
+
Tue, 18 Oct 2022 05:07:08 GMT - commit 4a89129c8f89436595faddde25704837de174d79
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -16,7 +16,7 @@ import { promises } from 'node:fs';
|
|
|
16
16
|
import { EventEmitter } from 'node:events';
|
|
17
17
|
import * as tty from 'tty';
|
|
18
18
|
|
|
19
|
-
var version$1 = "3.2.
|
|
19
|
+
var version$1 = "3.2.3";
|
|
20
20
|
|
|
21
21
|
var charToInteger = {};
|
|
22
22
|
var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
@@ -10925,6 +10925,7 @@ class LogicalExpression extends NodeBase {
|
|
|
10925
10925
|
}
|
|
10926
10926
|
|
|
10927
10927
|
const FILE_PREFIX = 'ROLLUP_FILE_URL_';
|
|
10928
|
+
const IMPORT = 'import';
|
|
10928
10929
|
class MetaProperty extends NodeBase {
|
|
10929
10930
|
constructor() {
|
|
10930
10931
|
super(...arguments);
|
|
@@ -10933,8 +10934,8 @@ class MetaProperty extends NodeBase {
|
|
|
10933
10934
|
this.referenceId = null;
|
|
10934
10935
|
}
|
|
10935
10936
|
getReferencedFileName(outputPluginDriver) {
|
|
10936
|
-
const { metaProperty } = this;
|
|
10937
|
-
if (metaProperty?.startsWith(FILE_PREFIX)) {
|
|
10937
|
+
const { meta: { name }, metaProperty } = this;
|
|
10938
|
+
if (name === IMPORT && metaProperty?.startsWith(FILE_PREFIX)) {
|
|
10938
10939
|
return outputPluginDriver.getFileName(metaProperty.slice(FILE_PREFIX.length));
|
|
10939
10940
|
}
|
|
10940
10941
|
return null;
|
|
@@ -10948,7 +10949,7 @@ class MetaProperty extends NodeBase {
|
|
|
10948
10949
|
include() {
|
|
10949
10950
|
if (!this.included) {
|
|
10950
10951
|
this.included = true;
|
|
10951
|
-
if (this.meta.name ===
|
|
10952
|
+
if (this.meta.name === IMPORT) {
|
|
10952
10953
|
this.context.addImportMeta(this);
|
|
10953
10954
|
const parent = this.parent;
|
|
10954
10955
|
const metaProperty = (this.metaProperty =
|
|
@@ -10962,7 +10963,9 @@ class MetaProperty extends NodeBase {
|
|
|
10962
10963
|
}
|
|
10963
10964
|
}
|
|
10964
10965
|
render(code, { format, pluginDriver, snippets }) {
|
|
10965
|
-
const { context: { module: { id: moduleId } }, metaProperty, parent, preliminaryChunkId, referenceId, start, end } = this;
|
|
10966
|
+
const { context: { module: { id: moduleId } }, meta: { name }, metaProperty, parent, preliminaryChunkId, referenceId, start, end } = this;
|
|
10967
|
+
if (name !== IMPORT)
|
|
10968
|
+
return;
|
|
10966
10969
|
const chunkId = preliminaryChunkId;
|
|
10967
10970
|
if (referenceId) {
|
|
10968
10971
|
const fileName = pluginDriver.getFileName(referenceId);
|
|
@@ -12302,9 +12305,11 @@ class NamespaceVariable extends Variable {
|
|
|
12302
12305
|
this.references.push(identifier);
|
|
12303
12306
|
this.name = identifier.name;
|
|
12304
12307
|
}
|
|
12305
|
-
getLiteralValueAtPath() {
|
|
12306
|
-
|
|
12307
|
-
|
|
12308
|
+
getLiteralValueAtPath(path) {
|
|
12309
|
+
if (path[0] === SymbolToStringTag) {
|
|
12310
|
+
return 'Module';
|
|
12311
|
+
}
|
|
12312
|
+
return UnknownValue;
|
|
12308
12313
|
}
|
|
12309
12314
|
getMemberVariables() {
|
|
12310
12315
|
if (this.memberVariables) {
|
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.2.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.2.3
|
|
4
|
+
Tue, 18 Oct 2022 05:07:08 GMT - commit 4a89129c8f89436595faddde25704837de174d79
|
|
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.2.
|
|
34
|
+
var version$1 = "3.2.3";
|
|
35
35
|
|
|
36
36
|
function ensureArray$1(items) {
|
|
37
37
|
if (Array.isArray(items)) {
|
|
@@ -11436,6 +11436,7 @@ class LogicalExpression extends NodeBase {
|
|
|
11436
11436
|
}
|
|
11437
11437
|
|
|
11438
11438
|
const FILE_PREFIX = 'ROLLUP_FILE_URL_';
|
|
11439
|
+
const IMPORT = 'import';
|
|
11439
11440
|
class MetaProperty extends NodeBase {
|
|
11440
11441
|
constructor() {
|
|
11441
11442
|
super(...arguments);
|
|
@@ -11444,8 +11445,8 @@ class MetaProperty extends NodeBase {
|
|
|
11444
11445
|
this.referenceId = null;
|
|
11445
11446
|
}
|
|
11446
11447
|
getReferencedFileName(outputPluginDriver) {
|
|
11447
|
-
const { metaProperty } = this;
|
|
11448
|
-
if (metaProperty?.startsWith(FILE_PREFIX)) {
|
|
11448
|
+
const { meta: { name }, metaProperty } = this;
|
|
11449
|
+
if (name === IMPORT && metaProperty?.startsWith(FILE_PREFIX)) {
|
|
11449
11450
|
return outputPluginDriver.getFileName(metaProperty.slice(FILE_PREFIX.length));
|
|
11450
11451
|
}
|
|
11451
11452
|
return null;
|
|
@@ -11459,7 +11460,7 @@ class MetaProperty extends NodeBase {
|
|
|
11459
11460
|
include() {
|
|
11460
11461
|
if (!this.included) {
|
|
11461
11462
|
this.included = true;
|
|
11462
|
-
if (this.meta.name ===
|
|
11463
|
+
if (this.meta.name === IMPORT) {
|
|
11463
11464
|
this.context.addImportMeta(this);
|
|
11464
11465
|
const parent = this.parent;
|
|
11465
11466
|
const metaProperty = (this.metaProperty =
|
|
@@ -11473,7 +11474,9 @@ class MetaProperty extends NodeBase {
|
|
|
11473
11474
|
}
|
|
11474
11475
|
}
|
|
11475
11476
|
render(code, { format, pluginDriver, snippets }) {
|
|
11476
|
-
const { context: { module: { id: moduleId } }, metaProperty, parent, preliminaryChunkId, referenceId, start, end } = this;
|
|
11477
|
+
const { context: { module: { id: moduleId } }, meta: { name }, metaProperty, parent, preliminaryChunkId, referenceId, start, end } = this;
|
|
11478
|
+
if (name !== IMPORT)
|
|
11479
|
+
return;
|
|
11477
11480
|
const chunkId = preliminaryChunkId;
|
|
11478
11481
|
if (referenceId) {
|
|
11479
11482
|
const fileName = pluginDriver.getFileName(referenceId);
|
|
@@ -12813,9 +12816,11 @@ class NamespaceVariable extends Variable {
|
|
|
12813
12816
|
this.references.push(identifier);
|
|
12814
12817
|
this.name = identifier.name;
|
|
12815
12818
|
}
|
|
12816
|
-
getLiteralValueAtPath() {
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
+
getLiteralValueAtPath(path) {
|
|
12820
|
+
if (path[0] === SymbolToStringTag) {
|
|
12821
|
+
return 'Module';
|
|
12822
|
+
}
|
|
12823
|
+
return UnknownValue;
|
|
12819
12824
|
}
|
|
12820
12825
|
getMemberVariables() {
|
|
12821
12826
|
if (this.memberVariables) {
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED