rollup 2.51.0 → 2.52.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,46 @@
1
1
  # rollup changelog
2
2
 
3
+ ## 2.52.1
4
+ *2021-06-17*
5
+
6
+ ### Bug Fixes
7
+ * Fix a memory leak in watch mode (#4142)
8
+
9
+ ### Pull Requests
10
+ * [#4142](https://github.com/rollup/rollup/pull/4142): Make array and object prototype singletons immutable for now (@lukastaegert)
11
+
12
+ ## 2.52.0
13
+ *2021-06-16*
14
+
15
+ ### Features
16
+ * Add `--configPlugin` CLI option to apply plugins to the config file for e.g. TypeScript configs (#3835)
17
+ * Add "safest" and "smallest" presets to tree-shaking options for easier configuration (#4131)
18
+ * Add `treeshake.correctVarValueBeforeDeclaration` option to deoptimize `var` declarations (#4139)
19
+
20
+ ### Pull Requests
21
+ * [#3835](https://github.com/rollup/rollup/pull/3835): Add typescript config support (@TheRealSyler)
22
+ * [#4131](https://github.com/rollup/rollup/pull/4131): Add presets to the tree-shaking options (@lukastaegert)
23
+ * [#4139](https://github.com/rollup/rollup/pull/4139): Add option to deoptimize var declarations for tree-shaking (@lukastaegert)
24
+ * [#4141](https://github.com/rollup/rollup/pull/4141): Update dependencies (@lukastaegert)
25
+
26
+ ## 2.51.2
27
+ *2021-06-11*
28
+
29
+ ### Bug Fixes
30
+ * Include modules imported from no-treeshake modules even if they would be empty (#4138)
31
+
32
+ ### Pull Requests
33
+ * [#4138](https://github.com/rollup/rollup/pull/4138): Include all dependencies from modules with no-treeshake (@lukastaegert)
34
+
35
+ ## 2.51.1
36
+ *2021-06-08*
37
+
38
+ ### Bug Fixes
39
+ * Fix error when using `defineConfig` (#4134)
40
+
41
+ ### Pull Requests
42
+ * [#4134](https://github.com/rollup/rollup/pull/4134): export `rollup.defineConfig` at runtime (@mshrtsr)
43
+
3
44
  ## 2.51.0
4
45
  *2021-06-06*
5
46
 
@@ -1517,7 +1558,7 @@ This version is identical to 2.4.0
1517
1558
  * The file structure of Rollup's ESM builds has changed:
1518
1559
  - The main ESM entry point is now at `rollup/dist/es/rollup.js` instead of `rollup/dist/rollup.es.js`
1519
1560
  - The ESM browser build is at `rollup/dist/es/rollup.browser.js` instead of `rollup/dist/rollup.browser.es.js`
1520
-
1561
+
1521
1562
  In general, the ESM builds now follow the same naming scheme as the CJS builds but are located in the `rollup/dist/es` subfolder instead of `rollup/dist` (#3391)
1522
1563
  * The "watch.chokidar" option no longer accepts a `boolean` value but only an object of parameters that is passed to the bundled Chokidar instance. Chokidar installations by the user will be ignored in favour of the bundled instance (#3331)
1523
1564
  * Modules that are completely tree-shaken will no longer be listed as part of any chunks in `generateBundle`
@@ -2950,7 +2991,7 @@ This version is identical to 2.4.0
2950
2991
  - globals -> output.globals
2951
2992
  - indent -> output.indent
2952
2993
  - interop -> output.interop
2953
- - intro -> output.intro
2994
+ - intro -> output.intro
2954
2995
  - load -> use plugin API
2955
2996
  - moduleName -> output.name
2956
2997
  - name -> output.name
@@ -3105,9 +3146,9 @@ none
3105
3146
 
3106
3147
  ### Bug Fixes
3107
3148
  * Fix TypeScript type for sourcemaps (#2507)
3108
- * Fix order of external and inter-chunk imports to match the proper execution order (#2508)
3109
- * Do not tree-shake children of unknown nodes to e.g. properly handle do-expressions via acorn plugin (#2510)
3110
- * Prevent memory leak when using the bundle as cache (#2522)
3149
+ * Fix order of external and inter-chunk imports to match the proper execution order (#2508)
3150
+ * Do not tree-shake children of unknown nodes to e.g. properly handle do-expressions via acorn plugin (#2510)
3151
+ * Prevent memory leak when using the bundle as cache (#2522)
3111
3152
  * Fix mis-placed semicolons for certain SystemJS exports (#2529)
3112
3153
 
3113
3154
  ### Pull Requests
package/LICENSE.md CHANGED
@@ -114,6 +114,16 @@ License: MIT
114
114
  By: Sindre Sorhus
115
115
  Repository: sindresorhus/binary-extensions
116
116
 
117
+ > MIT License
118
+ >
119
+ > Copyright (c) 2019 Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com), Paul Miller (https://paulmillr.com)
120
+ >
121
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
122
+ >
123
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
124
+ >
125
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
126
+
117
127
  ---------------------------------------
118
128
 
119
129
  ## braces
@@ -194,6 +204,16 @@ License: MIT
194
204
  By: Sindre Sorhus
195
205
  Repository: sindresorhus/date-time
196
206
 
207
+ > MIT License
208
+ >
209
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
210
+ >
211
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
212
+ >
213
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
214
+ >
215
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
216
+
197
217
  ---------------------------------------
198
218
 
199
219
  ## fill-range
@@ -282,6 +302,16 @@ License: MIT
282
302
  By: Sindre Sorhus
283
303
  Repository: sindresorhus/is-binary-path
284
304
 
305
+ > MIT License
306
+ >
307
+ > Copyright (c) 2019 Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com), Paul Miller (https://paulmillr.com)
308
+ >
309
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
310
+ >
311
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
312
+ >
313
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
314
+
285
315
  ---------------------------------------
286
316
 
287
317
  ## is-extglob
@@ -483,6 +513,16 @@ License: MIT
483
513
  By: Sindre Sorhus
484
514
  Repository: sindresorhus/parse-ms
485
515
 
516
+ > MIT License
517
+ >
518
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
519
+ >
520
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
521
+ >
522
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
523
+ >
524
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
525
+
486
526
  ---------------------------------------
487
527
 
488
528
  ## picomatch
@@ -519,6 +559,16 @@ License: MIT
519
559
  By: Sindre Sorhus
520
560
  Repository: sindresorhus/pretty-bytes
521
561
 
562
+ > MIT License
563
+ >
564
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
565
+ >
566
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
567
+ >
568
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
569
+ >
570
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
571
+
522
572
  ---------------------------------------
523
573
 
524
574
  ## pretty-ms
@@ -526,6 +576,16 @@ License: MIT
526
576
  By: Sindre Sorhus
527
577
  Repository: sindresorhus/pretty-ms
528
578
 
579
+ > MIT License
580
+ >
581
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
582
+ >
583
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
584
+ >
585
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
586
+ >
587
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
588
+
529
589
  ---------------------------------------
530
590
 
531
591
  ## readdirp
@@ -629,6 +689,16 @@ License: MIT
629
689
  By: Sindre Sorhus
630
690
  Repository: sindresorhus/time-zone
631
691
 
692
+ > MIT License
693
+ >
694
+ > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
695
+ >
696
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
697
+ >
698
+ > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
699
+ >
700
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
701
+
632
702
  ---------------------------------------
633
703
 
634
704
  ## to-regex-range
package/dist/bin/rollup CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v2.51.0
6
- Sun, 06 Jun 2021 11:27:34 GMT - commit 592b9fed918ccc99d48ece917a70015ac1898e52
5
+ Rollup.js v2.52.1
6
+ Thu, 17 Jun 2021 05:22:05 GMT - commit bef5fe8a573648f73c258ce9adf1a7ff3ffb129d
7
7
 
8
8
 
9
9
  https://github.com/rollup/rollup
@@ -1605,7 +1605,7 @@ function getConfigPath(commandConfig) {
1605
1605
  }
1606
1606
  function findConfigFileNameInCwd() {
1607
1607
  const filesInWorkingDir = new Set(fs.readdirSync(process.cwd()));
1608
- for (const extension of ['mjs', 'cjs']) {
1608
+ for (const extension of ['mjs', 'cjs', 'ts']) {
1609
1609
  const fileName = `${DEFAULT_CONFIG_BASE}.${extension}`;
1610
1610
  if (filesInWorkingDir.has(fileName))
1611
1611
  return fileName;