Commit Graph

75 Commits

Author SHA1 Message Date
scarletsky cd0ea22d8f fix: quotes 2019-06-13 15:42:01 +08:00
scarletsky ad08ecc345 fix: use __webpack_require__.p instead 2019-06-13 15:26:15 +08:00
scarletsky 0ddada8ce6 fix: add missing public path in importScripts 2019-06-13 14:49:24 +08:00
Tobias Koppers 13b2cdd5ae hash content of bootstrap code
instead of trying to calculate it
from inputs

fixes #8027
fixes #7984
2018-09-13 23:25:26 +02:00
Tobias Koppers 559cf94edb Simplify imports 2018-07-09 15:09:00 +02:00
Tim Hambourger 1ef124143a Implement all path variables for webworker dynamic imports 2018-06-22 00:16:14 -05:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Petter Häggholm 0f5ba64235 `yarn pretty` 2018-04-06 10:34:21 -07:00
Petter Häggholm 0aa9aa61b1 #6971: Escape chunk names for webworkers 2018-04-05 18:58:39 -07:00
Tobias Koppers b018bc7ac5 more tests and fixes for webworker 2018-03-26 14:34:54 +02:00
Tobias Koppers 296542ed79 add [contenthash] support 2018-03-24 12:08:36 +01:00
Florent Cailhol 3983803d30 Destructure 'require' to improve readability 2018-03-22 12:05:58 +01:00
Tobias Koppers f32bd41c52 fix linting 2018-02-25 02:15:37 +01:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +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
Tobias Koppers d95f93f8cb add output.globalObject configuration option
remove deprecated atom and electron target
add self libraryTarget
add self external type
2017-12-27 18:46:37 +01:00
Florent Cailhol 7dd41b55c6 Replace deprecated Tapable#apply by Plugin#apply 2017-12-20 11:53:56 +01:00
Florent Cailhol f737b26260 Remove some plugin calls 2017-12-14 14:42:49 +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 56328a7cab upgrate tapable in Templates 2017-11-28 18:43:01 +01:00
Tobias Koppers 6bb24367b2 Merge branch 'master' into next
# Conflicts:
#	lib/JsonpMainTemplatePlugin.js
#	test/WebWorkerMainTemplatePlugin.unittest.js
#	yarn.lock
2017-11-27 08:59:30 +01:00
Tobias Koppers a6f0ca9c07 fix incorrect update of the WebWorker Template 2017-11-21 12:56:55 +01:00
Tobias Koppers f7c2f8e470 Update code style to arrow functions 2017-11-08 11:56:01 +01:00
Antoine Caron 00daab2507 fixup! [fix] error on HMR with es6 bundles 2017-10-30 08:43:56 +01:00
Antoine Caron 27e4d14a31 [fix] error on HMR with es6 bundles
Fix 5776
2017-10-20 16:20:02 +02:00
Tobias Koppers c7b80cf779 bugfix 2017-09-22 14:24:12 +02: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
Stoppa, Emanuele 2ccc1fdc9b Changed statement 'var' to 'const' 2017-07-04 14:13:57 +01:00
Tim Sebastian 7972859640 refactor chunk.chunks usage to check for chunk existance 2017-06-24 11:39:46 +10:00
Anatoliy Yastreb ce24a7be67 Refactor: string concatenation to template literals 2017-06-20 14:40:27 +09:00
Tobias Koppers 0257f6c6e4 Merge pull request #4907 from paraboom/feature/add_request_timeout_configurable
Make HMR request timeout configurable
2017-05-28 12:40:09 +02:00
Tobias Koppers 09d95333c5 Use Promise only when chunk load is triggered
don't use it in initialisation
fixes #4916
2017-05-24 14:58:23 +02:00
Ivan Shornikov b113a22599 Make HMR request timeout configurable 2017-05-22 02:59:45 +03:00
Tobias Koppers 22e7d254ee Add webpackMode optios for import()
Allow lazy, lazy-once and eager mode for import()
Fix a bug which caused context chunks to be merged when using chunk name
Allow to work in env where there is no Promise.resolve
2017-05-05 09:03:24 +02:00
SendilKumar N 75d15a9f04 refactor(ES6): WebWorkerTemplatePlugin to use const rather than var 2017-02-21 17:38:24 +08:00
SendilKumar N 30d4981209 refactor(es6): WebWorkerMainTemplatePlugin to use const rather than var 2017-02-21 17:37:25 +08:00
Tobias Koppers 4369dfa27c Merge pull request #4320 from sendilkumarn/refactor-ww
refactor(es6) Webworker module
2017-02-21 09:40:22 +01:00
SendilKumar N f2367c29d5 refactor(es6) Webworker module 2017-02-21 07:05:34 +08:00
SendilKumar N db2ff057f1 changing as per comments 2017-02-21 06:14:02 +08:00
SendilKumar N 21d9b62f33 refactor(ES6): WebWorkerChunkPluginTemplate migration
linting
2017-02-20 21:30:42 +08:00
Shubheksha Jalan 7dc617b00e refactor(ES6): upgrade WebWorkerHotUpdateChunkTemplatePlugin to ES6 2017-01-12 02:29:47 +05:30
Tobias Koppers 8e69a80847 code linting 2017-01-11 12:29:01 +01:00
Sean Larkin aa8d01bf8d refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot (#3636)
* refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot

* This change allows for buildin to now be part of the lint test by addition of an extra .eslintrc file which extends existing but sets es6 to false
* Turned on no-unused-vars for eslint, and then removed all warnings from turning that feature on
* Was getting notified of errors in "quote" property in eslintrc, so changed to correct value from error to 2.

* beautify

* swap invalid eslint config val
2016-12-30 09:43:49 -06:00
Tobias Koppers 54aa3cd0d6 Merge pull request #2988 from matthewtoast/master
fix: Convert webworker template runtime to be Promise-based API
2016-09-15 00:27:52 +02:00
Tobias Koppers afd11259b2 stricter linting and bug fixes 2016-09-15 00:22:10 +02:00
Matthew Trost 2e8f08f6ac Convert webworker template runtime to Promise-based API
Fixes 'cannot call method then on undefined' error when using HMR with a config
whose target is "webworker".

Probably should have happened with 2245c4acca
2016-09-12 18:40:23 -04: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