rollup 3.27.1 → 3.28.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/dist/bin/rollup +2 -2
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +10 -7
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.d.ts +2 -1
- 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 +10 -7
- 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/getLogFilter.js
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.28.0
|
|
4
|
+
Wed, 09 Aug 2023 05:34:03 GMT - commit e3b614c9d4555248caa43d062f4003859b388434
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ import { createHash as createHash$1 } from 'node:crypto';
|
|
|
15
15
|
import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
|
|
16
16
|
import * as tty from 'tty';
|
|
17
17
|
|
|
18
|
-
var version$1 = "3.
|
|
18
|
+
var version$1 = "3.28.0";
|
|
19
19
|
|
|
20
20
|
const comma = ','.charCodeAt(0);
|
|
21
21
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -13251,7 +13251,7 @@ function decodedSourcemap(map) {
|
|
|
13251
13251
|
if (typeof map === 'string') {
|
|
13252
13252
|
map = JSON.parse(map);
|
|
13253
13253
|
}
|
|
13254
|
-
if (map.mappings
|
|
13254
|
+
if (!map.mappings) {
|
|
13255
13255
|
return {
|
|
13256
13256
|
mappings: [],
|
|
13257
13257
|
names: [],
|
|
@@ -13260,7 +13260,7 @@ function decodedSourcemap(map) {
|
|
|
13260
13260
|
};
|
|
13261
13261
|
}
|
|
13262
13262
|
const originalMappings = map.mappings;
|
|
13263
|
-
const isAlreadyDecoded =
|
|
13263
|
+
const isAlreadyDecoded = Array.isArray(originalMappings);
|
|
13264
13264
|
const cache = {
|
|
13265
13265
|
decodedMappings: isAlreadyDecoded ? originalMappings : undefined,
|
|
13266
13266
|
encodedMappings: isAlreadyDecoded ? undefined : originalMappings
|
|
@@ -13278,7 +13278,7 @@ function decodedSourcemap(map) {
|
|
|
13278
13278
|
// The only scenario where cache.encodedMappings should be undefined is if the map
|
|
13279
13279
|
// this was constructed from was already decoded, or if mappings was set to a new
|
|
13280
13280
|
// decoded string. In either case, this line shouldn't get hit.
|
|
13281
|
-
cache.decodedMappings = decode(cache.encodedMappings);
|
|
13281
|
+
cache.decodedMappings = cache.encodedMappings ? decode(cache.encodedMappings) : [];
|
|
13282
13282
|
cache.encodedMappings = undefined;
|
|
13283
13283
|
return cache.decodedMappings;
|
|
13284
13284
|
}
|
|
@@ -15751,7 +15751,8 @@ class Chunk {
|
|
|
15751
15751
|
finalizeChunk(code, map, hashesByPlaceholder) {
|
|
15752
15752
|
const renderedChunkInfo = this.getRenderedChunkInfo();
|
|
15753
15753
|
const finalize = (code) => replacePlaceholders(code, hashesByPlaceholder);
|
|
15754
|
-
const
|
|
15754
|
+
const preliminaryFileName = renderedChunkInfo.fileName;
|
|
15755
|
+
const fileName = (this.fileName = finalize(preliminaryFileName));
|
|
15755
15756
|
return {
|
|
15756
15757
|
...renderedChunkInfo,
|
|
15757
15758
|
code,
|
|
@@ -15764,6 +15765,7 @@ class Chunk {
|
|
|
15764
15765
|
])),
|
|
15765
15766
|
imports: renderedChunkInfo.imports.map(finalize),
|
|
15766
15767
|
map,
|
|
15768
|
+
preliminaryFileName,
|
|
15767
15769
|
referencedFiles: renderedChunkInfo.referencedFiles.map(finalize)
|
|
15768
15770
|
};
|
|
15769
15771
|
}
|
|
@@ -25027,6 +25029,7 @@ class FileEmitter {
|
|
|
25027
25029
|
moduleIds: [],
|
|
25028
25030
|
modules: {},
|
|
25029
25031
|
name: prebuiltChunk.fileName,
|
|
25032
|
+
preliminaryFileName: prebuiltChunk.fileName,
|
|
25030
25033
|
referencedFiles: [],
|
|
25031
25034
|
type: 'chunk'
|
|
25032
25035
|
};
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/rollup.d.ts
CHANGED
|
@@ -827,7 +827,7 @@ export interface OutputAsset extends PreRenderedAsset {
|
|
|
827
827
|
}
|
|
828
828
|
|
|
829
829
|
export interface RenderedModule {
|
|
830
|
-
code: string | null;
|
|
830
|
+
readonly code: string | null;
|
|
831
831
|
originalLength: number;
|
|
832
832
|
removedExports: string[];
|
|
833
833
|
renderedExports: string[];
|
|
@@ -862,6 +862,7 @@ export interface RenderedChunk extends PreRenderedChunk {
|
|
|
862
862
|
export interface OutputChunk extends RenderedChunk {
|
|
863
863
|
code: string;
|
|
864
864
|
map: SourceMap | null;
|
|
865
|
+
preliminaryFileName: string;
|
|
865
866
|
}
|
|
866
867
|
|
|
867
868
|
export interface SerializablePluginCache {
|
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.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.28.0
|
|
4
|
+
Wed, 09 Aug 2023 05:34:03 GMT - commit e3b614c9d4555248caa43d062f4003859b388434
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -30,7 +30,7 @@ function _interopNamespaceDefault(e) {
|
|
|
30
30
|
|
|
31
31
|
const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
|
|
32
32
|
|
|
33
|
-
var version$1 = "3.
|
|
33
|
+
var version$1 = "3.28.0";
|
|
34
34
|
|
|
35
35
|
function ensureArray$1(items) {
|
|
36
36
|
if (Array.isArray(items)) {
|
|
@@ -1278,6 +1278,7 @@ class FileEmitter {
|
|
|
1278
1278
|
moduleIds: [],
|
|
1279
1279
|
modules: {},
|
|
1280
1280
|
name: prebuiltChunk.fileName,
|
|
1281
|
+
preliminaryFileName: prebuiltChunk.fileName,
|
|
1281
1282
|
referencedFiles: [],
|
|
1282
1283
|
type: 'chunk'
|
|
1283
1284
|
};
|
|
@@ -14740,7 +14741,7 @@ function decodedSourcemap(map) {
|
|
|
14740
14741
|
if (typeof map === 'string') {
|
|
14741
14742
|
map = JSON.parse(map);
|
|
14742
14743
|
}
|
|
14743
|
-
if (map.mappings
|
|
14744
|
+
if (!map.mappings) {
|
|
14744
14745
|
return {
|
|
14745
14746
|
mappings: [],
|
|
14746
14747
|
names: [],
|
|
@@ -14749,7 +14750,7 @@ function decodedSourcemap(map) {
|
|
|
14749
14750
|
};
|
|
14750
14751
|
}
|
|
14751
14752
|
const originalMappings = map.mappings;
|
|
14752
|
-
const isAlreadyDecoded =
|
|
14753
|
+
const isAlreadyDecoded = Array.isArray(originalMappings);
|
|
14753
14754
|
const cache = {
|
|
14754
14755
|
decodedMappings: isAlreadyDecoded ? originalMappings : undefined,
|
|
14755
14756
|
encodedMappings: isAlreadyDecoded ? undefined : originalMappings
|
|
@@ -14767,7 +14768,7 @@ function decodedSourcemap(map) {
|
|
|
14767
14768
|
// The only scenario where cache.encodedMappings should be undefined is if the map
|
|
14768
14769
|
// this was constructed from was already decoded, or if mappings was set to a new
|
|
14769
14770
|
// decoded string. In either case, this line shouldn't get hit.
|
|
14770
|
-
cache.decodedMappings = decode(cache.encodedMappings);
|
|
14771
|
+
cache.decodedMappings = cache.encodedMappings ? decode(cache.encodedMappings) : [];
|
|
14771
14772
|
cache.encodedMappings = undefined;
|
|
14772
14773
|
return cache.decodedMappings;
|
|
14773
14774
|
}
|
|
@@ -17135,7 +17136,8 @@ class Chunk {
|
|
|
17135
17136
|
finalizeChunk(code, map, hashesByPlaceholder) {
|
|
17136
17137
|
const renderedChunkInfo = this.getRenderedChunkInfo();
|
|
17137
17138
|
const finalize = (code) => replacePlaceholders(code, hashesByPlaceholder);
|
|
17138
|
-
const
|
|
17139
|
+
const preliminaryFileName = renderedChunkInfo.fileName;
|
|
17140
|
+
const fileName = (this.fileName = finalize(preliminaryFileName));
|
|
17139
17141
|
return {
|
|
17140
17142
|
...renderedChunkInfo,
|
|
17141
17143
|
code,
|
|
@@ -17148,6 +17150,7 @@ class Chunk {
|
|
|
17148
17150
|
])),
|
|
17149
17151
|
imports: renderedChunkInfo.imports.map(finalize),
|
|
17150
17152
|
map,
|
|
17153
|
+
preliminaryFileName,
|
|
17151
17154
|
referencedFiles: renderedChunkInfo.referencedFiles.map(finalize)
|
|
17152
17155
|
};
|
|
17153
17156
|
}
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED