rollup 2.16.1 → 2.18.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/CHANGELOG.md +51 -0
- package/dist/bin/rollup +10 -10
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +16042 -15986
- package/dist/es/shared/watch.js +5 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.d.ts +15 -3
- package/dist/rollup.js +6 -6
- package/dist/shared/index.js +9 -9
- package/dist/shared/loadConfigFile.js +32 -19
- package/dist/shared/mergeOptions.js +14 -11
- package/dist/shared/rollup.js +16051 -15995
- package/dist/shared/watch-cli.js +8 -8
- package/dist/shared/watch.js +4 -4
- package/package.json +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
# rollup changelog
|
|
2
2
|
|
|
3
|
+
## 2.18.1
|
|
4
|
+
*2020-06-26*
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
* Make sure synthetic exports are present when a module is imported dynamically (#3648)
|
|
8
|
+
* Strip the `rollup-plugin-` prefix off the plugin name when looking for the plugin export in a CLI plugin without a default export (#3647)
|
|
9
|
+
* Convert plugin names with dashes to camel case when looking for the plugin export in a CLI plugin without a default export (#3647)
|
|
10
|
+
|
|
11
|
+
### Pull Requests
|
|
12
|
+
* [#3647](https://github.com/rollup/rollup/pull/3647): Strip rollup-plugin prefix to find named plugin exports, throw when export cannot be found (@lukastaegert)
|
|
13
|
+
* [#3648](https://github.com/rollup/rollup/pull/3648): Always create a dynamic namespace object when a module with synthetic named exports is imported dynamically (@lukastaegert)
|
|
14
|
+
|
|
15
|
+
## 2.18.0
|
|
16
|
+
*2020-06-22*
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
* `inlineDynamicImports`, `manualChunks` and `preserveModules` can now be used as output options (#3645)
|
|
20
|
+
* Use sourcemaps for certain warnings that reference source code locations (#3645)
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
* `this.getFileName` will now always return the correct file name for chunks when multiple outputs are created (#3645)
|
|
24
|
+
|
|
25
|
+
### Pull Requests
|
|
26
|
+
* [#3645](https://github.com/rollup/rollup/pull/3645): Per output chunking (@lukastaegert)
|
|
27
|
+
|
|
28
|
+
## 2.17.1
|
|
29
|
+
*2020-06-19*
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
* Properly resolve accessing properties of namespace members again (#3643)
|
|
33
|
+
|
|
34
|
+
### Pull Requests
|
|
35
|
+
* [#3643](https://github.com/rollup/rollup/pull/3643): Fix accessing nested properties of namespaces (@lukastaegert)
|
|
36
|
+
|
|
37
|
+
## 2.17.0
|
|
38
|
+
*2020-06-17*
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
* When importing Rollup via package.exports, always fall back to the browser ESM build for non-Node environments (#3634)
|
|
42
|
+
* Create more efficient code when handling namespace mutations (#3637)
|
|
43
|
+
|
|
44
|
+
### Bug Fixes
|
|
45
|
+
* Fix a severe performance regression when the same module is imported by a lot of modules (#3641)
|
|
46
|
+
* Properly escape special characters in imports (#3638)
|
|
47
|
+
|
|
48
|
+
### Pull Requests
|
|
49
|
+
* [#3634](https://github.com/rollup/rollup/pull/3634): Set browser build in exports (@guybedford)
|
|
50
|
+
* [#3637](https://github.com/rollup/rollup/pull/3637): Do not include the whole namespace when illegally mutating a namespace (@lukastaegert)
|
|
51
|
+
* [#3638](https://github.com/rollup/rollup/pull/3638): Support backslash escaping, retain exact newline escaping (@guybedford)
|
|
52
|
+
* [#3641](https://github.com/rollup/rollup/pull/3641): Fix performance regression when a file is imported by many importers (@lukastaegert)
|
|
53
|
+
|
|
3
54
|
## 2.16.1
|
|
4
55
|
*2020-06-13*
|
|
5
56
|
|
package/dist/bin/rollup
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
@license
|
|
5
|
-
Rollup.js v2.
|
|
6
|
-
|
|
5
|
+
Rollup.js v2.18.1
|
|
6
|
+
Fri, 26 Jun 2020 19:42:28 GMT - commit 1aeb23b23ef1aafe2edcbfd5c4062dd97186f700
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
https://github.com/rollup/rollup
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var rollup = require('../shared/rollup.js');
|
|
18
18
|
var path = require('path');
|
|
19
19
|
var util = require('util');
|
|
20
20
|
var mergeOptions = require('../shared/mergeOptions.js');
|
|
@@ -736,7 +736,7 @@ function parse (args, opts) {
|
|
|
736
736
|
return
|
|
737
737
|
}
|
|
738
738
|
} else {
|
|
739
|
-
config =
|
|
739
|
+
config = rollup.commonjsRequire();
|
|
740
740
|
}
|
|
741
741
|
|
|
742
742
|
setConfigObject(config);
|
|
@@ -1417,7 +1417,7 @@ async function build(inputOptions, warnings, silent = false) {
|
|
|
1417
1417
|
const outputOptions = inputOptions.output;
|
|
1418
1418
|
const useStdout = !outputOptions[0].file && !outputOptions[0].dir;
|
|
1419
1419
|
const start = Date.now();
|
|
1420
|
-
const files = useStdout ? ['stdout'] : outputOptions.map((t) =>
|
|
1420
|
+
const files = useStdout ? ['stdout'] : outputOptions.map((t) => rollup.relativeId(t.file || t.dir));
|
|
1421
1421
|
if (!silent) {
|
|
1422
1422
|
let inputFiles;
|
|
1423
1423
|
if (typeof inputOptions.input === 'string') {
|
|
@@ -1433,7 +1433,7 @@ async function build(inputOptions, warnings, silent = false) {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
loadConfigFile_js.stderr(loadConfigFile_js.colorette.cyan(`\n${loadConfigFile_js.colorette.bold(inputFiles)} → ${loadConfigFile_js.colorette.bold(files.join(', '))}...`));
|
|
1435
1435
|
}
|
|
1436
|
-
const bundle = await
|
|
1436
|
+
const bundle = await rollup.rollup(inputOptions);
|
|
1437
1437
|
if (useStdout) {
|
|
1438
1438
|
const output = outputOptions[0];
|
|
1439
1439
|
if (output.sourcemap && output.sourcemap !== 'inline') {
|
|
@@ -1573,7 +1573,7 @@ async function runRollup(command) {
|
|
|
1573
1573
|
const value = input.substr(equalsIndex + 1);
|
|
1574
1574
|
let key = input.substr(0, equalsIndex);
|
|
1575
1575
|
if (!key)
|
|
1576
|
-
key =
|
|
1576
|
+
key = rollup.getAliasName(input);
|
|
1577
1577
|
command.input[key] = value;
|
|
1578
1578
|
});
|
|
1579
1579
|
}
|
|
@@ -1598,7 +1598,7 @@ async function runRollup(command) {
|
|
|
1598
1598
|
});
|
|
1599
1599
|
}
|
|
1600
1600
|
if (command.watch) {
|
|
1601
|
-
await
|
|
1601
|
+
await rollup.loadFsEvents();
|
|
1602
1602
|
const { watch } = await Promise.resolve().then(function () { return require('../shared/watch-cli.js'); });
|
|
1603
1603
|
watch(command);
|
|
1604
1604
|
}
|
|
@@ -1634,10 +1634,10 @@ const command = yargsParser(process.argv.slice(2), {
|
|
|
1634
1634
|
configuration: { 'camel-case-expansion': false }
|
|
1635
1635
|
});
|
|
1636
1636
|
if (command.help || (process.argv.length <= 2 && process.stdin.isTTY)) {
|
|
1637
|
-
console.log(`\n${help.replace('__VERSION__',
|
|
1637
|
+
console.log(`\n${help.replace('__VERSION__', rollup.version)}\n`);
|
|
1638
1638
|
}
|
|
1639
1639
|
else if (command.version) {
|
|
1640
|
-
console.log(`rollup v${
|
|
1640
|
+
console.log(`rollup v${rollup.version}`);
|
|
1641
1641
|
}
|
|
1642
1642
|
else {
|
|
1643
1643
|
try {
|