rollup 2.58.3 → 2.60.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 +34 -0
- package/dist/bin/rollup +5 -5
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +984 -904
- package/dist/es/shared/watch.js +2 -2
- 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 +1 -0
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +26 -15
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +984 -904
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# rollup changelog
|
|
2
2
|
|
|
3
|
+
## 2.60.0
|
|
4
|
+
|
|
5
|
+
_2021-11-11_
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- Add `this.load` context function to load, transform and parse modules without adding them to the graph (#4234)
|
|
10
|
+
- Sanitize non-url-safe characters in generated chunk names by default (#4262)
|
|
11
|
+
- Support ESM plugins via command line (#4265)
|
|
12
|
+
|
|
13
|
+
### Pull Requests
|
|
14
|
+
|
|
15
|
+
- [#4234](https://github.com/rollup/rollup/pull/4234): Plugin context function for pre-loading modules (@lukastaegert)
|
|
16
|
+
- [#4262](https://github.com/rollup/rollup/pull/4262): exclude invalid URL chars (@danielroe)
|
|
17
|
+
- [#4265](https://github.com/rollup/rollup/pull/4265): support loading ESM plugins from the CLI via --plugin (@kzc)
|
|
18
|
+
|
|
19
|
+
## 2.59.0
|
|
20
|
+
|
|
21
|
+
_2021-11-01_
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
- Support static class initialization blocks (#4249)
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
- Fix an issue with the CommonJS plugin when module.exports has inherited properties (#4256)
|
|
30
|
+
|
|
31
|
+
### Pull Requests
|
|
32
|
+
|
|
33
|
+
- [#4236](https://github.com/rollup/rollup/pull/4236): typescript bug class field initialization order (@dnalborczyk)
|
|
34
|
+
- [#4249](https://github.com/rollup/rollup/pull/4249): Support for class static initialization block (@dnalborczyk and @lukastaegert)
|
|
35
|
+
- [#4256](https://github.com/rollup/rollup/pull/4256): Skip inherited properties in synthetic namespaces (@lukastaegert)
|
|
36
|
+
|
|
3
37
|
## 2.58.3
|
|
4
38
|
|
|
5
39
|
_2021-10-25_
|
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.60.0
|
|
6
|
+
Fri, 12 Nov 2021 05:12:41 GMT - commit 8d98341bf746d4baa57bbd730b1fa6449555cfca
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
https://github.com/rollup/rollup
|
|
@@ -1658,13 +1658,13 @@ function findConfigFileNameInCwd() {
|
|
|
1658
1658
|
return `${DEFAULT_CONFIG_BASE}.js`;
|
|
1659
1659
|
}
|
|
1660
1660
|
|
|
1661
|
-
function loadConfigFromCommand(command) {
|
|
1661
|
+
async function loadConfigFromCommand(command) {
|
|
1662
1662
|
const warnings = loadConfigFile_js.batchWarnings();
|
|
1663
1663
|
if (!command.input && (command.stdin || !process.stdin.isTTY)) {
|
|
1664
1664
|
command.input = loadConfigFile_js.stdinName;
|
|
1665
1665
|
}
|
|
1666
1666
|
const options = mergeOptions.mergeOptions({ input: [] }, command, warnings.add);
|
|
1667
|
-
loadConfigFile_js.addCommandPluginsToInputOptions(options, command);
|
|
1667
|
+
await loadConfigFile_js.addCommandPluginsToInputOptions(options, command);
|
|
1668
1668
|
return { options: [options], warnings };
|
|
1669
1669
|
}
|
|
1670
1670
|
|
|
@@ -1753,7 +1753,7 @@ async function getConfigs(command) {
|
|
|
1753
1753
|
const { options, warnings } = await loadConfigFile_js.loadAndParseConfigFile(configFile, command);
|
|
1754
1754
|
return { options, warnings };
|
|
1755
1755
|
}
|
|
1756
|
-
return loadConfigFromCommand(command);
|
|
1756
|
+
return await loadConfigFromCommand(command);
|
|
1757
1757
|
}
|
|
1758
1758
|
|
|
1759
1759
|
const command = argParser(process.argv.slice(2), {
|