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 +41 -0
- package/README.md +2 -2
- package/dist/bin/rollup +2 -2
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +1044 -1045
- package/dist/es/shared/watch.js +15 -6
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.browser.js +4 -3
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +15 -6
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +1025 -1026
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +19 -20
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.
|
|
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
|
|
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