rollup 2.59.0 → 2.61.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 +57 -0
- package/dist/bin/rollup +6 -5
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +671 -648
- package/dist/es/shared/watch.js +4 -6
- package/dist/loadConfigFile.js +3 -2
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.d.ts +1 -0
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +3 -5
- package/dist/shared/loadConfigFile.js +120 -50
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +670 -649
- package/dist/shared/watch-cli.js +36 -13
- package/dist/shared/watch.js +2 -2
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
# rollup changelog
|
|
2
2
|
|
|
3
|
+
## 2.61.0
|
|
4
|
+
|
|
5
|
+
_2021-12-09_
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- Support ergonomic brand checks for private fields (#4293)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- Improve handling of directory creation on systems with restrictive open files limit (#4288)
|
|
14
|
+
|
|
15
|
+
### Pull Requests
|
|
16
|
+
|
|
17
|
+
- [#4288](https://github.com/rollup/rollup/pull/4288): modifymkdirpath (@mgrabowski84)
|
|
18
|
+
- [#4293](https://github.com/rollup/rollup/pull/4293): bump deps (@dnalborczyk)
|
|
19
|
+
|
|
20
|
+
## 2.60.2
|
|
21
|
+
|
|
22
|
+
_2021-11-30_
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
- Produce correct output when dynamic import paths contain quotes (#4286)
|
|
27
|
+
|
|
28
|
+
### Pull Requests
|
|
29
|
+
|
|
30
|
+
- [#4286](https://github.com/rollup/rollup/pull/4286): Escape dynamic import paths (@danielroe)
|
|
31
|
+
|
|
32
|
+
## 2.60.1
|
|
33
|
+
|
|
34
|
+
_2021-11-22_
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
- Make sure virtual files have proper file extensions when preserving modules (#4270)
|
|
39
|
+
|
|
40
|
+
### Pull Requests
|
|
41
|
+
|
|
42
|
+
- [#4270](https://github.com/rollup/rollup/pull/4270): Use entryFileNames when generating filenames for virtual modules (@BPScott)
|
|
43
|
+
|
|
44
|
+
## 2.60.0
|
|
45
|
+
|
|
46
|
+
_2021-11-11_
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
- Add `this.load` context function to load, transform and parse modules without adding them to the graph (#4234)
|
|
51
|
+
- Sanitize non-url-safe characters in generated chunk names by default (#4262)
|
|
52
|
+
- Support ESM plugins via command line (#4265)
|
|
53
|
+
|
|
54
|
+
### Pull Requests
|
|
55
|
+
|
|
56
|
+
- [#4234](https://github.com/rollup/rollup/pull/4234): Plugin context function for pre-loading modules (@lukastaegert)
|
|
57
|
+
- [#4262](https://github.com/rollup/rollup/pull/4262): exclude invalid URL chars (@danielroe)
|
|
58
|
+
- [#4265](https://github.com/rollup/rollup/pull/4265): support loading ESM plugins from the CLI via --plugin (@kzc)
|
|
59
|
+
|
|
3
60
|
## 2.59.0
|
|
4
61
|
|
|
5
62
|
_2021-11-01_
|
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.61.0
|
|
6
|
+
Thu, 09 Dec 2021 05:43:43 GMT - commit 49d41f78987a1dd13488df009fe2db1b5d1b6e7c
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
https://github.com/rollup/rollup
|
|
@@ -24,6 +24,7 @@ const require$$1 = require('module');
|
|
|
24
24
|
require('crypto');
|
|
25
25
|
require('events');
|
|
26
26
|
require('url');
|
|
27
|
+
require('process');
|
|
27
28
|
require('tty');
|
|
28
29
|
|
|
29
30
|
function _interopNamespaceDefault(e) {
|
|
@@ -1658,13 +1659,13 @@ function findConfigFileNameInCwd() {
|
|
|
1658
1659
|
return `${DEFAULT_CONFIG_BASE}.js`;
|
|
1659
1660
|
}
|
|
1660
1661
|
|
|
1661
|
-
function loadConfigFromCommand(command) {
|
|
1662
|
+
async function loadConfigFromCommand(command) {
|
|
1662
1663
|
const warnings = loadConfigFile_js.batchWarnings();
|
|
1663
1664
|
if (!command.input && (command.stdin || !process.stdin.isTTY)) {
|
|
1664
1665
|
command.input = loadConfigFile_js.stdinName;
|
|
1665
1666
|
}
|
|
1666
1667
|
const options = mergeOptions.mergeOptions({ input: [] }, command, warnings.add);
|
|
1667
|
-
loadConfigFile_js.addCommandPluginsToInputOptions(options, command);
|
|
1668
|
+
await loadConfigFile_js.addCommandPluginsToInputOptions(options, command);
|
|
1668
1669
|
return { options: [options], warnings };
|
|
1669
1670
|
}
|
|
1670
1671
|
|
|
@@ -1753,7 +1754,7 @@ async function getConfigs(command) {
|
|
|
1753
1754
|
const { options, warnings } = await loadConfigFile_js.loadAndParseConfigFile(configFile, command);
|
|
1754
1755
|
return { options, warnings };
|
|
1755
1756
|
}
|
|
1756
|
-
return loadConfigFromCommand(command);
|
|
1757
|
+
return await loadConfigFromCommand(command);
|
|
1757
1758
|
}
|
|
1758
1759
|
|
|
1759
1760
|
const command = argParser(process.argv.slice(2), {
|