Commit Graph

7903 Commits

Author SHA1 Message Date
Tobias Koppers dcea8f086b Merge tag 'v4.26.0' into next
4.26.0
2018-11-29 14:49:27 +01:00
Tobias Koppers 1ba01f1f31
Merge pull request #8349 from webpack/types/modules
Add types on module files
2018-11-21 11:19:20 +01:00
Tobias Koppers 04f90c53ee 4.26.0 2018-11-19 09:39:41 +01:00
Tobias Koppers e1df721fd7
Merge pull request #8392 from vkrol/cherry-pick-terser-to-webpack-4
Cherry-pick terser to webpack 4
2018-11-19 09:24:47 +01:00
Tobias Koppers 9109988d1c
Merge pull request #8388 from webpack/refactor/init-fragments
Refactor getInitFragments
2018-11-19 09:16:20 +01:00
Tobias Koppers a818deff0f fix for changed API in terser plugin warningsFilter 2018-11-18 23:03:53 +03:00
Ed Morley b39abf49de Rename test directories too 2018-11-18 23:03:38 +03:00
Ed Morley 311a7285d3 Switch from uglifyjs-webpack-plugin to terser-webpack-plugin
Some history:
* `uglifyjs-webpack-plugin` < v1.0 used the minifier `uglify-js`
* however `uglify-js` does not support ES6, which resulted in a fork
  called `uglify-es` that was developed in the `uglify-js` repository,
  but under the `harmony` branch
* `uglifyjs-webpack-plugin` v1.x switched to `uglify-es` for ES6 support
* however `uglify-es` stopped being maintained:
  https://github.com/mishoo/UglifyJS2/issues/3156#issuecomment-392943058
* which led to a fork called `terser` that has incorporated all of
  the unmerged PRs and will be where all new development occurs:
  https://github.com/fabiosantoscode/terser
* `terser-webpack-plugin` was created, which is the `terser` equivalent
  of `uglifyjs-webpack-plugin`:
  https://github.com/webpack-contrib/terser-webpack-plugin
* `uglifyjs-webpack-plugin` v2.x will be switching back to `uglify-js`,
  so any project that needs to support ES6 now needs to switch to
  `terser-webpack-plugin`.

