rollup 2.59.0 → 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 CHANGED
@@ -1,5 +1,21 @@
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
+
3
19
  ## 2.59.0
4
20
 
5
21
  _2021-11-01_
package/dist/bin/rollup CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v2.59.0
6
- Mon, 01 Nov 2021 06:11:12 GMT - commit 66b3139b4be1d52342088dc00ef89fb9412f639a
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), {