rollup 2.67.2 → 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 +61 -0
- package/dist/bin/rollup +8 -16
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +4119 -4113
- package/dist/es/shared/watch.js +6 -6
- 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 +5 -2
- 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 +4 -4
- package/dist/shared/rollup.js +4211 -4205
- package/dist/shared/watch-cli.js +4 -2
- package/dist/shared/watch.js +6 -4
- package/package.json +16 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
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
|
+
|
|
27
|
+
## 2.68.0
|
|
28
|
+
|
|
29
|
+
_2022-02-22_
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
- provide information about cached import resolutions in `shouldTransformCachedModule` (#4414)
|
|
34
|
+
- Add "types" field to Rollup's package exports (#4416)
|
|
35
|
+
|
|
36
|
+
### Pull Requests
|
|
37
|
+
|
|
38
|
+
- [#4410](https://github.com/rollup/rollup/pull/4410): refactor: use map for declarations and name suggestions (@dnalborczyk)
|
|
39
|
+
- [#4411](https://github.com/rollup/rollup/pull/4411): refactor: use map for namespace reexports by name (@dnalborczyk)
|
|
40
|
+
- [#4412](https://github.com/rollup/rollup/pull/4412): refactor: use includes where appropriate (@dnalborczyk)
|
|
41
|
+
- [#4414](https://github.com/rollup/rollup/pull/4414): Add resolved sources to shouldTransformCachedModule (@lukastaegert)
|
|
42
|
+
- [#4416](https://github.com/rollup/rollup/pull/4416): Add Typescript 4.5 nodenext node12 module resolution support (@frank-dspeed)
|
|
43
|
+
|
|
44
|
+
## 2.67.3
|
|
45
|
+
|
|
46
|
+
_2022-02-18_
|
|
47
|
+
|
|
48
|
+
### Bug Fixes
|
|
49
|
+
|
|
50
|
+
- Do not swallow other errors when unfinished hook actions are detected (#4409)
|
|
51
|
+
- Add additional information to output when there are unfinished hook actions (#4409)
|
|
52
|
+
|
|
53
|
+
### Pull Requests
|
|
54
|
+
|
|
55
|
+
- [#4399](https://github.com/rollup/rollup/pull/4399): docs: remove const (@TrickyPi)
|
|
56
|
+
- [#4401](https://github.com/rollup/rollup/pull/4401): Improve test stability by getting independent of module id ordering in more places (@lukastaegert)
|
|
57
|
+
- [#4403](https://github.com/rollup/rollup/pull/4403): fix: remove unnecessary property descriptor spread (@dnalborczyk)
|
|
58
|
+
- [#4404](https://github.com/rollup/rollup/pull/4404): refactor: use map for import descriptions + re-export descriptions (@dnalborczyk)
|
|
59
|
+
- [#4405](https://github.com/rollup/rollup/pull/4405): refactor: module exports to map (@dnalborczyk)
|
|
60
|
+
- [#4406](https://github.com/rollup/rollup/pull/4406): Fix a typo in 'Direct plugin communication' code example (@younesmln)
|
|
61
|
+
- [#4407](https://github.com/rollup/rollup/pull/4407): Document how resolveId is cached (@lukastaegert)
|
|
62
|
+
- [#4409](https://github.com/rollup/rollup/pull/4409): Print ids for unfinished moduleParsed and shouldTransformCachedModule hooks (@lukastaegert)
|
|
63
|
+
|
|
3
64
|
## 2.67.2
|
|
4
65
|
|
|
5
66
|
_2022-02-10_
|
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
|
});
|
|
@@ -1633,14 +1632,12 @@ async function runRollup(command) {
|
|
|
1633
1632
|
inputSource = command.input;
|
|
1634
1633
|
}
|
|
1635
1634
|
if (inputSource && inputSource.length > 0) {
|
|
1636
|
-
if (inputSource.some((input) => input.
|
|
1635
|
+
if (inputSource.some((input) => input.includes('='))) {
|
|
1637
1636
|
command.input = {};
|
|
1638
1637
|
inputSource.forEach((input) => {
|
|
1639
1638
|
const equalsIndex = input.indexOf('=');
|
|
1640
|
-
const value = input.
|
|
1641
|
-
|
|
1642
|
-
if (!key)
|
|
1643
|
-
key = rollup.getAliasName(input);
|
|
1639
|
+
const value = input.substring(equalsIndex + 1);
|
|
1640
|
+
const key = input.substring(0, equalsIndex) || rollup.getAliasName(input);
|
|
1644
1641
|
command.input[key] = value;
|
|
1645
1642
|
});
|
|
1646
1643
|
}
|
|
@@ -1655,12 +1652,7 @@ async function runRollup(command) {
|
|
|
1655
1652
|
environment.forEach((arg) => {
|
|
1656
1653
|
arg.split(',').forEach((pair) => {
|
|
1657
1654
|
const [key, ...value] = pair.split(':');
|
|
1658
|
-
|
|
1659
|
-
process.env[key] = value.join(':');
|
|
1660
|
-
}
|
|
1661
|
-
else {
|
|
1662
|
-
process.env[key] = String(true);
|
|
1663
|
-
}
|
|
1655
|
+
process$1.env[key] = value.length === 0 ? String(true) : value.join(':');
|
|
1664
1656
|
});
|
|
1665
1657
|
});
|
|
1666
1658
|
}
|