rollup 2.34.2 → 2.36.1

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,43 @@
1
1
  # rollup changelog
2
2
 
3
+ ## 2.36.1
4
+ *2021-01-06*
5
+
6
+ ### Bug Fixes
7
+ * Solve issues that result in invalid code when partially removing assignments (#3921)
8
+
9
+ ### Pull Requests
10
+ * [#3921](https://github.com/rollup/rollup/pull/3921): Prevent invalid code when removing assignment target of side-effectful object expression (@lukastaegert)
11
+
12
+ ## 2.36.0
13
+ *2021-01-05*
14
+
15
+ ### Features
16
+ * Support partial tree-shaking of chained assignments and unused assignment targets (#3919)
17
+
18
+ ### Pull Requests
19
+ * [#3919](https://github.com/rollup/rollup/pull/3919): Treeshake chained assignment expressions (@lukastaegert)
20
+
21
+ ## 2.35.1
22
+ *2020-12-14*
23
+
24
+ ### Bug Fixes
25
+ * Allow closing the bundle when watching in case of generate errors by adding the bundle to the error event (#3909)
26
+ * Automatically close all bundles on generate errors when watching and using the CLI (#3909)
27
+ * Try to create remaining bundles when watching and one of them throws (#3909)
28
+
29
+ ### Pull Requests
30
+ * [#3909](https://github.com/rollup/rollup/pull/3909): Forward bundle through watch error events (@lukastaegert)
31
+
32
+ ## 2.35.0
33
+ *2020-12-14*
34
+
35
+ ### Features
36
+ * Add `closeBundle` hook that is triggered by `bundle.close()` in the JS API (#3883)
37
+
38
+ ### Pull Requests
39
+ * [#3883](https://github.com/rollup/rollup/pull/3883): Revert pattern to folder export (@intrnl)
40
+
3
41
  ## 2.34.2
4
42
  *2020-12-06*
5
43
 
package/dist/bin/rollup CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v2.34.2
6
- Sun, 06 Dec 2020 05:40:46 GMT - commit 92a2dfa8f18350373aa2329dec45e56bd076909d
5
+ Rollup.js v2.36.1
6
+ Wed, 06 Jan 2021 14:06:54 GMT - commit d6600638c61b5eb7f389681d5fa4af9a1b95823e
7
7
 
8
8
 
9
9
  https://github.com/rollup/rollup
@@ -1492,6 +1492,7 @@ async function build(inputOptions, warnings, silent = false) {
1492
1492
  return;
1493
1493
  }
1494
1494
  await Promise.all(outputOptions.map(bundle.write));
1495
+ await bundle.close();
1495
1496
  if (!silent) {
1496
1497
  warnings.flush();
1497
1498
  loadConfigFile_js.stderr(loadConfigFile_js.green(`created ${loadConfigFile_js.bold(files.join(', '))} in ${loadConfigFile_js.bold(prettyMs(Date.now() - start))}`));