rollup 0.67.0 → 0.67.4
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/CHANGELOG.md +17 -0
- package/bin/rollup +18 -21
- package/dist/rollup.browser.es.js +11 -0
- package/dist/rollup.browser.js +3 -4
- package/dist/rollup.es.js +28 -30
- package/dist/rollup.js +28 -29
- package/package.json +5 -8
package/dist/rollup.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v0.67.
|
|
4
|
-
|
|
3
|
+
Rollup.js v0.67.4
|
|
4
|
+
Mon, 03 Dec 2018 06:30:02 GMT - commit 7d1ba815d94141e22d2ed71dd2804708ad45be1d
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -658,13 +658,13 @@ function decode(mappings) {
|
|
|
658
658
|
var c = mappings.charCodeAt(i);
|
|
659
659
|
if (c === 44) { // ","
|
|
660
660
|
if (segment.length)
|
|
661
|
-
line.push(new
|
|
661
|
+
line.push(new Int32Array(segment));
|
|
662
662
|
segment = [];
|
|
663
663
|
j = 0;
|
|
664
664
|
}
|
|
665
665
|
else if (c === 59) { // ";"
|
|
666
666
|
if (segment.length)
|
|
667
|
-
line.push(new
|
|
667
|
+
line.push(new Int32Array(segment));
|
|
668
668
|
segment = [];
|
|
669
669
|
j = 0;
|
|
670
670
|
decoded.push(line);
|
|
@@ -712,7 +712,7 @@ function decode(mappings) {
|
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
if (segment.length)
|
|
715
|
-
line.push(new
|
|
715
|
+
line.push(new Int32Array(segment));
|
|
716
716
|
decoded.push(line);
|
|
717
717
|
return decoded;
|
|
718
718
|
}
|
|
@@ -13625,6 +13625,21 @@ var Link = /** @class */ (function () {
|
|
|
13625
13625
|
}());
|
|
13626
13626
|
// TODO TypeScript: Fix <any> typecasts
|
|
13627
13627
|
function collapseSourcemaps(bundle, file, map, modules, bundleSourcemapChain, excludeContent) {
|
|
13628
|
+
function linkMap(source, map) {
|
|
13629
|
+
if (map.missing) {
|
|
13630
|
+
bundle.graph.warn({
|
|
13631
|
+
code: 'SOURCEMAP_BROKEN',
|
|
13632
|
+
plugin: map.plugin,
|
|
13633
|
+
message: "Sourcemap is likely to be incorrect: a plugin" + (map.plugin ? " ('" + map.plugin + "')" : "") + " was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help",
|
|
13634
|
+
url: "https://rollupjs.org/guide/en#warning-sourcemap-is-likely-to-be-incorrect"
|
|
13635
|
+
});
|
|
13636
|
+
map = {
|
|
13637
|
+
names: [],
|
|
13638
|
+
mappings: ''
|
|
13639
|
+
};
|
|
13640
|
+
}
|
|
13641
|
+
return new Link(map, [source]);
|
|
13642
|
+
}
|
|
13628
13643
|
var moduleSources = modules.filter(function (module) { return !module.excludeFromSourcemap; }).map(function (module) {
|
|
13629
13644
|
var sourcemapChain = module.sourcemapChain;
|
|
13630
13645
|
var source;
|
|
@@ -13649,27 +13664,11 @@ function collapseSourcemaps(bundle, file, map, modules, bundleSourcemapChain, ex
|
|
|
13649
13664
|
source = new Link(originalSourcemap, baseSources);
|
|
13650
13665
|
}
|
|
13651
13666
|
}
|
|
13652
|
-
sourcemapChain.
|
|
13653
|
-
if (map.missing) {
|
|
13654
|
-
bundle.graph.warn({
|
|
13655
|
-
code: 'SOURCEMAP_BROKEN',
|
|
13656
|
-
plugin: map.plugin,
|
|
13657
|
-
message: "Sourcemap is likely to be incorrect: a plugin" + (map.plugin ? " ('" + map.plugin + "')" : "") + " was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help",
|
|
13658
|
-
url: "https://rollupjs.org/guide/en#warning-sourcemap-is-likely-to-be-incorrect"
|
|
13659
|
-
});
|
|
13660
|
-
map = {
|
|
13661
|
-
names: [],
|
|
13662
|
-
mappings: ''
|
|
13663
|
-
};
|
|
13664
|
-
}
|
|
13665
|
-
source = new Link(map, [source]);
|
|
13666
|
-
});
|
|
13667
|
+
source = sourcemapChain.reduce(linkMap, source);
|
|
13667
13668
|
return source;
|
|
13668
13669
|
});
|
|
13669
13670
|
var source = new Link(map, moduleSources);
|
|
13670
|
-
bundleSourcemapChain.
|
|
13671
|
-
source = new Link(map, [source]);
|
|
13672
|
-
});
|
|
13671
|
+
source = bundleSourcemapChain.reduce(linkMap, source);
|
|
13673
13672
|
var _a = source.traceMappings(), sources = _a.sources, sourcesContent = _a.sourcesContent, names = _a.names, mappings = _a.mappings;
|
|
13674
13673
|
if (file) {
|
|
13675
13674
|
var directory_2 = dirname(file);
|
|
@@ -20723,7 +20722,7 @@ function createTransformEmitAsset(assetsById, emitAsset) {
|
|
|
20723
20722
|
};
|
|
20724
20723
|
}
|
|
20725
20724
|
|
|
20726
|
-
var version$1 = "0.67.
|
|
20725
|
+
var version$1 = "0.67.4";
|
|
20727
20726
|
|
|
20728
20727
|
function mkdirpath(path$$1) {
|
|
20729
20728
|
var dir = dirname(path$$1);
|
|
@@ -22425,6 +22424,11 @@ function getInputOptions$1(rawInputOptions) {
|
|
|
22425
22424
|
});
|
|
22426
22425
|
}
|
|
22427
22426
|
if (inputOptions.inlineDynamicImports) {
|
|
22427
|
+
if (inputOptions.experimentalPreserveModules)
|
|
22428
|
+
error({
|
|
22429
|
+
code: 'INVALID_OPTION',
|
|
22430
|
+
message: "experimentalPreserveModules does not support the inlineDynamicImports option."
|
|
22431
|
+
});
|
|
22428
22432
|
if (inputOptions.manualChunks)
|
|
22429
22433
|
error({
|
|
22430
22434
|
code: 'INVALID_OPTION',
|
|
@@ -22442,11 +22446,6 @@ function getInputOptions$1(rawInputOptions) {
|
|
|
22442
22446
|
});
|
|
22443
22447
|
}
|
|
22444
22448
|
else if (inputOptions.experimentalPreserveModules) {
|
|
22445
|
-
if (inputOptions.inlineDynamicImports)
|
|
22446
|
-
error({
|
|
22447
|
-
code: 'INVALID_OPTION',
|
|
22448
|
-
message: "experimentalPreserveModules does not support the inlineDynamicImports option."
|
|
22449
|
-
});
|
|
22450
22449
|
if (inputOptions.manualChunks)
|
|
22451
22450
|
error({
|
|
22452
22451
|
code: 'INVALID_OPTION',
|
|
@@ -26700,4 +26699,3 @@ function watch$1(configs) {
|
|
|
26700
26699
|
}
|
|
26701
26700
|
|
|
26702
26701
|
export { rollup, watch$1 as watch, version$1 as VERSION };
|
|
26703
|
-
//# sourceMappingURL=rollup.es.js.map
|
package/dist/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v0.67.
|
|
4
|
-
|
|
3
|
+
Rollup.js v0.67.4
|
|
4
|
+
Mon, 03 Dec 2018 06:30:02 GMT - commit 7d1ba815d94141e22d2ed71dd2804708ad45be1d
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -665,13 +665,13 @@ function decode(mappings) {
|
|
|
665
665
|
var c = mappings.charCodeAt(i);
|
|
666
666
|
if (c === 44) { // ","
|
|
667
667
|
if (segment.length)
|
|
668
|
-
line.push(new
|
|
668
|
+
line.push(new Int32Array(segment));
|
|
669
669
|
segment = [];
|
|
670
670
|
j = 0;
|
|
671
671
|
}
|
|
672
672
|
else if (c === 59) { // ";"
|
|
673
673
|
if (segment.length)
|
|
674
|
-
line.push(new
|
|
674
|
+
line.push(new Int32Array(segment));
|
|
675
675
|
segment = [];
|
|
676
676
|
j = 0;
|
|
677
677
|
decoded.push(line);
|
|
@@ -719,7 +719,7 @@ function decode(mappings) {
|
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
721
|
if (segment.length)
|
|
722
|
-
line.push(new
|
|
722
|
+
line.push(new Int32Array(segment));
|
|
723
723
|
decoded.push(line);
|
|
724
724
|
return decoded;
|
|
725
725
|
}
|
|
@@ -13632,6 +13632,21 @@ var Link = /** @class */ (function () {
|
|
|
13632
13632
|
}());
|
|
13633
13633
|
// TODO TypeScript: Fix <any> typecasts
|
|
13634
13634
|
function collapseSourcemaps(bundle, file, map, modules, bundleSourcemapChain, excludeContent) {
|
|
13635
|
+
function linkMap(source, map) {
|
|
13636
|
+
if (map.missing) {
|
|
13637
|
+
bundle.graph.warn({
|
|
13638
|
+
code: 'SOURCEMAP_BROKEN',
|
|
13639
|
+
plugin: map.plugin,
|
|
13640
|
+
message: "Sourcemap is likely to be incorrect: a plugin" + (map.plugin ? " ('" + map.plugin + "')" : "") + " was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help",
|
|
13641
|
+
url: "https://rollupjs.org/guide/en#warning-sourcemap-is-likely-to-be-incorrect"
|
|
13642
|
+
});
|
|
13643
|
+
map = {
|
|
13644
|
+
names: [],
|
|
13645
|
+
mappings: ''
|
|
13646
|
+
};
|
|
13647
|
+
}
|
|
13648
|
+
return new Link(map, [source]);
|
|
13649
|
+
}
|
|
13635
13650
|
var moduleSources = modules.filter(function (module) { return !module.excludeFromSourcemap; }).map(function (module) {
|
|
13636
13651
|
var sourcemapChain = module.sourcemapChain;
|
|
13637
13652
|
var source;
|
|
@@ -13656,27 +13671,11 @@ function collapseSourcemaps(bundle, file, map, modules, bundleSourcemapChain, ex
|
|
|
13656
13671
|
source = new Link(originalSourcemap, baseSources);
|
|
13657
13672
|
}
|
|
13658
13673
|
}
|
|
13659
|
-
sourcemapChain.
|
|
13660
|
-
if (map.missing) {
|
|
13661
|
-
bundle.graph.warn({
|
|
13662
|
-
code: 'SOURCEMAP_BROKEN',
|
|
13663
|
-
plugin: map.plugin,
|
|
13664
|
-
message: "Sourcemap is likely to be incorrect: a plugin" + (map.plugin ? " ('" + map.plugin + "')" : "") + " was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help",
|
|
13665
|
-
url: "https://rollupjs.org/guide/en#warning-sourcemap-is-likely-to-be-incorrect"
|
|
13666
|
-
});
|
|
13667
|
-
map = {
|
|
13668
|
-
names: [],
|
|
13669
|
-
mappings: ''
|
|
13670
|
-
};
|
|
13671
|
-
}
|
|
13672
|
-
source = new Link(map, [source]);
|
|
13673
|
-
});
|
|
13674
|
+
source = sourcemapChain.reduce(linkMap, source);
|
|
13674
13675
|
return source;
|
|
13675
13676
|
});
|
|
13676
13677
|
var source = new Link(map, moduleSources);
|
|
13677
|
-
bundleSourcemapChain.
|
|
13678
|
-
source = new Link(map, [source]);
|
|
13679
|
-
});
|
|
13678
|
+
source = bundleSourcemapChain.reduce(linkMap, source);
|
|
13680
13679
|
var _a = source.traceMappings(), sources = _a.sources, sourcesContent = _a.sourcesContent, names = _a.names, mappings = _a.mappings;
|
|
13681
13680
|
if (file) {
|
|
13682
13681
|
var directory_2 = path.dirname(file);
|
|
@@ -20730,7 +20729,7 @@ function createTransformEmitAsset(assetsById, emitAsset) {
|
|
|
20730
20729
|
};
|
|
20731
20730
|
}
|
|
20732
20731
|
|
|
20733
|
-
var version$1 = "0.67.
|
|
20732
|
+
var version$1 = "0.67.4";
|
|
20734
20733
|
|
|
20735
20734
|
function mkdirpath(path$$1) {
|
|
20736
20735
|
var dir = path.dirname(path$$1);
|
|
@@ -22432,6 +22431,11 @@ function getInputOptions$1(rawInputOptions) {
|
|
|
22432
22431
|
});
|
|
22433
22432
|
}
|
|
22434
22433
|
if (inputOptions.inlineDynamicImports) {
|
|
22434
|
+
if (inputOptions.experimentalPreserveModules)
|
|
22435
|
+
error({
|
|
22436
|
+
code: 'INVALID_OPTION',
|
|
22437
|
+
message: "experimentalPreserveModules does not support the inlineDynamicImports option."
|
|
22438
|
+
});
|
|
22435
22439
|
if (inputOptions.manualChunks)
|
|
22436
22440
|
error({
|
|
22437
22441
|
code: 'INVALID_OPTION',
|
|
@@ -22449,11 +22453,6 @@ function getInputOptions$1(rawInputOptions) {
|
|
|
22449
22453
|
});
|
|
22450
22454
|
}
|
|
22451
22455
|
else if (inputOptions.experimentalPreserveModules) {
|
|
22452
|
-
if (inputOptions.inlineDynamicImports)
|
|
22453
|
-
error({
|
|
22454
|
-
code: 'INVALID_OPTION',
|
|
22455
|
-
message: "experimentalPreserveModules does not support the inlineDynamicImports option."
|
|
22456
|
-
});
|
|
22457
22456
|
if (inputOptions.manualChunks)
|
|
22458
22457
|
error({
|
|
22459
22458
|
code: 'INVALID_OPTION',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "0.67.
|
|
3
|
+
"version": "0.67.4",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/rollup.es.js",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"signal-exit": "^3.0.2",
|
|
108
108
|
"source-map": "^0.6.1",
|
|
109
109
|
"source-map-support": "^0.5.9",
|
|
110
|
-
"sourcemap-codec": "^1.4.
|
|
110
|
+
"sourcemap-codec": "^1.4.4",
|
|
111
111
|
"terser": "^3.8.2",
|
|
112
112
|
"tslib": "^1.9.3",
|
|
113
113
|
"tslint": "^5.11.0",
|
|
@@ -116,12 +116,9 @@
|
|
|
116
116
|
"url-parse": "^1.4.3"
|
|
117
117
|
},
|
|
118
118
|
"files": [
|
|
119
|
-
"dist
|
|
120
|
-
"dist
|
|
121
|
-
"
|
|
122
|
-
"dist/**/*.d.ts",
|
|
123
|
-
"bin/rollup",
|
|
124
|
-
"README.md"
|
|
119
|
+
"dist/*.js",
|
|
120
|
+
"dist/*.d.ts",
|
|
121
|
+
"bin/rollup"
|
|
125
122
|
],
|
|
126
123
|
"lint-staged": {
|
|
127
124
|
"{src,bin,browser,typings}/**/*.ts": [
|