rollup 2.68.0 → 2.69.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/CHANGELOG.md +24 -0
- package/dist/bin/rollup +5 -11
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +151 -139
- package/dist/es/shared/watch.js +3 -3
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.d.ts +3 -1
- package/dist/rollup.js +3 -3
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +12 -15
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +173 -161
- package/dist/shared/watch-cli.js +4 -2
- package/dist/shared/watch.js +5 -3
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# rollup changelog
|
|
2
2
|
|
|
3
|
+
## 2.69.0
|
|
4
|
+
|
|
5
|
+
_2022-03-02_
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- Introduce new `output.generatedCode.symbols` to control the usage of Symbols in Rollup-generated code (#4378)
|
|
10
|
+
- soft-deprecate `output.namespaceToStringTag` in favor of `output.generatedCode.symbols` (#4378)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- Properly handle `./` and `../` as external dependencies (#4419)
|
|
15
|
+
- Make generated "Module" namespace toStringTag non-enumerable for correct Object.assign/spread behaviour (#4378)
|
|
16
|
+
- Add file name to error when top-level-await is used in disallowed formats (#4421)
|
|
17
|
+
|
|
18
|
+
### Pull Requests
|
|
19
|
+
|
|
20
|
+
- [#4378](https://github.com/rollup/rollup/pull/4378): Make namespace @@toStringTag "Module" non-enumerable (@dnalborczyk and @lukastaegert)
|
|
21
|
+
- [#4413](https://github.com/rollup/rollup/pull/4413): refactor: some code and type fixes (@dnalborczyk)
|
|
22
|
+
- [#4418](https://github.com/rollup/rollup/pull/4418): chore: bump deps (@dnalborczyk)
|
|
23
|
+
- [#4419](https://github.com/rollup/rollup/pull/4419): Properly handle upper directories as external dependencies (@lukastaegert)
|
|
24
|
+
- [#4421](https://github.com/rollup/rollup/pull/4421): Improve the error prompt and output the error file name (@caoxiemeihao)
|
|
25
|
+
- [#4423](https://github.com/rollup/rollup/pull/4423): Update 999-big-list-of-options.md (@leoj3n)
|
|
26
|
+
|
|
3
27
|
## 2.68.0
|
|
4
28
|
|
|
5
29
|
_2022-02-22_
|
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.69.0
|
|
6
|
+
Wed, 02 Mar 2022 13:21:33 GMT - commit 10dc32678944cb276c2efe781b12350a8e0a5adf
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
https://github.com/rollup/rollup
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
'use strict';
|
|
14
14
|
|
|
15
|
-
Object.
|
|
15
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
16
16
|
|
|
17
17
|
const process$1 = require('process');
|
|
18
18
|
const rollup = require('../shared/rollup.js');
|
|
@@ -1501,9 +1501,8 @@ var prettyBytes = (number, options) => {
|
|
|
1501
1501
|
const prettyBytes$1 = prettyBytes;
|
|
1502
1502
|
|
|
1503
1503
|
function printTimings(timings) {
|
|
1504
|
-
Object.
|
|
1504
|
+
Object.entries(timings).forEach(([label, [time, memory, total]]) => {
|
|
1505
1505
|
const appliedColor = label[0] === '#' ? (label[1] !== '#' ? loadConfigFile_js.underline : loadConfigFile_js.bold) : (text) => text;
|
|
1506
|
-
const [time, memory, total] = timings[label];
|
|
1507
1506
|
const row = `${label}: ${time.toFixed(0)}ms, ${prettyBytes$1(memory)} / ${prettyBytes$1(total)}`;
|
|
1508
1507
|
console.info(appliedColor(row));
|
|
1509
1508
|
});
|
|
@@ -1653,12 +1652,7 @@ async function runRollup(command) {
|
|
|
1653
1652
|
environment.forEach((arg) => {
|
|
1654
1653
|
arg.split(',').forEach((pair) => {
|
|
1655
1654
|
const [key, ...value] = pair.split(':');
|
|
1656
|
-
|
|
1657
|
-
process.env[key] = value.join(':');
|
|
1658
|
-
}
|
|
1659
|
-
else {
|
|
1660
|
-
process.env[key] = String(true);
|
|
1661
|
-
}
|
|
1655
|
+
process$1.env[key] = value.length === 0 ? String(true) : value.join(':');
|
|
1662
1656
|
});
|
|
1663
1657
|
});
|
|
1664
1658
|
}
|