Fixes #7923.
2018-11-18 22:56:10 +03:00
Tobias Koppers e84115af9b add missing import 2018-11-18 13:26:15 +01:00
Tobias Koppers 96e3d0c058 fix typo 2018-11-18 12:37:08 +01:00
Tobias Koppers a8a6736598 increased timeout 2018-11-18 12:36:54 +01:00
Tobias Koppers 350894ae9e add missing jsdoc comment 2018-11-18 12:36:22 +01:00
Tobias Koppers 722bd25d07 fix bug, which prevented auto accept of harmony dependencies 2018-11-18 11:50:21 +01:00
Tobias Koppers dda3c03b8d Refactor getInitFragments to a property in templateContext and apply method
Having only a single method in DependencyTemplate makes it easier to override
2018-11-16 16:40:03 +01:00
Tobias Koppers 23b335d902
Merge branch 'next' into types/modules 2018-11-16 14:40:11 +01:00
Tobias Koppers 9632479783
Merge pull request #8358 from webpack/types/more-types
Type 'apply' method of plugins
2018-11-16 14:38:24 +01:00
Tobias Koppers a2301484a5
Merge pull request #8351 from DeTeam/chunk-jsdoc-typo
Fix a typo in Chunk#split jsdoc comment
2018-11-14 13:17:44 +01:00
Tobias Koppers 9410954ed1
change TODO to webpack 6 2018-11-14 13:14:05 +01:00
Tobias Koppers c89c9a7dc5 add backwards-compat hook for normalModuleLoader 2018-11-13 17:55:42 +01:00
Florent Cailhol 3157f5dfb4 Add hook map types 2018-11-12 14:26:33 +01:00
Florent Cailhol 3766869c48 Move normalModuleLoader hook 2018-11-12 14:26:32 +01:00
Florent Cailhol 23bd3d7bd4 Add type guard for NormalModule 2018-11-12 14:26:32 +01:00
Florent Cailhol caefde17ab Remove devtoolLineToLine and lineToLine options 2018-11-12 14:26:31 +01:00
Florent Cailhol 8a10ea3c92 Type 'apply' method of plugins 2018-11-12 14:26:31 +01:00
Tobias Koppers 63e15dac11
Merge pull request #8359 from webpack/types/bump-ts
Update TypeScript and fix raised errors
2018-11-11 12:10:14 +01:00
Tobias Koppers 8b6df2df8a
Merge pull request #8357 from webpack/types/perf-plugin
Add types to SizeLimitsPlugin
2018-11-11 12:08:52 +01:00
Florent Cailhol 792cc90470 Bump TypeScript and Node.js typings 2018-11-08 23:27:03 +01:00
Florent Cailhol 9ffb4e45dc Replace Source#emitted by a WeakSet 2018-11-08 23:26:31 +01:00
Florent Cailhol c9ebb6e8dc Set exitCode only once 2018-11-08 23:25:48 +01:00
Florent Cailhol aa9586a76c Add types to SizeLimitsPlugin 2018-11-08 22:13:56 +01:00
Tobias Koppers 59250743ba
fix message update in ModuleRestoreError 2018-11-08 18:08:12 +01:00
Tobias Koppers c6909b5744
Merge pull request #8347 from webpack/types/chunks
Add missing types on chunk related classes
2018-11-08 18:03:15 +01:00
Timur Amirov 7a0af76dac Fix a typo in Chunk#split jsdoc comment 2018-11-07 22:07:51 +01:00
Florent Cailhol 63c9a87af0 Remove unused method from ChunkGroup 2018-11-07 16:17:05 +01:00
Florent Cailhol de41d1fe8b Add missing types on Chunk related classes 2018-11-07 14:10:57 +01:00
Florent Cailhol be8c6bbe71 Add types on module files 2018-11-07 14:03:25 +01:00
Tobias Koppers 4178b18196 Merge tag 'v4.25.1' into next
4.25.1
2018-11-05 19:54:56 +01:00
Tobias Koppers 2361995a42 4.25.1 2018-11-05 19:12:52 +01:00
Tobias Koppers ad6847ce17
Merge pull request #8336 from webpack/feature/progress-use-queue
show module count earlier when they are added to the queue
2018-11-05 18:23:58 +01:00
Tobias Koppers e2a20160df
Merge pull request #8338 from webpack/bugfix/issue-8293
Bugfix for #8293
2018-11-05 18:23:31 +01:00
Tobias Koppers 450e44dff7
Merge pull request #8339 from webpack/feature/runtime-globals
refactor properties on __webpack_require__
2018-11-05 18:23:06 +01:00
Tobias Koppers eb28697419 move magic property names on __webpack_require__ into RuntimeGlobals file 2018-11-05 15:28:34 +01:00
Tobias Koppers babe736cfa replace prefix/postfix even when equal for wrapped context
walk inner expressions in wrapped context
add tracking of inner expressions in wrapped BasicEvaluatedExpression
fixes #8293
closes ##8337
2018-11-05 15:17:56 +01:00
Franck Freiburger dcd0d59d62 test for #8293 2018-11-05 14:02:00 +01:00
Tobias Koppers 4f813e28a9 remove customizability of __webpack_require__ function name 2018-11-05 13:13:05 +01:00
Tobias Koppers d197b6664a show module count earlier when they are added to the queue 2018-11-05 11:07:35 +01:00
Tobias Koppers af123a81ee
Merge pull request #8334 from webpack/bugfix/lint
move azure specific commands to azure-pipelines.yml
2018-11-05 10:37:39 +01:00
Tobias Koppers cf76e1c0e2
Merge pull request #8333 from webpack/bugfix/follow-up-8109
minor fixes for #8109
2018-11-05 10:35:57 +01:00
Tobias Koppers 86535693f1 Partial update of #8294, compat layer is no longer needed 2018-11-05 10:28:56 +01:00
Tobias Koppers 6e64480e9d Partial revert of #8250 as this is no longer a limitation 2018-11-05 10:28:51 +01:00