rollup 0.67.3 → 0.68.2

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,28 +1,129 @@
1
1
  # rollup changelog
2
2
 
3
+ ## 0.68.2
4
+ *2018-12-23*
5
+
6
+ ### Bug Fixes
7
+ * Do not assume hoisted variables to have been initialized (#2607)
8
+
9
+ ### Pull Requests
10
+ * [#2607](https://github.com/rollup/rollup/pull/2607): Fix an issues where hoisted variables were assumed to have been initialized (@lye)
11
+
12
+ ## 0.68.1
13
+ *2018-12-19*
14
+
15
+ ### Bug Fixes
16
+ * Fix an issue with UMD wrappers where a variable is used without being defined (#2600)
17
+
18
+ ### Pull Requests
19
+ * [#2600](https://github.com/rollup/rollup/pull/2600): Fix UMD and IIFE wrapper issues and add comprehensive functional wrapper tests (@lukastaegert)
20
+
21
+ ## 0.68.0
22
+ *2018-12-16*
23
+
24
+ ### Breaking Changes
25
+ * `optimizeChunks` is renamed to `experimentalOptimizeChunks` to reflect this feature is not production-ready yet (#2575)
26
+
27
+ ### Features
28
+ * Plugins can iterate all module ids via `this.moduleIds` (#2565)
29
+ * Plugins can get graph information about a module via `this.getModuleInfo(id)` (#2565)
30
+ * Plugins and JS API users get more information about the generated chunks: `dynamicImports`, `facadeModuleId`, `isDynamicEntry`, `name` (#2575)
31
+ * Tree-shaken dynamic imports will no longer create chunks or influence chunking in any way (#2575)
32
+ * Dynamic imports will no longer follow the `entryFileNames` but the `chunkFileNames` property reflecting those are solely internally used (#2575)
33
+ * If there are chunk naming conflicts, entry chunks will always take precedence (#2575)
34
+ * If an entry facade is created, only the facade chunk is marked as `isEntry` (#2575)
35
+ * Dynamic chunks will only be marked as `isEntry` if they are actually entry chunks as well; thus there is now a 1-to-1 correspondence between modules listed in `input` and chunks marked as `isEntry` (#2575)
36
+ * Chunks no longer contain imports for variables that are tree-shaken in the chunk but used in other chunks (#2584)
37
+ * Chunks will always import re-exported variables directly from the chunk where they are originally exported from (#2584)
38
+ * Null characters will be pruned from chunk ids to allow for virtually created chunks and make `rollup-plugin-multi-entry` compatible with code-splitting and thus the upcoming 1.0 version (#2590)
39
+ * Simplify the UMD wrapper code as much as possible, especially if there are no exports (#2594)
40
+ * The UMD wrapper will now work in strict mode by checking for `self` before `this` when determining the global variable (#2594)
41
+
42
+ ### Bug Fixes
43
+ * If a facade is created for a dynamic entry point, this facade will be imported instead of the facaded chunk (#2575)
44
+ * Manual chunks that include multiple entry points will have proper facades created for all entry points if necessary (#2575)
45
+ * If missing exports are shimmed, the shim variable will not be global but created on a per-module basis and is deconflicted with variables having the same name (#2584)
46
+ * Missing export shims work properly in SystemJS (#2584)
47
+ * `preserveModules` now handles dynamic namespace imports (#2584)
48
+ * Fix chunk execution order in certain scenarios (#2584)
49
+ * Exports and assignments using destructuring syntax will properly update the exported variables when generating SystemJS output (#2587)
50
+ * Hashes in chunk names will now also take dynamic imports into account (#2596)
51
+
52
+ ### Pull Requests
53
+ * [#2565](https://github.com/rollup/rollup/pull/2565): Provide module graph information on the plugin context (@samccone)
54
+ * [#2575](https://github.com/rollup/rollup/pull/2575): Extend bundle information, tree-shake dynamic imports, fix dynamic import facade creation, support manual chunks with multiple entry points, make `optimizeChunks` experimental (@lukastaegert)
55
+ * [#2577](https://github.com/rollup/rollup/pull/2577): Update dependencies (@lukastaegert)
56
+ * [#2584](https://github.com/rollup/rollup/pull/2584): Prune tree-shaken chunk imports, fix missing export shimming, support dynamic namespaces when preserving modules, improve chunk execution order (@lukastaegert)
57
+ * [#2587](https://github.com/rollup/rollup/pull/2587): Support exports using destructuring declarations and assignments in SystemJS (@lukastaegert)
58
+ * [#2590](https://github.com/rollup/rollup/pull/2590): Make sure chunk ids do not contain invalid characters to allow for chunks to correspond to virtual modules (@lukastaegert)
59
+ * [#2594](https://github.com/rollup/rollup/pull/2594): Simplify UMD wrapper code and make sure it works in strict mode (@lukastaegert)
60
+ * [#2596](https://github.com/rollup/rollup/pull/2596): Take both static and dynamic dependencies into account when calculating hashes (@lukastaegert)
61
+
62
+ ## 0.67.4
63
+ *2018-12-03*
64
+
65
+ ### Bug Fixes
66
+ * Prevent corrupt source maps for files with very long lines (#2571)
67
+
68
+ ### Pull Requests
69
+ * [#2571](https://github.com/rollup/rollup/pull/2571): Fix an issue with long lines in sourcemaps (@mislav)
70
+
3
71
  ## 0.67.3
4
72
  *2018-11-17*
5
- * Show proper error when using `inlineDynamicImports` with `experimentalPreserveModules` ([#2560](https://github.com/rollup/rollup/pull/2560))
6
- * Properly include ESM browser build in package ([#2552](https://github.com/rollup/rollup/pull/2552))
73
+
74
+ ### Bug Fixes
75
+ * Make sure the ESM browser build is actually published to npm (#2560)
76
+ * Throw proper error when using `inlineDynamicImports` with `experimentalPreserveModules` (#2560)
77
+
78
+ ### Pull Requests
79
+ * [#2552](https://github.com/rollup/rollup/pull/2552): Properly include ESM browser build in package (@lukastaegert)
80
+ * [#2560](https://github.com/rollup/rollup/pull/2560): Show proper error when using `inlineDynamicImports` with `experimentalPreserveModules` (@clarkdo)
7
81
 
8
82
  ## 0.67.2
9
83
  *2018-11-17*
10
- * Prevent crash when not returning sourcemaps from `renderChunk` ([#2588](https://github.com/rollup/rollup/pull/2588))
84
+
85
+ ### Bug Fixes
86
+ * Prevent crash when not returning sourcemaps from `renderChunk` plugin hook (#2558)
87
+
88
+ ### Pull Requests
89
+ * [#2558](https://github.com/rollup/rollup/pull/2558): Prevent crash when not returning sourcemaps from `renderChunk` (@kyle1320)
11
90
 
12
91
  ## 0.67.1
13
92
  *2018-11-11*
14
- * Deconflict CLI entry points with same name but on different paths if no explicit naming is used ([#2548](https://github.com/rollup/rollup/pull/2548))
93
+
94
+ ### Bug Fixes
95
+ * Deconflict CLI entry points with same name but on different paths if no explicit naming is used (#2548)
96
+
97
+ ### Pull Requests
98
+ * [#2548](https://github.com/rollup/rollup/pull/2548): Deconflict CLI entry points with same name but on different paths if no explicit naming is used (@lukastaegert)
15
99
 
16
100
  ## 0.67.0
17
101
  *2018-11-04*
18
- * add `sourcemapExcludeSources` option to exclude the source content from sourcemaps ([#2531](https://github.com/rollup/rollup/pull/2531))
19
- * Create chunks for virtual modules when preserving modules ([#2511](https://github.com/rollup/rollup/pull/2511))
20
- * Improve execution order of chunks and externals ([#2508](https://github.com/rollup/rollup/pull/2508))
21
- * Do not resolve external dynamic imports via plugins ([#2505](https://github.com/rollup/rollup/pull/2505))
22
- * Do not tree-shake children of unknown nodes to e.g. properly handle do-expressions via acorn plugin ([#2510](https://github.com/rollup/rollup/pull/2510))
23
- * Fix mis-placed semicolons for certain SystemJS exports ([#2529](https://github.com/rollup/rollup/pull/2529))
24
- * Prevent memory leak when using the bundle as cache ([#2522](https://github.com/rollup/rollup/pull/2522))
25
- * Fix public sourcemap type ([#2507](https://github.com/rollup/rollup/pull/2507))
102
+
103
+ ### Breaking Changes
104
+ none
105
+
106
+ ### Features
107
+ * Do not resolve external dynamic imports via plugins to match the logic for static external imports again (#2505)
108
+ * Support virtual modules created by plugins when preserving modules (#2511)
109
+ * Add new `output.sourcemapExcludeSources` option to exclude the actual sources from sourcemaps (#2531)
110
+
111
+ ### Bug Fixes
112
+ * Fix TypeScript type for sourcemaps (#2507)
113
+ * Fix order of external and inter-chunk imports to match the proper execution order (#2508)
114
+ * Do not tree-shake children of unknown nodes to e.g. properly handle do-expressions via acorn plugin (#2510)
115
+ * Prevent memory leak when using the bundle as cache (#2522)
116
+ * Fix mis-placed semicolons for certain SystemJS exports (#2529)
117
+
118
+ ### Pull Requests
119
+ * [#2505](https://github.com/rollup/rollup/pull/2505): Do not resolve external dynamic imports via plugins (@lukastaegert)
120
+ * [#2507](https://github.com/rollup/rollup/pull/2507): Fix public sourcemap type (@aMarCruz)
121
+ * [#2508](https://github.com/rollup/rollup/pull/2508): Improve execution order of chunks and externals (@lukastaegert)
122
+ * [#2510](https://github.com/rollup/rollup/pull/2510): Do not tree-shake children of unknown nodes to e.g. properly handle do-expressions via acorn plugin (@devsnek)
123
+ * [#2511](https://github.com/rollup/rollup/pull/2511): Create chunks for virtual modules when preserving modules (@lukastaegert)
124
+ * [#2522](https://github.com/rollup/rollup/pull/2522): Prevent memory leak when using the bundle as cache (@kyle1320)
125
+ * [#2529](https://github.com/rollup/rollup/pull/2529): Fix mis-placed semicolons for certain SystemJS exports (@kyle1320)
126
+ * [#2531](https://github.com/rollup/rollup/pull/2531): add `sourcemapExcludeSources` option to exclude the source content from sourcemaps (@kitsonk)
26
127
 
27
128
  ## 0.66.6
28
129
  *2018-10-10*
package/bin/rollup CHANGED
@@ -3,11 +3,11 @@
3
3
 
4
4
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
5
5
 
6
- var module$1 = _interopDefault(require('module'));
7
- var path = require('path');
8
- var path__default = _interopDefault(path);
9
6
  var fs = require('fs');
10
7
  var fs__default = _interopDefault(fs);
8
+ var path = require('path');
9
+ var path__default = _interopDefault(path);
10
+ var module$1 = _interopDefault(require('module'));
11
11
  var rollup = require('../dist/rollup.js');
12
12
  var rollup__default = _interopDefault(rollup);
13
13
  var assert = _interopDefault(require('assert'));
@@ -251,7 +251,7 @@ function isNumber (x) {
251
251
  return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
252
252
  }
253
253
 
254
- var version = "0.67.3";
254
+ var version = "0.68.2";
255
255
 
256
256
  /*! *****************************************************************************
257
257
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -520,7 +520,7 @@ function getInputOptions(config, command, defaultOnWarnHandler) {
520
520
  input: getOption('input'),
521
521
  manualChunks: getOption('manualChunks'),
522
522
  chunkGroupingSize: getOption('chunkGroupingSize', 5000),
523
- optimizeChunks: getOption('optimizeChunks'),
523
+ experimentalOptimizeChunks: getOption('experimentalOptimizeChunks'),
524
524
  moduleContext: config.moduleContext,
525
525
  onwarn: getOnWarn(config, command, defaultOnWarnHandler),
526
526
  perf: getOption('perf', false),