1 | # rollup-plugin-commonjs changelog
|
2 |
|
3 | ## 9.1.8
|
4 | *2018-09-18*
|
5 | * Ignore virtual modules created by other plugins ([#327](https://github.com/rollup/rollup-plugin-commonjs/issues/327))
|
6 | * Add "location" and "process" to reserved words ([#330](https://github.com/rollup/rollup-plugin-commonjs/issues/330))
|
7 |
|
8 | ## 9.1.6
|
9 | *2018-08-24*
|
10 | * Keep commonJS detection between instantiations ([#338](https://github.com/rollup/rollup-plugin-commonjs/issues/338))
|
11 |
|
12 | ## 9.1.5
|
13 | *2018-08-09*
|
14 | * Handle object form of input ([#329](https://github.com/rollup/rollup-plugin-commonjs/issues/329))
|
15 |
|
16 | ## 9.1.4
|
17 | *2018-07-27*
|
18 | * Make "from" a reserved word ([#320](https://github.com/rollup/rollup-plugin-commonjs/issues/320))
|
19 |
|
20 | ## 9.1.3
|
21 | *2018-04-30*
|
22 | * Fix a caching issue ([#316](https://github.com/rollup/rollup-plugin-commonjs/issues/316))
|
23 |
|
24 | ## 9.1.2
|
25 | *2018-04-30*
|
26 | * Re-publication of 9.1.0
|
27 |
|
28 | ## 9.1.1
|
29 | *2018-04-30*
|
30 | * Fix ordering of modules when using rollup 0.58 ([#302](https://github.com/rollup/rollup-plugin-commonjs/issues/302))
|
31 |
|
32 | ## 9.1.0
|
33 |
|
34 | * Do not automatically wrap modules with return statements in top level arrow functions ([#302](https://github.com/rollup/rollup-plugin-commonjs/issues/302))
|
35 |
|
36 | ## 9.0.0
|
37 |
|
38 | * Make rollup a peer dependency with a version range ([#300](https://github.com/rollup/rollup-plugin-commonjs/issues/300))
|
39 |
|
40 | ## 8.4.1
|
41 |
|
42 | * Re-release of 8.3.0 as #287 was actually a breaking change
|
43 |
|
44 | ## 8.4.0
|
45 |
|
46 | * Better handle non-CJS files that contain CJS keywords ([#285](https://github.com/rollup/rollup-plugin-commonjs/issues/285))
|
47 | * Use rollup's plugin context`parse` function ([#287](https://github.com/rollup/rollup-plugin-commonjs/issues/287))
|
48 | * Improve error handling ([#288](https://github.com/rollup/rollup-plugin-commonjs/issues/288))
|
49 |
|
50 | ## 8.3.0
|
51 |
|
52 | * Handle multiple entry points ([#283](https://github.com/rollup/rollup-plugin-commonjs/issues/283))
|
53 | * Extract named exports from exported object literals ([#272](https://github.com/rollup/rollup-plugin-commonjs/issues/272))
|
54 | * Fix when `options.external` is modified by other plugins ([#264](https://github.com/rollup/rollup-plugin-commonjs/issues/264))
|
55 | * Recognize static template strings in require statements ([#271](https://github.com/rollup/rollup-plugin-commonjs/issues/271))
|
56 |
|
57 | ## 8.2.4
|
58 |
|
59 | * Don't import default from ES modules that don't export default ([#206](https://github.com/rollup/rollup-plugin-commonjs/issues/206))
|
60 |
|
61 | ## 8.2.3
|
62 |
|
63 | * Prevent duplicate default exports ([#230](https://github.com/rollup/rollup-plugin-commonjs/pull/230))
|
64 | * Only include default export when it exists ([#226](https://github.com/rollup/rollup-plugin-commonjs/pull/226))
|
65 | * Deconflict `require` aliases ([#232](https://github.com/rollup/rollup-plugin-commonjs/issues/232))
|
66 |
|
67 | ## 8.2.1
|
68 |
|
69 | * Fix magic-string deprecation warning
|
70 |
|
71 | ## 8.2.0
|
72 |
|
73 | * Avoid using `index` as a variable name ([#208](https://github.com/rollup/rollup-plugin-commonjs/pull/208))
|
74 |
|
75 | ## 8.1.1
|
76 |
|
77 | * Compatibility with 0.48 ([#220](https://github.com/rollup/rollup-plugin-commonjs/issues/220))
|
78 |
|
79 | ## 8.1.0
|
80 |
|
81 | * Handle `options.external` correctly ([#212](https://github.com/rollup/rollup-plugin-commonjs/pull/212))
|
82 | * Support top-level return ([#195](https://github.com/rollup/rollup-plugin-commonjs/pull/195))
|
83 |
|
84 | ## 8.0.2
|
85 |
|
86 | * Fix another `var` rewrite bug ([#181](https://github.com/rollup/rollup-plugin-commonjs/issues/181))
|
87 |
|
88 | ## 8.0.1
|
89 |
|
90 | * Remove declarators within a var declaration correctly ([#179](https://github.com/rollup/rollup-plugin-commonjs/issues/179))
|
91 |
|
92 | ## 8.0.0
|
93 |
|
94 | * Prefer the names dependencies are imported by for the common `var foo = require('foo')` pattern ([#176](https://github.com/rollup/rollup-plugin-commonjs/issues/176))
|
95 |
|
96 | ## 7.1.0
|
97 |
|
98 | * Allow certain `require` statements to pass through unmolested ([#174](https://github.com/rollup/rollup-plugin-commonjs/issues/174))
|
99 |
|
100 | ## 7.0.2
|
101 |
|
102 | * Handle duplicate default exports ([#158](https://github.com/rollup/rollup-plugin-commonjs/issues/158))
|
103 |
|
104 | ## 7.0.1
|
105 |
|
106 | * Fix exports with parentheses ([#168](https://github.com/rollup/rollup-plugin-commonjs/issues/168))
|
107 |
|
108 | ## 7.0.0
|
109 |
|
110 | * Rewrite `typeof module`, `typeof module.exports` and `typeof exports` as `'object'` ([#151](https://github.com/rollup/rollup-plugin-commonjs/issues/151))
|
111 |
|
112 | ## 6.0.1
|
113 |
|
114 | * Don't overwrite globals ([#127](https://github.com/rollup/rollup-plugin-commonjs/issues/127))
|
115 |
|
116 | ## 6.0.0
|
117 |
|
118 | * Rewrite top-level `define` as `undefined`, so AMD-first UMD blocks do not cause breakage ([#144](https://github.com/rollup/rollup-plugin-commonjs/issues/144))
|
119 | * Support ES2017 syntax ([#132](https://github.com/rollup/rollup-plugin-commonjs/issues/132))
|
120 | * Deconflict exported reserved keywords ([#116](https://github.com/rollup/rollup-plugin-commonjs/issues/116))
|
121 |
|
122 | ## 5.0.5
|
123 | * Fix parenthesis wrapped exports ([#120](https://github.com/rollup/rollup-plugin-commonjs/issues/120))
|
124 |
|
125 | ## 5.0.4
|
126 |
|
127 | * Ensure named exports are added to default export in optimised modules ([#112](https://github.com/rollup/rollup-plugin-commonjs/issues/112))
|
128 |
|
129 | ## 5.0.3
|
130 |
|
131 | * Respect custom `namedExports` in optimised modules ([#35](https://github.com/rollup/rollup-plugin-commonjs/issues/35))
|
132 |
|
133 | ## 5.0.2
|
134 |
|
135 | * Replace `require` (outside call expressions) with `commonjsRequire` helper ([#77](https://github.com/rollup/rollup-plugin-commonjs/issues/77), [#83](https://github.com/rollup/rollup-plugin-commonjs/issues/83))
|
136 |
|
137 | ## 5.0.1
|
138 |
|
139 | * Deconflict against globals ([#84](https://github.com/rollup/rollup-plugin-commonjs/issues/84))
|
140 |
|
141 | ## 5.0.0
|
142 |
|
143 | * Optimise modules that don't need to be wrapped in a function ([#106](https://github.com/rollup/rollup-plugin-commonjs/pull/106))
|
144 | * Ignore modules containing `import` and `export` statements ([#96](https://github.com/rollup/rollup-plugin-commonjs/pull/96))
|
145 |
|
146 | ## 4.1.0
|
147 |
|
148 | * Ignore dead branches ([#93](https://github.com/rollup/rollup-plugin-commonjs/issues/93))
|
149 |
|
150 | ## 4.0.1
|
151 |
|
152 | * Fix `ignoreGlobal` option ([#86](https://github.com/rollup/rollup-plugin-commonjs/pull/86))
|
153 |
|
154 | ## 4.0.0
|
155 |
|
156 | * Better interop and smaller output ([#92](https://github.com/rollup/rollup-plugin-commonjs/pull/92))
|
157 |
|
158 | ## 3.3.1
|
159 |
|
160 | * Deconflict export and local module ([rollup/rollup#554](https://github.com/rollup/rollup/issues/554))
|
161 |
|
162 | ## 3.3.0
|
163 |
|
164 | * Keep the order of execution for require calls ([#43](https://github.com/rollup/rollup-plugin-commonjs/pull/43))
|
165 | * Use interopDefault as helper ([#42](https://github.com/rollup/rollup-plugin-commonjs/issues/42))
|
166 |
|
167 | ## 3.2.0
|
168 |
|
169 | * Use named exports as a function when no default export is defined ([#524](https://github.com/rollup/rollup/issues/524))
|
170 |
|
171 | ## 3.1.0
|
172 |
|
173 | * Replace `typeof require` with `'function'` ([#38](https://github.com/rollup/rollup-plugin-commonjs/issues/38))
|
174 | * Don't attempt to resolve entry file relative to importer ([#63](https://github.com/rollup/rollup-plugin-commonjs/issues/63))
|
175 |
|
176 | ## 3.0.2
|
177 |
|
178 | * Handle multiple references to `global`
|
179 |
|
180 | ## 3.0.1
|
181 |
|
182 | * Return a `name`
|
183 |
|
184 | ## 3.0.0
|
185 |
|
186 | * Make `transform` stateless ([#71](https://github.com/rollup/rollup-plugin-commonjs/pull/71))
|
187 | * Support web worker `global` ([#50](https://github.com/rollup/rollup-plugin-commonjs/issues/50))
|
188 | * Ignore global with `options.ignoreGlobal` ([#48](https://github.com/rollup/rollup-plugin-commonjs/issues/48))
|
189 |
|
190 | ## 2.2.1
|
191 |
|
192 | * Prevent false positives with `namedExports` ([#36](https://github.com/rollup/rollup-plugin-commonjs/issues/36))
|
193 |
|
194 | ## 2.2.0
|
195 |
|
196 | * Rewrite top-level `this` expressions to mean the same as `global` ([#31](https://github.com/rollup/rollup-plugin-commonjs/issues/31))
|
197 |
|
198 | ## 2.1.0
|
199 |
|
200 | * Optimised module wrappers ([#20](https://github.com/rollup/rollup-plugin-commonjs/pull/20))
|
201 | * Allow control over named exports via `options.namedExports` ([#18](https://github.com/rollup/rollup-plugin-commonjs/issues/18))
|
202 | * Handle bare imports correctly ([#23](https://github.com/rollup/rollup-plugin-commonjs/issues/23))
|
203 | * Blacklist all reserved words as export names ([#21](https://github.com/rollup/rollup-plugin-commonjs/issues/21))
|
204 | * Configure allowed file extensions via `options.extensions` ([#27](https://github.com/rollup/rollup-plugin-commonjs/pull/27))
|
205 |
|
206 | ## 2.0.0
|
207 |
|
208 | * Support for transpiled modules – `exports.default` is used as the default export in place of `module.exports`, if applicable, and `__esModule` is not exported ([#16](https://github.com/rollup/rollup-plugin-commonjs/pull/16))
|
209 |
|
210 | ## 1.4.0
|
211 |
|
212 | * Generate sourcemaps by default
|
213 |
|
214 | ## 1.3.0
|
215 |
|
216 | * Handle references to `global` ([#6](https://github.com/rollup/rollup-plugin-commonjs/issues/6))
|
217 |
|
218 | ## 1.2.0
|
219 |
|
220 | * Generate named exports where possible ([#5](https://github.com/rollup/rollup-plugin-commonjs/issues/5))
|
221 | * Handle shadowed `require`/`module`/`exports`
|
222 |
|
223 | ## 1.1.0
|
224 |
|
225 | * Handle dots in filenames ([#3](https://github.com/rollup/rollup-plugin-commonjs/issues/3))
|
226 | * Wrap modules in IIFE for more readable output
|
227 |
|
228 | ## 1.0.0
|
229 |
|
230 | * Stable release, now that Rollup supports plugins
|
231 |
|
232 | ## 0.2.1
|
233 |
|
234 | * Allow mixed CommonJS/ES6 imports/exports
|
235 | * Use `var` instead of `let`
|
236 |
|
237 | ## 0.2.0
|
238 |
|
239 | * Sourcemap support
|
240 | * Support `options.include` and `options.exclude`
|
241 | * Bail early if module is obviously not a CommonJS module
|
242 |
|
243 | ## 0.1.1
|
244 |
|
245 | Add dist files to package (whoops!)
|
246 |
|
247 | ## 0.1.0
|
248 |
|
249 | * First release
|