rollup 2.67.0 → 2.68.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 +70 -0
- package/dist/bin/rollup +11 -13
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +3925 -3923
- package/dist/es/shared/watch.js +7 -7
- package/dist/loadConfigFile.js +3 -3
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.d.ts +2 -1
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +10 -10
- package/dist/shared/mergeOptions.js +4 -4
- package/dist/shared/rollup.js +3924 -3922
- package/dist/shared/watch-cli.js +6 -4
- package/dist/shared/watch.js +4 -4
- package/package.json +10 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,75 @@
|
|
|
1
1
|
# rollup changelog
|
|
2
2
|
|
|
3
|
+
## 2.68.0
|
|
4
|
+
|
|
5
|
+
_2022-02-22_
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- provide information about cached import resolutions in `shouldTransformCachedModule` (#4414)
|
|
10
|
+
- Add "types" field to Rollup's package exports (#4416)
|
|
11
|
+
|
|
12
|
+
### Pull Requests
|
|
13
|
+
|
|
14
|
+
- [#4410](https://github.com/rollup/rollup/pull/4410): refactor: use map for declarations and name suggestions (@dnalborczyk)
|
|
15
|
+
- [#4411](https://github.com/rollup/rollup/pull/4411): refactor: use map for namespace reexports by name (@dnalborczyk)
|
|
16
|
+
- [#4412](https://github.com/rollup/rollup/pull/4412): refactor: use includes where appropriate (@dnalborczyk)
|
|
17
|
+
- [#4414](https://github.com/rollup/rollup/pull/4414): Add resolved sources to shouldTransformCachedModule (@lukastaegert)
|
|
18
|
+
- [#4416](https://github.com/rollup/rollup/pull/4416): Add Typescript 4.5 nodenext node12 module resolution support (@frank-dspeed)
|
|
19
|
+
|
|
20
|
+
## 2.67.3
|
|
21
|
+
|
|
22
|
+
_2022-02-18_
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
- Do not swallow other errors when unfinished hook actions are detected (#4409)
|
|
27
|
+
- Add additional information to output when there are unfinished hook actions (#4409)
|
|
28
|
+
|
|
29
|
+
### Pull Requests
|
|
30
|
+
|
|
31
|
+
- [#4399](https://github.com/rollup/rollup/pull/4399): docs: remove const (@TrickyPi)
|
|
32
|
+
- [#4401](https://github.com/rollup/rollup/pull/4401): Improve test stability by getting independent of module id ordering in more places (@lukastaegert)
|
|
33
|
+
- [#4403](https://github.com/rollup/rollup/pull/4403): fix: remove unnecessary property descriptor spread (@dnalborczyk)
|
|
34
|
+
- [#4404](https://github.com/rollup/rollup/pull/4404): refactor: use map for import descriptions + re-export descriptions (@dnalborczyk)
|
|
35
|
+
- [#4405](https://github.com/rollup/rollup/pull/4405): refactor: module exports to map (@dnalborczyk)
|
|
36
|
+
- [#4406](https://github.com/rollup/rollup/pull/4406): Fix a typo in 'Direct plugin communication' code example (@younesmln)
|
|
37
|
+
- [#4407](https://github.com/rollup/rollup/pull/4407): Document how resolveId is cached (@lukastaegert)
|
|
38
|
+
- [#4409](https://github.com/rollup/rollup/pull/4409): Print ids for unfinished moduleParsed and shouldTransformCachedModule hooks (@lukastaegert)
|
|
39
|
+
|
|
40
|
+
## 2.67.2
|
|
41
|
+
|
|
42
|
+
_2022-02-10_
|
|
43
|
+
|
|
44
|
+
### Bug Fixes
|
|
45
|
+
|
|
46
|
+
- Ensure consistent order between manual chunks to fix hashing issues (#4397)
|
|
47
|
+
|
|
48
|
+
### Pull Requests
|
|
49
|
+
|
|
50
|
+
- [#4390](https://github.com/rollup/rollup/pull/4390): refactor: add @types/estree explicitly, fix dynamic type imports (@dnalborczyk)
|
|
51
|
+
- [#4391](https://github.com/rollup/rollup/pull/4391): chore: remove acorn-walk ambient type definitions (@dnalborczyk)
|
|
52
|
+
- [#4397](https://github.com/rollup/rollup/pull/4397): Sort manual chunks generated via a function by name (@lukastaegert)
|
|
53
|
+
|
|
54
|
+
## 2.67.1
|
|
55
|
+
|
|
56
|
+
_2022-02-07_
|
|
57
|
+
|
|
58
|
+
### Bug Fixes
|
|
59
|
+
|
|
60
|
+
- Make chunk file and variable names more deterministic when emitting chunks (#4386)
|
|
61
|
+
- Improve default module resolver performance by using non-blocking IO (#4386)
|
|
62
|
+
|
|
63
|
+
### Pull Requests
|
|
64
|
+
|
|
65
|
+
- [#4373](https://github.com/rollup/rollup/pull/4373): fix: even more types (@dnalborczyk)
|
|
66
|
+
- [#4382](https://github.com/rollup/rollup/pull/4382): Update contribution tut link desc (@lemredd)
|
|
67
|
+
- [#4383](https://github.com/rollup/rollup/pull/4383): chore: bump deps (@dnalborczyk)
|
|
68
|
+
- [#4384](https://github.com/rollup/rollup/pull/4384): chore: move "wait" to utils + re-use (@dnalborczyk)
|
|
69
|
+
- [#4385](https://github.com/rollup/rollup/pull/4385): refactor: convert watch tests to async functions (@dnalborczyk)
|
|
70
|
+
- [#4386](https://github.com/rollup/rollup/pull/4386): refactor: use fs.promises in resolve id, Part 4 (@dnalborczyk and @lukastaegert)
|
|
71
|
+
- [#4389](https://github.com/rollup/rollup/pull/4389): refactor: use fs.promises in generate license file, rollup config, Part 5 (@dnalborczyk)
|
|
72
|
+
|
|
3
73
|
## 2.67.0
|
|
4
74
|
|
|
5
75
|
_2022-02-02_
|
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.68.0
|
|
6
|
+
Tue, 22 Feb 2022 06:24:42 GMT - commit 51cab92373bcf8c844a8de2a6765869f7eb05a5d
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
https://github.com/rollup/rollup
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
16
16
|
|
|
17
|
+
const process$1 = require('process');
|
|
17
18
|
const rollup = require('../shared/rollup.js');
|
|
18
19
|
const require$$2 = require('util');
|
|
19
20
|
const require$$0$1 = require('fs');
|
|
20
21
|
const require$$0 = require('path');
|
|
21
22
|
const mergeOptions = require('../shared/mergeOptions.js');
|
|
22
23
|
const loadConfigFile_js = require('../shared/loadConfigFile.js');
|
|
23
|
-
const process$1 = require('process');
|
|
24
24
|
require('perf_hooks');
|
|
25
25
|
require('crypto');
|
|
26
26
|
require('events');
|
|
@@ -1549,8 +1549,8 @@ async function build(inputOptions, warnings, silent = false) {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
}
|
|
1551
1551
|
if (outputs.length > 1)
|
|
1552
|
-
process.stdout.write(`\n${loadConfigFile_js.cyan(loadConfigFile_js.bold(`//→ ${file.fileName}:`))}\n`);
|
|
1553
|
-
process.stdout.write(source);
|
|
1552
|
+
process$1.stdout.write(`\n${loadConfigFile_js.cyan(loadConfigFile_js.bold(`//→ ${file.fileName}:`))}\n`);
|
|
1553
|
+
process$1.stdout.write(source);
|
|
1554
1554
|
}
|
|
1555
1555
|
if (!silent) {
|
|
1556
1556
|
warnings.flush();
|
|
@@ -1607,7 +1607,7 @@ async function findConfigFileNameInCwd() {
|
|
|
1607
1607
|
|
|
1608
1608
|
async function loadConfigFromCommand(command) {
|
|
1609
1609
|
const warnings = loadConfigFile_js.batchWarnings();
|
|
1610
|
-
if (!command.input && (command.stdin || !process.stdin.isTTY)) {
|
|
1610
|
+
if (!command.input && (command.stdin || !process$1.stdin.isTTY)) {
|
|
1611
1611
|
command.input = loadConfigFile_js.stdinName;
|
|
1612
1612
|
}
|
|
1613
1613
|
const options = mergeOptions.mergeOptions({ input: [] }, command, warnings.add);
|
|
@@ -1633,14 +1633,12 @@ async function runRollup(command) {
|
|
|
1633
1633
|
inputSource = command.input;
|
|
1634
1634
|
}
|
|
1635
1635
|
if (inputSource && inputSource.length > 0) {
|
|
1636
|
-
if (inputSource.some((input) => input.
|
|
1636
|
+
if (inputSource.some((input) => input.includes('='))) {
|
|
1637
1637
|
command.input = {};
|
|
1638
1638
|
inputSource.forEach((input) => {
|
|
1639
1639
|
const equalsIndex = input.indexOf('=');
|
|
1640
|
-
const value = input.
|
|
1641
|
-
|
|
1642
|
-
if (!key)
|
|
1643
|
-
key = rollup.getAliasName(input);
|
|
1640
|
+
const value = input.substring(equalsIndex + 1);
|
|
1641
|
+
const key = input.substring(0, equalsIndex) || rollup.getAliasName(input);
|
|
1644
1642
|
command.input[key] = value;
|
|
1645
1643
|
});
|
|
1646
1644
|
}
|
|
@@ -1703,11 +1701,11 @@ async function getConfigs(command) {
|
|
|
1703
1701
|
return await loadConfigFromCommand(command);
|
|
1704
1702
|
}
|
|
1705
1703
|
|
|
1706
|
-
const command = argParser(process.argv.slice(2), {
|
|
1704
|
+
const command = argParser(process$1.argv.slice(2), {
|
|
1707
1705
|
alias: mergeOptions.commandAliases,
|
|
1708
1706
|
configuration: { 'camel-case-expansion': false }
|
|
1709
1707
|
});
|
|
1710
|
-
if (command.help || (process.argv.length <= 2 && process.stdin.isTTY)) {
|
|
1708
|
+
if (command.help || (process$1.argv.length <= 2 && process$1.stdin.isTTY)) {
|
|
1711
1709
|
console.log(`\n${help.replace('__VERSION__', rollup.version)}\n`);
|
|
1712
1710
|
}
|
|
1713
1711
|
else if (command.version) {
|