Commit Graph

4283 Commits

Author SHA1 Message Date
Tobias Koppers 7c37a6a972 handle runtime requirements 2018-11-29 16:07:17 +01:00
Tobias Koppers 2525c8b7aa move runtime requirements storage into ChunkGraph
use info for function generation
for noParse default to module and exports requirements
2018-11-29 16:06:44 +01:00
Tobias Koppers c1e89c0543 Runtime requirement support in NormalModule, Generators and DependencyTemplate 2018-11-29 16:06:12 +01:00
Tobias Koppers 507c2a85ce merge ExtendedAPIPlugin into APIPlugin 2018-11-29 16:05:39 +01:00
Tobias Koppers 48958dedd3 convert __webpack_hash__ to runtime module 2018-11-29 16:04:39 +01:00
Tobias Koppers 004a5f6fb4 converted __webpack_chunk_name__ into a runtime module 2018-11-29 16:04:07 +01:00
Tobias Koppers 0232674f9c Initial runtime module work 2018-11-29 16:03:32 +01:00
Tobias Koppers d5479d8fa7 move reserved names to top of module 2018-11-29 16:01:37 +01:00
Tobias Koppers 126b8d752c
Merge pull request #8420 from webpack/refactor/remove_tapable_context
Remove context usage in ProgressPlugin
2018-11-29 15:49:47 +01:00
Tobias Koppers 5fb6c5ea18
Merge pull request #8418 from webpack/types/misc
Preliminary work before typing the parsers
2018-11-29 15:48:56 +01:00
Tobias Koppers fa87116ea1 Merge tag 'v4.26.1' into next
4.26.1
2018-11-29 14:51:27 +01:00
Florent Cailhol 15997e2324 Remove context usage in ProgressPlugin 2018-11-27 08:58:43 +01:00
Florent Cailhol cc739eb83a Minor optimizations 2018-11-26 16:26:18 +01:00
Florent Cailhol d35c2159e9 Make tooling happy 2018-11-25 21:29:48 +01:00
Florent Cailhol 57ca3f5fa3 Type internal data structures 2018-11-25 21:12:28 +01:00
Tobias Koppers cbeaf70dfd prevent groups with size < minSize
fixes #8407
2018-11-25 11:41:30 +01:00
Tobias Koppers 32961f2aac while grouping nodes include at least one node on each side
fixes #8407
2018-11-24 08:01:59 +01:00
Florent Cailhol 101b0ebb0f Add typings for JSON parser & deps 2018-11-23 21:52:05 +01:00
Florent Cailhol 66dd4f992a Add missing typings 2018-11-23 21:50:26 +01:00
Tobias Koppers fd2133bc5b handle case when minSize > maxSize
fixes #8407
2018-11-23 09:01:53 +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
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 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 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
Florent Cailhol 9ffb4e45dc Replace Source#emitted by a WeakSet 2018-11-08 23:26:31 +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
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 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 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
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 cf76e1c0e2
Merge pull request #8333 from webpack/bugfix/follow-up-8109
minor fixes for #8109
2018-11-05 10:35:57 +01:00