rollup 2.38.0 → 2.38.4

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,46 @@
1
1
  # rollup changelog
2
2
 
3
+ ## 2.38.4
4
+ *2021-02-02*
5
+
6
+ ### Bug Fixes
7
+ * Do not change logic when tree-shaking declarations in if statements or loops (#3947)
8
+
9
+ ### Pull Requests
10
+ * [#3947](https://github.com/rollup/rollup/pull/3947): Do not tear apart declarations in loop or if bodies (@lukastaegert)
11
+
12
+ ## 2.38.3
13
+ *2021-02-01*
14
+
15
+ ### Bug Fixes
16
+ * Prevent an unexpected live-binding when default exporting a synthetic named export (#3946)
17
+
18
+ ### Pull Requests
19
+ * [#3945](https://github.com/rollup/rollup/pull/3945): Upgrade chokidar and fsevents for Apple M1 compatibility (@threepointone)
20
+ * [#3946](https://github.com/rollup/rollup/pull/3946): Make sure default exports snapshot synthetic named exports (@lukastaegert)
21
+
22
+ ## 2.38.2
23
+ *2021-01-31*
24
+
25
+ ### Bug Fixes
26
+ * Do not generate invalid code for partially tree-shaken declarations in for loops (#3943)
27
+ * Always include function bodies of functions in side-effect-free modules (#3944)
28
+
29
+ ### Pull Requests
30
+ * [#3943](https://github.com/rollup/rollup/pull/3943): Do not partially tree-shake unused declarations in for loops (@lukastaegert)
31
+ * [#3944](https://github.com/rollup/rollup/pull/3944): Correctly include functions with side effects from side-effect-free modules (@lukastaegert)
32
+
33
+ ## 2.38.1
34
+ *2021-01-28*
35
+
36
+ ### Bug Fixes
37
+ * Fix internal error when resolving a missing entry point in the browser build (#3935)
38
+
39
+ ### Pull Requests
40
+ * [#3935](https://github.com/rollup/rollup/pull/3935): fix: remove isolated resolve() for compat with browser distribution (@cmorten and @lukastaegert)
41
+ * [#3936](https://github.com/rollup/rollup/pull/3936): Ensure test after() callback is always executed (@Benjamin-Dobell)
42
+ * [#3937](https://github.com/rollup/rollup/pull/3937): Modernize references to other software (@ludofischer)
43
+
3
44
  ## 2.38.0
4
45
  *2021-01-22*
5
46
 
package/README.md CHANGED
@@ -65,7 +65,7 @@ rollup main.js --format umd --name "myBundle" --file bundle.js
65
65
 
66
66
  Developing software is usually easier if you break your project into smaller separate pieces, since that often removes unexpected interactions and dramatically reduces the complexity of the problems you'll need to solve, and simply writing smaller projects in the first place [isn't necessarily the answer](https://medium.com/@Rich_Harris/small-modules-it-s-not-quite-that-simple-3ca532d65de4). Unfortunately, JavaScript has not historically included this capability as a core feature in the language.
67
67
 
68
- This finally changed with ES modules support in JavaScript, which provides a syntax for importing and exporting functions and data so they can be shared between separate scripts. The specification is now implemented in all major browsers and in Node.js behind the --experimental-modules flag for ".mjs" files. Rollup allows you to write your code using this module system, either outputting optimized ES modules for use in these native environments, or compiling it back down to existing supported formats such as CommonJS modules, AMD modules, and IIFE-style scripts. This means that you get to *write future-proof code*, and you also get the tremendous benefits of...
68
+ This finally changed with ES modules support in JavaScript, which provides a syntax for importing and exporting functions and data so they can be shared between separate scripts. Most browsers and Node.js support ES modules. However, Node.js releases before 12.17 support ES modules only behind the `--experimental-modules` flag, and older browsers like Internet Explorer do not support ES modules at all. Rollup allows you to write your code using ES modules, and run your application even in environments that do not support ES modules natively. For environments that support them, Rollup can output optimized ES modules; for environments that don't, Rollup can compile your code to other formats such as CommonJS modules, AMD modules, and IIFE-style scripts. This means that you get to *write future-proof code*, and you also get the tremendous benefits of...
69
69
 
70
70
  ## Tree Shaking
71
71
 
@@ -101,7 +101,7 @@ Rollup can import existing CommonJS modules [through a plugin](https://github.co
101
101
 
102
102
  ### Publishing ES Modules
103
103
 
104
- To make sure your ES modules are immediately usable by tools that work with CommonJS such as Node.js and webpack, you can use Rollup to compile to UMD or CommonJS format, and then point to that compiled version with the `main` property in your `package.json` file. If your `package.json` file also has a `module` field, ES-module-aware tools like Rollup and [webpack 2](https://webpack.js.org/) will [import the ES module version](https://github.com/rollup/rollup/wiki/pkg.module) directly.
104
+ To make sure your ES modules are immediately usable by tools that work with CommonJS such as Node.js and webpack, you can use Rollup to compile to UMD or CommonJS format, and then point to that compiled version with the `main` property in your `package.json` file. If your `package.json` file also has a `module` field, ES-module-aware tools like Rollup and [webpack](https://webpack.js.org/) will [import the ES module version](https://github.com/rollup/rollup/wiki/pkg.module) directly.
105
105
 
106
106
  ## Contributors
107
107
 
package/dist/bin/rollup CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v2.38.0
6
- Fri, 22 Jan 2021 16:26:00 GMT - commit 889fa5267ad93cc706fdbff2024e9c4d4f273749
5
+ Rollup.js v2.38.4
6
+ Tue, 02 Feb 2021 05:54:38 GMT - commit 991bb98fad1f3f76226bfe6243fd6cc45a19a39b
7
7
 
8
8
 
9
9
  https://github.com/rollup/rollup