Tobias Koppers
f68c1f7ab6
add additional arguments to updateHash
2018-08-02 16:04:10 +02:00
Florent Cailhol
367b02a0f0
Use RuntimeTemplate to generate error code
2018-07-31 09:01:06 +02:00
Tobias Koppers
cf5f1d723c
format existing code
2018-07-30 21:29:21 +02:00
Tobias Koppers
22c4756c9e
add more types to Module
2018-07-25 12:38:34 +02:00
Tobias Koppers
bc10939096
add types for Module and subclasses
...
better way to handle "optional" methods
2018-07-25 12:12:17 +02:00
Tobias Koppers
8614c75f11
run inherit types tool on existing code
2018-07-21 13:50:18 +02:00
Sean Larkin
c3ebef7f25
Merge branch 'master' into feature/type-compiler-compilation-save
2018-06-21 11:07:33 +03:00
Tobias Koppers
b4699c0657
add order for DependencyReference
...
and add types for touched code
2018-06-08 13:20:57 +02:00
Tobias Koppers
3072378892
bugfixes and corrections
2018-05-15 15:04:40 +02:00
Sean Larkin
761d73b4e7
chore(types): add Compiler and Compilation type support
2018-05-15 15:04:38 +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
Florent Cailhol
63b4523a15
Pass 'context' as constructor argument
2018-01-30 21:40:44 +01:00
Tobias Koppers
2aac6badd5
move generated runtime code to RuntimeTemplate
2017-12-22 19:41:28 +01:00
Tobias Koppers
e829a5ed71
Reset dependencies in unbuild
...
Elsewise they are cleared in disconnect and module removing doesn't work correctly
2017-12-12 17:01:14 +01:00
Tobias Koppers
ffb977fed4
refactor meta -> buildMeta, add factoryMeta
...
add compat layer to Module.meta
2017-12-12 16:57:50 +01:00
Tobias Koppers
41a1d602e1
added WebAssembly Proof of Concept
2017-11-10 09:17:11 +01:00
Tobias Koppers
0339d4da49
Refactor weird things
...
* Declare used properties in constructor
* Module.(re)building moved into Compilation._(re)buildingModules (Map)
* Make NormalModule.error private
* Move Module.cacheable logic into needRebuild
* More stable implemention of rebuildModule
* addModuleChain waits for Module building finished before returning
* Set built and cacheable flags correctly in Modules
* More portableId into WeakMap
* Add ModuleReason for entrypoints
* cacheable can be true/false/null in Stats
* added Stats module issuerPath
* fixes profile in stats output
2017-11-06 13:16:09 +01:00
Thai Pangsakulyanont
4b284ac1b5
updateHash using this.type and this.request instead
...
this.request is JSON.stringified because otherwise an error will be thrown:
TypeError: Data must be a string or a buffer
This is because the target ID may be string or number.
2017-09-17 23:05:38 +07:00
Thai Pangsakulyanont
a0ddd55aa6
fix DelegatedModule does not updateHash with its parameters
...
fixes #5684
2017-09-16 03:00:45 +07:00
Tobias Koppers
9dbed7360d
integrate the delegated module better into the exports flagging process
2017-07-26 10:12:40 +02:00
Tobias Koppers
440b5df754
use original request as libIdent for delegated modules
...
add more tests
2017-07-25 13:41:37 +02:00
Matthew Meyer
8f26f9ebee
implementing review suggestions
2017-06-08 13:22:58 -07:00
Matthew Meyer
49d7fb6ae8
lint error
2017-05-18 13:07:04 -07:00
Matthew Meyer
728d49e6b6
code coverage fixes
2017-05-18 11:27:50 -07:00
Matthew Meyer
551c0a1ed9
PR Feedback, adding libIdent to DelegatedModules and ExternalModules, in addition to NormalModules, to support HashedModuleIdsPlugin to while assigning hash based IDs to Modules
2017-05-17 09:49:09 -07:00
Matthew Meyer
f48bc6cd0b
Expand HashedModuleIdsPlugin to assign hash based IDs to DelegatedModules in addition to NormalModules
2017-05-10 15:15:20 -07:00
J Huang
6afc397b99
perf: use Date.now() instead of new Date().getTime()
...
new Date().getTime() is 2x slower than Date.now(), see https://jsperf.com/new-date-vs-date-now-vs-performance-now/6
2017-05-04 10:19:54 +08:00
Tobias Koppers
fc65d29dda
add missing semicolon
2017-04-21 17:05:00 +02:00
David Gonzalez
ad3f3aabba
ES6 refactor of DelegatedModule
2017-03-26 17:19:42 -04:00
Tobias Koppers
8e69a80847
code linting
2017-01-11 12:29:01 +01:00
Tobias Koppers
da29d21ae4
performance improvements
...
breaking change: Module has now a "unbuild" method that must work correctly
2016-12-14 16:22:16 +01:00
Tobias Koppers
65b70bf5ed
finished refactory of tree shaking
...
changes format for dll manifest
#2953
fixes #2959
2016-09-07 09:44:53 +02:00
Tobias Koppers
b5d52d4505
changed lib manifest format to store harmony structure information
...
allow to use dll with harmony modules
fixes #2876
fixes #2857
2016-08-17 12:05:29 +02:00
e-cloud
13322ca35c
add missing constructors for all classes needed
...
As i walk through the source, i've tried to trace the webpack running stack.
Then, i find the missing constructors result in uncleasr stack and create a patch
for them.
2016-05-20 13:39:36 +08:00
Tobias Koppers
ce642eced6
reverted module.e to module.exports
...
because it causes issues with modules that define
exports on the module object
2016-04-21 23:50:40 +02:00
Tobias Koppers
902220a0ea
smaller bundles by using module.e instead of module.exports
...
same for module.loaded and module.id
2016-02-13 13:11:34 +01:00
Tobias Koppers
ded70aef28
moves stuff from webpack-core to webpack-sources
2015-12-29 17:44:55 +01:00
Tobias Koppers
f7d799adb4
rebeautify without spacing after keyword
2015-07-16 00:19:23 +02:00
Avi Haiat
0a340f2b1a
feat(app): Beautify all lib files
2015-07-13 01:20:09 +03:00
Tobias Koppers
355763ad58
added support for scoped dlls
2015-05-17 23:03:21 +02:00
Tobias Koppers
1d0cf82a1e
added experimental DelegatedModules
2015-05-13 00:17:06 +02:00