Commit Graph

199 Commits

Author SHA1 Message Date
Sean Larkin 9df87ad3dc
Merge pull request #6394 from webpack/TheLarkInn-patch-1
Wrap default entry property in array
2018-02-06 08:01:41 +01:00
Ben Rothman 5ee61f8910 add "multiple" string option for runtimeChunk config 2018-02-01 11:11:16 -06:00
Tobias Koppers 9fde04d299 handle single option in options defaulter
change runtime chunk naming schema
2018-02-01 17:53:15 +01:00
Sean Larkin 2a46d098d2
Wrap default entry property in array
This makes webpack-serve happier.
2018-01-26 16:06:24 -08:00
Tobias Koppers b28435eb32 make default cache group explicit
add priority
using cacheGroups doesn't override default cache groups
2018-01-20 13:13:10 +01:00
Tobias Koppers fabd1abb41 improvements from review by @ooflorent 2018-01-20 11:28:45 +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 7112943ca4
Merge pull request #6298 from EugeneHlushko/refactor/indexof-to-includes
Refactor/indexof to includes
2018-01-11 22:45:02 +01:00
EugeneHlushko 2aab060f26 Refactor: indexOf >< checks to includes 2018-01-11 18:58:39 +02:00
Tobias Koppers 417044f065 add AutomaticCommonsChunksPlugin
enable it by default for async chunks
add options for initial chunks
2018-01-10 18:58:26 +01:00
Tobias Koppers 45f8a28b44 Merge branch 'master' into next
# Conflicts:
#	lib/JsonpMainTemplatePlugin.js
#	lib/NoEmitOnErrorsPlugin.js
2018-01-04 20:59:34 +01:00
Neehar Venugopal 8eb0bb675e move default script type option to WebpackOptionsDefaulter 2018-01-04 20:00:50 +05:30
Tobias Koppers 002f45ae72 change "defaultedProduction" to undefined
inline mode file
fix testcase
2018-01-03 16:43:24 +01:00
Tobias Koppers ff908decb3
Merge branch 'next' into feature/add-entry-default-value 2018-01-03 15:41:45 +01:00
Sean Larkin bb778b0da6 warn on mode being defaulted to production explicitly vs not being used 2017-12-30 18:42:01 -06: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
Sean Larkin 5e8700f5c5 feat(defaults): add fixed defaults 2017-12-18 12:18:07 -08:00
Joshua Wiens b319ea6c1c refactor: Enables uglify thread pool by default 2017-12-18 00:49:48 -06:00
Joshua Wiens bf93a87a1d perf: Enables uglify cache in prod mode 2017-12-17 08:48:01 -06:00
Tobias Koppers 5de82eb251 remove no extensions "feature" from mjs 2017-12-14 12:40:12 +01:00
Tobias Koppers 2148f556a4 Enable minimizing in production mode 2017-12-14 00:06:56 +01:00
Tobias Koppers fabe631a83 Only generate portable records when needed 2017-12-01 11:27:03 +01:00
Tobias Koppers e1de04853a omit determining size for non-production builds 2017-12-01 11:27:02 +01:00
Tobias Koppers 2201b860a5 Add mode option and choose defaults depending on mode
add optimization options
use development mode for watch/hot/config tests
use production mode for integration/stats tests
create output directory if not existing
move __esModule to runtime
fix dependency behavior for cases without usedExports
2017-11-24 08:17:17 +01:00
Tobias Koppers 6dc350ddb7 mjs can't import modules without extension 2017-11-23 12:03:34 +01:00
Tobias Koppers ccbc07c239 add wasm extensions as default 2017-11-22 21:37:39 +01:00
Tobias Koppers 5e39ec46ee Allow to override resolve configuration 2017-11-18 08:12:35 +01:00
Tobias Koppers 982e44f670
Merge branch 'next' into master 2017-11-16 14:17:29 +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 41a1d602e1 added WebAssembly Proof of Concept 2017-11-10 09:17:11 +01:00
Stephan Badragan 68acd41bff passing namespace argument to contructors of dev tool plugins 2017-10-19 13:23:28 -07:00
Tobias Koppers 50201047d7 allow boolean values for node and performance 2017-09-06 17:15:03 +02:00
Tobias Koppers f04cce8278 clone options and don't modify them
fixes #5628
2017-09-06 12:10:16 +02:00
Mike Sherov bdddee2b91 Ignore context in resolve caching when resolve or resolveLoader plugins are provided. 2017-06-28 08:37:58 -04:00
Tobias Koppers 302289ce24 Merge branch 'master' into next 2017-06-02 16:28:22 +02:00
Tobias Koppers 765e97135b allow context to resolve to index.js files
fixes #3873
2017-06-02 13:41:25 +02:00
Tobias Koppers d967a4623c add `module.strictThisContextOnImports` option
to allow spec-comforming behavior this context on
called imported harmony functions
2017-05-21 09:23:35 +02:00
restrry f2264e4202 make chunkLoadTimeout option cofigurable 2017-05-11 10:41:38 +02:00
Joe Haddad fa47a39107
Add strictExportPresence option 2017-02-22 21:06:43 -05:00
Tim Sebastian 8ca8904b07 use const where applicable in WebpackOptionsDefaulter 2017-02-05 12:20:22 +11:00
Tobias Koppers 8e69a80847 code linting 2017-01-11 12:29:01 +01:00
Adam Markon b86460302a refactor(es6): upgrade (Webpack)OptionsDefaulter to ES6 (#3671)
* refactor(es6): refactor (Webpack)OptiionsDefaulter to ES6 classes
2017-01-02 10:45:44 -06:00
Sean Larkin 5f14559335 feat(performancebudgets): set warnings in console off by default, however should still display in stats (#3604) 2016-12-28 11:27:54 -06:00
Tobias Koppers 53c0f682dd removed incorrect default 2016-12-21 23:39:22 +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 37b7474651 Refactoring, make options simpler
breaking change: performance options changed
2016-12-14 11:33:57 +01:00
Sean Larkin 44f6f07ec2 chore(performance): cleanup logic errors, reformat test expects with new colomn [big] format if empty 2016-12-07 17:22:20 +01:00
Sean Larkin 9894b58dd1 fix(performance): modified values to 250kb across the board for accurate reporting, modified string logic 2016-12-07 17:22:18 +01:00
Sean Larkin 1db0e1ac41 chore(performance): update default bytesizes to be more accurate to properties 2016-12-07 17:22:17 +01:00
Sean Larkin 774a89b583 feat(perfbudgets): added errorOnHint flag defaulting to false for opt-in 2016-12-07 17:22:13 +01:00
Sean Larkin e360c8b7c8 fix(test): update test, fix asset type case, and formatting 2016-12-07 17:21:27 +01:00
Sean Larkin 0f0bdff0e1 fix(syntax): fixed edge case where assets do not exist, and added schema 2016-12-07 17:21:23 +01:00
Sean Larkin 52bfdab526 feat(perf): added initial setup for perf plugins, need to configure test cases and stats output based on perf props 2016-12-07 17:21:17 +01:00
Tobias Koppers b87bfc0399 added strictModuleExceptionHandling option
fixes #1729
2016-11-16 13:09:38 +01:00
Damien Soulard a3bfd1e126 Remove automatic -loader module name extension (#3102)
* fix-2986: Remove automatic -loader module name extension

* remove-automatic-loader-extension: update examples

* fix-2986: Remove automatic -loader module name extension

* fix-2986: Remove automatic -loader module name extension

* fix-2986: Remove automatic -loader module name extension

* Revert changes from spaces to tabs
2016-10-25 23:03:59 +02:00
Tobias Koppers c675067bcf fixed some validation stuff 2016-09-19 21:57:12 +02:00
Tobias Koppers dc50c0360e added `module` as default package main 2016-07-20 22:17:20 +02:00
Mark Penner c867a4fc00 Removed `sourcePrefix` option -- fixes https://github.com/webpack/webpack/issues/166#issuecomment-224710378 2016-06-09 14:09:54 -07:00
Tobias Koppers 205d08cac5 fixes and performance improvements 2016-01-26 17:56:44 +01:00
Tobias Koppers 2e5a5f9db3 more pretty CLI options, added --verbose option 2016-01-14 21:21:09 +01:00
Tobias Koppers c838656e7f moved defaults for options.output into central place 2016-01-06 23:02:25 +01:00
Tobias Koppers fecf07dd1f integrated new enhanced-resolve version 2016-01-03 21:42:56 +01:00
Tobias Koppers 4c7c929096 simplified defaults 2016-01-02 00:18:25 +01:00
Tobias Koppers ded70aef28 moves stuff from webpack-core to webpack-sources 2015-12-29 17:44:55 +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 9c26ffe6a8 Merge branch 'master' into webpack-2
Conflicts:
	lib/Stats.js
2015-04-20 21:08:42 +02:00
Daniel Tschinder d7458e23ca Added possibility to crossorigin load chunks
Done by adding the crossorigin attribute to the injected script tag
2015-04-17 15:57:42 +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 0431b74149 added cheap-source-map and lineToLine option 2015-04-05 01:52:30 +02:00
Tobias Koppers 5b4d7d7d76 disable full dynamic require by default (require(expr))
#729
2015-03-05 21:49:39 +01:00
Tobias Koppers a2af69056a Remove old stuff 2015-03-05 21:48:16 +01:00
Tobias Koppers d2b1bca5d9 Remove compatibly mode for node.Buffer
#729
2015-03-05 21:46:54 +01:00
Tobias Koppers 7da31b2990 change `node.Buffer` in a way that is backward-compatible
#709
2015-01-21 20:25:25 +01:00
Johannes Ewald 5a2f35e51a Add setImmediate and clearImmediate as global function
clearImmediate has no own option as it is directly connected with setImmediate
2015-01-06 18:20:45 +01:00
Johannes Ewald 562fe2d507 Change case of option node.buffer to node.Buffer 2015-01-06 18:17:47 +01:00
Tobias Koppers bea08dc1a2 added node-webkit target (experimental)
added option to provide no target
added defaults for node-webkit
allow browsertests to run in node-webkit
2014-04-09 09:12:04 +02:00
Tobias Koppers b6923ccf93 sourceMapsFilename support querystrings
fixes #217
2014-04-03 19:46:53 +02:00
Tobias Koppers 11ebc21593 cache is on by default
disable it with cache: false resp. --no-cache
@petehunt
2014-03-21 16:08:35 +01:00
Tobias Koppers 61f1c4d37d allow to configure default RegExps for automatically created contexts
allow to configure when an automatically created context is critical
better warning message in critical dependencies warning

fixes #196
fixes #198
2014-03-11 16:08:22 +01:00
Tobias Koppers 53c16c8147 add json as default extension.
clever warning for module parse errors.

#184
2014-03-03 15:01:32 +01:00
Tobias Koppers efb2dd483f choose defaults by target
browser field is on by default, fixes #151
2014-02-13 11:02:31 +01:00
Tobias Koppers 8e77c17f44 add packageAlias
fixes #151
2014-02-11 12:24:41 +01:00
Tobias Koppers 96150c0421 make source prefix configurable, fixes #166 2014-02-11 08:31:08 +01:00
Tobias Koppers 3170b76b22 webpack 1.0 beta
moved many options to plugins
#113
2013-12-17 23:21:49 +01:00
Tobias Koppers 81203a3a1c added node.js HMR,
fixed #137: exports correct require properties on hotRequire too
added more test combinations
2013-12-17 00:56:43 +01:00
Tobias Koppers 6a2f255778 fixed parsing of packageMains options 2013-10-12 22:08:04 +02:00
Tobias Koppers 2181739daf added unsafeCache option for performance 2013-07-04 12:01:10 +02:00
Tobias Koppers 44f8709fbd more options for hashing 2013-05-21 11:08:08 +02:00
Tobias Koppers 5cdb8cbf81 cache chunks, cache assets 2013-05-08 13:28:54 +02:00
Tobias Koppers 0de7c73ad8 SourceMap support 2013-03-26 16:54:41 +01:00
Tobias Koppers 8e517c5c21 fixed minimize bug 2013-03-13 11:37:28 +01:00
Tobias Koppers 065a56f603 added Buffer 2013-03-01 14:59:38 +01:00
Tobias Koppers c4140aac51 moved ConsolePlugin into NodeSourcePlugin 2013-02-26 13:31:05 +01:00
Tobias Koppers 7ef74e8021 moved options defaulter to core 2013-02-15 14:16:18 +01:00
Tobias Koppers 3dc62749a2 moved webworker template, added node.js template #57 2013-02-13 17:00:07 +01:00
Tobias Koppers 2976cf0246 fixes #63 2013-02-13 15:01:12 +01:00
Tobias Koppers ee01837d66 Refactored everything for 0.9 2013-01-30 18:49:25 +01:00