ahabhgk
de0e5987d4
fix: error for cyclic importModule
2024-01-23 17:32:50 +08:00
Ivan Kopeykin
2665fb118c
add baseUri entry option
2022-02-21 16:23:47 +03:00
Asriel Yu
136b723023
fix callback err type should include null
2021-12-24 20:27:31 +08:00
Tobias Koppers
60408e1136
add importModule to loader context by default
...
always enable experiments.executeModule and remove it
2021-09-02 16:27:39 +02:00
Tobias Koppers
8d3a230366
fix passing publicPath to `this.importModule`
2021-04-14 19:48:22 +02:00
Tobias Koppers
f46e816a38
add HMR test case and fix problems with it
2021-04-14 16:03:59 +02:00
Tobias Koppers
ea3e0a39ac
add experiments.executeModule
...
rename runModule -> executeModule
improve error reporting
2021-04-12 12:27:55 +02:00
Tobias Koppers
1d35cf13e3
fix cache dependencies, assets and persistent caching
2021-04-12 12:27:54 +02:00
Tobias Koppers
065177df66
add experimental support for build time execution
...
allow to execute a part of the module graph at build time
e. g. to generate code or other assets
loaders have access to that via `this.importModule(request, options)`
2021-04-12 12:27:54 +02:00
Felipe Caminada
83fcb3b0ba
Returning thrown error to prevent unhandled promise
...
Throwing error when loaded module has errors
Adding newline at the end of the index.js file
Changing test logic to address error on cached tests
2021-02-10 08:09:15 -08:00
Tobias Koppers
cee47dc867
Store cache dependencies inside of Snapshot to reduce cache size
2020-08-24 18:16:54 +02:00
Tobias Koppers
d16abb3294
detect cycles during this.loadModule from loader
...
fix #10152
2019-12-20 12:50:55 +01:00
Tobias Koppers
6db94536ad
Merge tag 'v4.34.0' into next
...
4.34.0
2019-06-13 10:51:12 +02:00
Tobias Koppers
fd4b3c503a
pretty files
2019-06-09 11:23:42 +02:00
Florent Cailhol
3766869c48
Move normalModuleLoader hook
2018-11-12 14:26:32 +01:00
Tobias Koppers
5b4cbb5ee0
add queues to Compilation
...
remove Semaphore and use AsyncQueue instead
deprecate Module.needRebuild, add Module.needBuild
remove Module.unbuild
add Module.invalidateBuild
2018-09-12 13:17:03 +02:00
Tobias Koppers
d48a331642
Split Compilation process in multiple methods
2018-09-12 13:17:02 +02:00
Tobias Koppers
b098789625
remove recursive flag
2018-09-12 13:17:00 +02:00
Tobias Koppers
381e2db200
replace Module.reasons and Dependency.module with ModuleGraph
2018-08-02 17:54:44 +02:00
Tobias Koppers
11e127d162
pass moduleGraph along with multiple methods
2018-08-02 17:54:42 +02:00
Tobias Koppers
cf5f1d723c
format existing code
2018-07-30 21:29:21 +02:00
Tobias Koppers
0052861178
remove unconsistency with Module._source and originalSource
2018-07-25 12:20:35 +02:00
Tobias Koppers
b93225a6a1
add types and fix incorrect loc type
...
fix formatLocation for types
2018-07-10 18:18:32 +02:00
Tobias Koppers
8ae803ba13
type fixes
2018-06-25 10:09:39 +02:00
Sean Larkin
968edbf77d
fix(types): fix errors and linting errors
2018-06-21 14:38:17 +03:00
Sean Larkin
1bae93852a
Merge branch 'master' into feature/type-compiler-compilation-save
2018-05-30 19:35:36 -07:00
Florent Cailhol
2a9452e51b
Add brackets for multiline if/for statements
2018-05-29 15:45:44 +02:00
Sean Larkin
761d73b4e7
chore(types): add Compiler and Compilation type support
2018-05-15 15:04:38 +02:00
bastimeyer
e1930c22a1
Fix LoaderPlugin not resolving recursively
2018-04-17 06:48:15 +02:00
Tobias Koppers
985e6fb001
fix race condition when using loadModule
...
change Semaphore to continue prefer acquire in the same tick
fixes #6836
fixes #6902
2018-04-12 15:54:35 +02:00
Tobias Koppers
5238159d21
run prettier on existing code
2018-02-25 02:00:20 +01:00
Florent Cailhol
d4811b0d37
Use for-of loops instead of forEach
2018-01-23 22:53:18 +01:00
Tobias Koppers
5b7645dbb7
bugfix in LoaderPlugin
2017-12-12 22:27:49 +01:00
Florent Cailhol
36c690d37f
Use tapable instead of 'plugin'
2017-12-08 14:23:31 +01:00
Tobias Koppers
4c4121b948
fix test and lint issues
2017-11-19 09:06:40 +01:00
Tobias Koppers
f7c2f8e470
Update code style to arrow functions
2017-11-08 11:56:01 +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
Shubheksha Jalan
14d48beb75
refactor(ES6): upgrade LoaderPlugin to ES6
2017-01-11 23:39:49 +05:30
Beau Roberts
37540b647e
Fixes issue #2299 ( #2300 )
...
Fixes an issue where multiple calls to loadModule from within a loader
would resolve modules using the context of the *last loaded module*
rather than the module *doing the loading*, which is problematic if the
modules being loaded are in different directories.
2016-04-09 15:33:26 +02: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
d3a7994e35
expose `loc` for every Dependency
2015-05-10 18:31:58 +02:00
Tobias Koppers
cebd3b9722
added linting
2015-04-23 23:55:50 +02:00
Tobias Koppers
92f53176a2
use sourceAndMap is available
2015-04-03 12:38:56 +02:00
Tobias Koppers
e62e3a2223
fixed race condition for loadModule
2013-10-29 14:14:16 +01:00
Tobias Koppers
b362c227b7
Add dependencies when using loadModule
2013-10-29 11:06:28 +01:00
Tobias Koppers
52b40b3798
allow loaders to load modules
...
fixed templates readable name
2013-10-28 16:21:29 +01:00