Florent Cailhol
5bc6b8d50e
Rename ParserHelpers into JavascriptParserHelpers
2018-07-03 14:08:43 +02:00
Florent Cailhol
6097c5f993
Destructure parser helpers
2018-07-03 14:08:43 +02:00
Florent Cailhol
2a9452e51b
Add brackets for multiline if/for statements
2018-05-29 15:45:44 +02:00
Tobias Koppers
f2e5c1e9e8
improve HotModuleReplacementPlugin performance
...
avoid unnessecary rehashing
2018-05-01 10:53:59 +02:00
Tobias Koppers
aee24915ae
Merge pull request #6962 from justinhelmer/bug/6919
...
hot.accept tap interceptor returns T/F based on the number of args
2018-04-17 11:11:31 +02:00
Justin Helmer
2a7fdc4f72
hot.accept tap interceptor returns T/F based on the number of args
...
addresses #6919
2018-04-16 09:23:22 -07:00
Mohsen Azimi
581d19ba88
actually const is fine
2018-04-11 16:04:52 -07:00
Mohsen Azimi
b203091d3f
s/const/let
2018-04-11 16:03:42 -07:00
Mohsen Azimi
1c761339f5
Avoid type mismatch assignment of number to string in HotModuleReplacementPlugin
2018-04-11 09:36:06 -07: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
Tobias Koppers
90ab23a7ab
Merge branch 'master' into fix/hmr-before-node-stuff
...
# Conflicts:
# lib/HotModuleReplacementPlugin.js
2018-02-24 13:18:19 +01:00
Florent Cailhol
bcbd878ac4
Fix indent
2018-01-24 10:11:53 +01:00
Tobias Koppers
7a1b357aad
Merge branch 'next' into for_of_loops
2018-01-24 09:01:31 +01:00
Florent Cailhol
d4811b0d37
Use for-of loops instead of forEach
2018-01-23 22:53:18 +01:00
Florent Cailhol
77bb4c0055
Deprecate forEach* and map* methods
2018-01-23 22:19:59 +01:00
Florent Cailhol
6192e5b413
Use hooks instead of applyPlugins
2018-01-22 15:23:52 +01:00
Tobias Koppers
18ae73dad4
Refactor chunk graph
...
Chunks are now always in ChunkGroups
ChunkGroups have parents and children, Chunks no longer have this
AsyncDependenciesBlocks point to a ChunkGroup instead of a list of chunks
Entrypoint is now a ChunkGroup (extends from it)
move stuff graph modification methods into GraphHelpers
Change chunk id recording to source-based
Chunks have parents, siblings and children in Stats
rename AutomaticCommonsChunksPlugin to SplitChunksPlugin
add request property to origin (ChunkGroup)
remove moveToParent from AggressiveMergingPlugin
fix issues with AggressiveSplittingPlugin
remove CommonsChunkPlugin
add optimization.runtimeChunk (RuntimeChunkPlugin)
fix a filename bug for initial chunks
remove extract-text-webpack-plugin from test suite
add DebugHash to help debugging hash issues
fix issues with entry modules in different chunk as runtime
redo optimization.splitChunks options
Compilation.entrypoints is now a Map
Compilation.chunkGroups has been added
remove some unittests
update examples
update tests with CommonsChunkPlugin
2018-01-19 19:21:30 +01:00
shellscape
8dd3307c08
ensures the HMRPlugin assigns module.hot before NodeStuffPlugin
2018-01-11 11:15:26 -05:00
Florent Cailhol
9f9e730ff3
Use for-of loops instead of forEachModule
2018-01-04 23:15:32 +01:00
Tobias Koppers
ceb95ffabf
add `this.hot` flag to loader context
...
fixes #5891
2018-01-03 16:55:46 +01:00
Florent Cailhol
9669c9e013
Use Parser#hooks instead of Tapable#plugin
2017-12-21 09:08:10 +01:00
Tobias Koppers
a1f889059d
Merge pull request #6136 from ooflorent/template_hooks
...
Use template hooks in plugins
2017-12-18 17:17:21 +01:00
Florent Cailhol
c8e60b4322
Update Parser helpers to be compatible with hooks
2017-12-15 17:08:49 +01:00
Florent Cailhol
3be3878d56
Use templates' Tapable#hooks
2017-12-15 15:16:57 +01:00
Florent Cailhol
08ddad2e10
Replace NormalModuleFactory#plugin() calls
2017-12-14 14:42:49 +01:00
Tobias Koppers
30c9dd05b0
remove `__webpack_require__` requirement from some ConstDependencies
...
fixes #5707
2017-12-13 11:14:00 +01:00
Tobias Koppers
86786811e4
Merge pull request #6085 from webpack/refactor/static-template
...
make all methods on Template static
2017-12-08 17:59:15 +01:00
Florent Cailhol
36c690d37f
Use tapable instead of 'plugin'
2017-12-08 14:23:31 +01:00
Tobias Koppers
16ee68b5f9
make all methods on Template static
2017-12-07 09:49:50 +01:00
Tobias Koppers
88ad7ed186
Merge branch 'refactoring/plugin-system-templates' into refactoring/plugin-system-all
2017-11-29 08:07:18 +01:00
Tobias Koppers
56328a7cab
upgrate tapable in Templates
2017-11-28 18:43:01 +01:00
Tobias Koppers
c10da6c285
upgrade tapable from Parser
2017-11-28 10:25:48 +01:00
Tobias Koppers
e208f44bea
Merge branch 'master' into next
...
# Conflicts:
# lib/Compiler.js
# lib/HotModuleReplacementPlugin.js
2017-11-24 07:42:07 +01:00
Tobias Koppers
991ec20881
fix increasing delay with multiStep HMR
2017-11-23 11:11:32 +01:00
Tobias Koppers
a0ef93f939
aggregate all crypto hash usages into util/createHash
...
try to avoid calling hash.update with short strings
2017-11-23 11:09:17 +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
65e855c636
fix deprecations
2017-11-11 11:27:02 +01:00
Tobias Koppers
f7c2f8e470
Update code style to arrow functions
2017-11-08 11:56:01 +01:00
Tobias Koppers
6bd937d768
make things consitent
2017-09-22 14:07:28 +02:00
Tobias Koppers
f6a0d51e6b
Merge branch 'master' into use-set-in-chunks
2017-07-18 09:32:53 +02:00
Kyle Truong
5202091ff8
- Undo previous commit because beautify error
2017-07-01 12:55:45 -04:00
Kyle Truong
be13bf9c7b
- Fix ES6 refactoring lib/HotModuleReplacementPlugin according to codacy coding quality review
2017-07-01 12:27:17 -04:00
Kyle Truong
c3d8fdffc8
- Fix bug while refactoring HotModuleReplacementPlugin as suggested in PR
2017-07-01 12:13:33 -04:00
Tobias Koppers
a6dea39888
change to var in generated code
2017-07-01 12:02:46 -04:00
Kyle Truong
971bbb61f0
4099 ES6 Refactor lib/HotModuleReplacementPlugin
2017-07-01 12:02:46 -04:00
Tim Sebastian
7972859640
refactor chunk.chunks usage to check for chunk existance
2017-06-24 11:39:46 +10:00
Tobias Koppers
302289ce24
Merge branch 'master' into next
2017-06-02 16:28:22 +02:00
Tobias Koppers
27cc834a49
evaluate some identifiers to truthy values
...
fixes #4596
2017-06-02 13:24:47 +02:00
Tobias Koppers
4901312abf
Merge branch 'master' into next
...
# Conflicts:
# test/statsCases/commons-chunk-min-size-0/expected.txt
# test/statsCases/limit-chunk-count-plugin/expected.txt
2017-05-29 00:41:59 +02:00
Ivan Shornikov
b113a22599
Make HMR request timeout configurable
2017-05-22 02:59:45 +03:00
Tobias Koppers
2bd2d2844c
improve a few issues
...
from review by @Kovensky
2017-05-20 14:54:42 +02:00
Tobias Koppers
e1bac32c19
Use a Set to store modules in a chunk
2017-05-16 11:50:50 +02:00
Tim Sebastian
b8e1981e09
allow chunk.id to be a number - or rather a non-null-something
2017-03-26 20:30:52 +11:00
Tim Sebastian
5240430321
apply split methods to their usages
2017-01-21 13:51:35 +11:00
Tim Sebastian
58e7a2f30b
add simple returnTrue helper, less function definitions
2017-01-21 13:51:35 +11:00
Tim Sebastian
82eec175af
convert more usages of BasicEvaluatedExpression with ParserHelpers
2017-01-21 13:51:35 +11:00
Tim Sebastian
965b7261fa
move more ConstDependencies to `toConstantDependency`
2017-01-21 13:51:35 +11:00
timse
86c00207bd
Extract to parser helpers ( #3843 )
...
* rename ModuleParserHelpers to ParserHelpers
- rename module and file from ModuleParserHelpers to ParserHelpers
- change imports and usages
- rename addParsedVariable to addParsedVariableToModule to add module context again
* introduce setTypeof helper to ParserHelpers
* switch setTypeof in amdplugin - use ParsersHelpers instead
* switch setTypeof in CommonJsPlugin - use ParsersHelpers instead
* switch setTypeof in SystemPlugin - use ParsersHelpers instead
* add ParserHelpers.expressionIsUnsupported method
* use ParserHelpers.expressionIsUnsupported in SystemPlugin and NodeStuffPlugin
* refactor setTypeOf to more atomic helper methods
- reduces sideeffects as parser is called outside of helper
- allows better reuse
* use ParserHelper on more pieces in CommonJsPlugin making BasicEvaluatedExpression obsolete
* switch new BasicEvaluatedExpression().setString(<somestring>).setRange(expr.range) in dependencies to ParserHelpers
* switch other new BasicEvaluatedExpression().setString(<somestring>).setRange(expr.range) to ParserHelpers
* rename wrongly named function - name anonymous functions
2017-01-08 12:11:26 -06:00
Tobias Koppers
ec262a4007
refactoring: moved parser instancation into NormalModuleFactory
...
breaking change: compiler.parser must no longer be used. Use this instead:
``` js
compiler.plugin("compilation", function(compilation, params) {
params.normalModuleFactory.plugin("parser", function(parser, parserOptions) {
parser.plugin(/* ... */);
});
});
```
required for #2978
2016-09-15 00:22:10 +02:00
Tobias Koppers
1675a5a5ca
new way to handle new ids, reuse old ids
...
adjusted HMR to handle id reusing
2016-07-18 00:41:26 +02:00
Tobias Koppers
7109be58b3
detect main module more reliable
...
#2648
2016-06-16 01:05:17 +02:00
Tobias Koppers
1f66b3acf0
allow module.hot.accept without callback (harmony)
2016-06-04 17:31:03 +02:00
Tobias Koppers
3881528678
added a timeout to hot multi step build
2016-01-21 02:01:24 +01:00
Tobias Koppers
ded70aef28
moves stuff from webpack-core to webpack-sources
2015-12-29 17:44:55 +01:00
Tobias Koppers
cabe7866fa
HMR with harmony modules
2015-11-01 23:27:53 +01:00
Tobias Koppers
431a4c791c
Merge branch 'master' into webpack-2
...
Conflicts:
hot/dev-server.js
hot/only-dev-server.js
hot/poll.js
hot/signal.js
lib/ChunkTemplate.js
lib/HotModuleReplacement.runtime.js
lib/HotModuleReplacementPlugin.js
lib/JsonpMainTemplatePlugin.js
lib/MainTemplate.js
lib/NormalModule.js
lib/Parser.js
lib/RecordIdsPlugin.js
lib/WebpackOptionsApply.js
lib/dependencies/RequireEnsureDependency.js
lib/node/OldNodeWatchFileSystem.js
lib/optimize/OccurrenceOrderPlugin.js
package.json
2015-07-17 09:30:37 +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
94ba35cb13
Merge branch 'master' into webpack-2
...
Conflicts:
lib/WebpackOptionsApply.js
2015-05-22 00:19:16 +02:00
Tobias Koppers
16af6a9dcd
fixed #1075
2015-05-18 23:32:41 +02:00
Tobias Koppers
ff7848369a
Merge branch 'master' into webpack-2
...
Conflicts:
bin/webpack.js
package.json
2015-05-10 20:41:04 +02:00
Tobias Koppers
d3a7994e35
expose `loc` for every Dependency
2015-05-10 18:31:58 +02:00
Tobias Koppers
6c1eb49539
separated runtime code from compiler code
...
for better coverage data
2015-04-28 23:38:41 +02:00
Tobias Koppers
f4b9d5f57a
Merge branch 'master' into webpack-2
...
Conflicts:
lib/Compilation.js
lib/Compiler.js
lib/DefinePlugin.js
lib/HotModuleReplacementPlugin.js
lib/Parser.js
lib/node/NodeSourcePlugin.js
lib/node/OldNodeWatchFileSystem.js
package.json
2015-04-27 20:22:13 +02:00
Tobias Koppers
cebd3b9722
added linting
2015-04-23 23:55:50 +02:00
Tobias Koppers
ed75627f06
Merge branch 'master' into webpack-2
...
Conflicts:
bin/convert-argv.js
package.json
2015-04-14 20:09:29 +02:00
Tobias Koppers
289db96b36
Make webpack ready for node.js HMR.
2015-03-11 23:48:00 +01:00
Tobias Koppers
ab149eb4d4
Merge branch 'hot-multi-pass' of https://github.com/webpack/webpack.git into webpack-2
...
Conflicts:
lib/Compilation.js
2015-03-05 22:30:24 +01:00
Tobias Koppers
e8390f3774
don't dispose unreferenced modules
...
fixes #826
2015-02-27 23:55:38 +01:00
Tobias Koppers
fb49376f6d
Added multi pass hot mode #669
2015-01-30 00:46:52 +01:00
Tobias Koppers
3634256493
#682
2015-01-12 23:23:08 +01:00
Marcus Vorwaller
96843d6f26
Remove unused variable from HotModuleReplacementPlugin.js
...
oldStatus throws an error on every refresh "Dropping unused variable oldStatus" with minification.
2014-12-02 16:23:13 -08:00
Tobias Koppers
d5dc904a15
fixed incomplete hash bug
2014-11-03 08:02:02 +01:00
Mark Marijnissen
3beb2af2a0
Bugfix: Only replace strings in module.hot.accept dependency array.
...
Bugfix: Only replace strings in module.hot.accept dependency array.
2014-09-18 01:08:18 +02:00
Tobias Koppers
636d97e180
show warning when using HMR incorrectly
...
fixed #480
2014-09-17 23:23:45 +02:00
Tobias Koppers
4891225efc
Merge pull request #470 from markmarijnissen/hmr-accept-multiple-deps-bugfix
...
bugfix HMR module.accept: resolve multiple deps to module ids
2014-09-16 20:11:42 +02:00
Mark Marijnissen
ec194ca095
Replaced spaces with tabs
...
replaced spaces with tabs
2014-09-15 18:04:04 +02:00
Tobias Koppers
1a10838a61
use hasOwnProperty in for in loops
...
#450
2014-09-15 10:35:56 +02:00
Mark Marijnissen
421f203b57
bugfix HMR module.accept: resolve multiple deps to module ids
2014-09-14 02:33:35 +02:00
Tobias Koppers
dd232012ca
Merge pull request #427 from diurnalist/feature/templated-path-plugin-sq
...
Add TemplatedPathPlugin to generically handle asset paths w/ template vars
2014-09-11 19:09:17 +02:00
Jason Anderson
f371945a29
Add TemplatedPathPlugin
2014-09-11 15:31:08 +02:00
Tobias Koppers
df23e14847
use hasOwnProperty in for in loops
...
fixes #450
2014-09-10 14:10:05 +02:00
Tobias Koppers
b8fef9a1d7
allow to ignoreUnaccepted modules in HMR
...
fixes #418
2014-08-29 15:52:38 +02:00
Tobias Koppers
887852f6df
Allow to share hotUpdateCallback
...
fixes #423
2014-08-25 10:19:04 +02:00
Tobias Koppers
1bc0b8c0f4
added __webpack_hash__
...
fixes #422
2014-08-25 09:50:26 +02:00
Tobias Koppers
eb02ef1e94
add hot self accept with error handler
2014-08-14 10:04:05 +02:00
Anson Yu Wang
112a44da81
fix this.applyPluginsWaterfall("module-obj", .. call in MainTemplate.js
2014-08-13 20:53:23 +08:00
Anson Yu Wang
d0cf49d23c
fix module.hot.data
2014-08-13 16:46:01 +08:00
Tobias Koppers
74e927f105
fixed another bug in HMR
2014-07-24 17:53:56 +02:00