Commit Graph

101 Commits

Author SHA1 Message Date
Tobias Koppers 530e1fb172 Add matchResource feature (for loaders)
Match rules with custom resource name
Also use this name as rule.issuer or splitChunks test
Show nicely in stats
2018-06-01 15:37:17 +02:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
moondef 25c7b07ef3 Fix link 2018-05-24 17:05:56 +03:00
Florent Cailhol 8df9f5f1f5 Use a WeakMap instead of mutating objects 2018-05-22 19:06:30 +02:00
Florent Cailhol 5c8a4bb89f Unify Dependency#getExports result 2018-04-04 13:53:55 +02:00
Florent Cailhol b6042fb937 Prevent identToLoaderRequest to return 2 objects with different shapes 2018-04-04 13:41:56 +02:00
Florent Cailhol f1092ad516 Update prettier toolchain 2018-03-26 16:56:10 +02:00
Florent Cailhol 3983803d30 Destructure 'require' to improve readability 2018-03-22 12:05:58 +01:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Suguru Motegi 864e563173 replace Async with Neo-Async 2018-02-11 14:31:08 -08:00
Tobias Koppers 5c63d3cb43 move source generation into separate module
allow to pass a Generator to NormalModule
change NormalModule constructor to options object

🍆
2018-01-24 11:33:38 +01:00
Florent Cailhol d4811b0d37 Use for-of loops instead of forEach 2018-01-23 22:53:18 +01:00
Florent Cailhol 86e6edf1ab Refactor how source type is handled by the parser 2018-01-22 09:30:43 +01:00
Mihail Bodrov a403cbf3a9 Optimize regexp, getEntryPointsSize 2018-01-20 00:43:27 +03:00
Tobias Koppers cf1d7b8949 `-!` keeps post loader instead of pre loader
add more test cases
2017-12-30 19:34:14 +01:00
Florent Cailhol 202e399fff Do not use deprecated features of enhanced-resolve
- First argument of `Resolver#doResolve` is now a Hook
- Fourth argument of `Resolver#resolve` is now `resolveContext`. `callback` is the fifth.
2017-12-22 19:54:57 +01:00
Tobias Koppers 1172d842f7 Merge branch 'master' into next 2017-12-22 12:28:15 +01:00
Tim Kendrick b48d5d99f6 Maintain ident when chaining pitching loaders 2017-12-21 18:20:24 +00:00
Tobias Koppers 27d60f7dd6
Merge pull request #6126 from ooflorent/remove_plugin_calls
Remove more plugin calls
2017-12-15 13:42:38 +01:00
Florent Cailhol f737b26260 Remove some plugin calls 2017-12-14 14:42:49 +01:00
Tobias Koppers 5cbd6b20dd allow to set sideEffects from rules 2017-12-14 13:08:57 +01:00
Tobias Koppers a27ef326d5 Upgrade tapable in ModuleFactories 2017-11-28 09:54:24 +01:00
Tobias Koppers 5a4f0aca67 change imports of tapable to old version
prepare to migrate to new tapable version
2017-11-27 20:56:42 +01:00
Tobias Koppers 5e39ec46ee Allow to override resolve configuration 2017-11-18 08:12:35 +01:00
Tobias Koppers 00f2b5ede7 advanced module type refactoring
added json type
.mjs default to javascript/esm type
adjusted parser plugins to react on module type
2017-11-11 19:27:19 +01:00
Tobias Koppers 0ae5fede3d move parser creation into separate plugins 2017-11-10 11:36:46 +01:00
Tobias Koppers 41a1d602e1 added WebAssembly Proof of Concept 2017-11-10 09:17:11 +01:00
Tobias Koppers f7c2f8e470 Update code style to arrow functions 2017-11-08 11:56:01 +01:00
Tobias Koppers 794b883f0a Merge branch 'next' into deprecation/webpack-3 2017-09-22 14:30:04 +02:00
Tobias Koppers 7ceac63f07 add support for pure modules 2017-09-14 09:44:42 +02:00
Tobias Koppers 4105297de6 Merge branch 'next' into deprecation/webpack-3 2017-09-11 11:26:44 +02:00
Tobias Koppers 874fac5337 tapable update and performance 2017-08-08 09:44:10 +02:00
Tobias Koppers 45301b7dc6 rewrite code to no longer require `beautify preserve` 2017-07-24 11:54:58 +02:00
Tobias Koppers 9cf6d51df6 disallow module.loaders 2017-06-14 14:42:31 +02:00
SendilKumar N cd688f84da changing async to asyncLib 2017-04-05 21:06:23 +08:00
Sergey Melyukov 3ebcf71e8e let to const in NormalModuleFactory 2017-04-04 11:27:36 +03:00
Sergey Melyukov 7c4883c103 ES6 refactoring in NormalModuleFactory 2017-04-04 00:28:08 +03:00
Tobias Koppers 584f4da4a3 Merge pull request #4500 from timse/make-ignored-relative
Make ignored relative
2017-04-03 17:00:15 +02:00
Jan-André Zinser 983904cfa3 Provide context to resolve again
Brings the old behaviour back that was removed in da29d21ae4
2017-04-02 20:48:39 +02:00
Tim Sebastian ce5e3e1e8d remove unused path from normalmodulefactory 2017-03-23 21:48:13 +11:00
Tim Sebastian 62229f5302 make path ignored before it goes to records, prevent to have to do it in NMF 2017-03-23 00:05:15 +11:00
Tim Sebastian 8165522e81 add formatting 2017-03-18 00:35:05 +11:00
James Tautges a368ed1f8c Use relative instead of resolve 2017-03-17 21:33:31 +11:00
James Tautges a4cf604a4a Relativize ignore module paths 2017-03-17 21:33:31 +11:00
Tobias Koppers 479a0a4b7b Merge pull request #4189 from webpack/feature/child-plugins
child compiler features
2017-02-22 15:01:08 +01:00
Tobias Koppers fbf84d51f2 allow to apply plugins to child compiler
allow to match on compiler name in rules

#4177
2017-02-22 11:49:49 +01:00
Tobias Koppers ed8acd4bb9 change way how resourceResolveData is passed 2017-02-21 09:34:07 +01:00
Jason Quense df71a073b5 rename property; lint issue 2017-02-20 11:48:48 -05:00
Jason Quense 3215e2ccde fix tests 2017-02-20 11:09:20 -05:00
Jason Quense 9afd2897a5 Add resolver result to module callback 2017-02-20 10:22:17 -05:00