Commit Graph

111 Commits

Author SHA1 Message Date
Ron Buckton
69398693f5
Merge pull request #25781 from mnquintana/webpack-4-split-chunks-chunks-func
[@types/webpack] Add support for chunks filter function in SplitChunksPlugin
2018-05-16 22:42:45 -07:00
Machisté Quintana
c1c69f4913 Update chunks function test to use updated type 2018-05-15 14:44:42 -07:00
Machisté Quintana
3ef1d0d822 Use the actual compilation.Chunk type instead of any 2018-05-15 14:42:52 -07:00
Machisté Quintana
6744394a0a Bump webpack typings to v4.4.x 2018-05-15 14:04:28 -07:00
Machisté Quintana
815129e0bb Use a less strict function type for chunks 2018-05-14 18:03:37 -07:00
Machisté Quintana
a351eaac27 Add support for chunks filter function in SplitChunksPlugin 2018-05-14 17:49:54 -07:00
Mohsen Azimi
aaaa2a08e6
Add typing for webpack profiling plugin 2018-05-13 14:32:32 -07:00
Olegs Jeremejevs
01d6a921e3 webpack: Fix some problems introduced in #25566 (#25691) 2018-05-11 12:19:24 -07:00
Dennis George
37a8e994f8 webpack: Updated module rules types against WebpackOptions.json schema in v4 (#25566)
* Updated module rules types against WebpackOptions.json schema in v4

* Fixed T[] lintting error

* Removed redundant definition in RuleSetCondition

* Fixed Loader reference in extract-text-webpack-plugin
2018-05-09 11:38:08 -07:00
Christophe Hurpeau
2f1a4cda5c webpack: Add Configuration.Resolve.cacheWithContext (#25209)
https://webpack.js.org/configuration/resolve/#resolve-cachewithcontext
2018-04-24 16:00:59 -07:00
Jiaren Liu
b2d16a83b3 add resourceQuery for webpack loader 2018-03-25 11:04:38 +08:00
Mine Starks
70bf8a8612
Merge pull request #24360 from alan-agius4/feature/uglify-3
feat: add types for `UglifyJS` V3
2018-03-22 12:25:34 -07:00
Alan Agius
c2fd8880d7 feat: add types for UglifyJS V3 2018-03-22 19:39:13 +01:00
eivindh
5b64d8fb14 Fixed SplitChunksOptions.cacheGroups not accepting dictionary 2018-03-18 12:56:34 +01:00
Andrew Pinkham
c0cfefc595
webpack v3: revert filename requirement
Necessary for partial configurations.
2018-03-14 14:39:17 -04:00
Andrew Pinkham
b822a843fb
webpack v3: require output filename; add hash opts 2018-03-14 14:35:56 -04:00
Andrew Pinkham
16f23e36a5
webpack: Add hash options to config 2018-03-14 11:44:31 -04:00
Armando Aguirre
23285947d5
Merge pull request #24092 from dennispg/webpack-v4-plugin-authoring-typedefs
webpack v4 plugin authoring typedefs
2018-03-09 15:59:26 -08:00
Dennis George
81514fb7bc added multiple type params for Tapable, webpack.compilation namespace 2018-03-06 19:19:52 -06:00
Dennis George
346be5d729 updated to new Tapable export approach 2018-03-06 17:54:01 -06:00
Dennis George
c8357c63f6 updated TS version to 2.3 for all webpack consumers 2018-03-05 18:59:53 -06:00
Armando Aguirre
a2628f5630
Merge pull request #23958 from dennispg/master
Updates for webpack 4.0
2018-03-05 15:27:39 -08:00
Dennis George
ec8691b39d added Compiler and Compilation hooks defs 2018-03-05 16:25:58 -06:00
Patrick Metcalfe
3d5b4b45b0
Webpack Definition: Fix typo in comment 2018-03-02 16:07:05 -08:00
Dennis George
e8c0f80ed3 added SplitChunkPlugin 2018-03-01 15:29:39 -06:00
Dennis George
a6df8354c2 Updated against webpack v4 options schema.json 2018-02-27 17:16:10 -06:00
Dennis George
f544c1287b fixed tests for webpack v4 2018-02-27 16:19:25 -06:00
Dennis George
ba0d049c49 Added newline back to webpack v3 definition 2018-02-27 15:59:15 -06:00
Dennis George
76cfb34e13 updated webpack to be 4.0 specific; added v3 subfolder for old version 2018-02-27 15:48:32 -06:00
Dennis George
be525690a8 updated for webpack 4.0 added optimization.minimizer option 2018-02-27 14:18:59 -06:00
Dennis George
ee6770df50 updated webpack 4.0 optimization options comments for linter 2018-02-27 13:51:14 -06:00
Dennis George
9b593e264d updated for webpack 4.0 2018-02-27 13:43:11 -06:00
Alan Agius
f7e46ef1c4
Set source-maps to 0.6.x 2018-02-15 19:28:25 +01:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Daniel Rosenwasser
81052ed65f
Merge pull request #23543 from jason0x43/webpack-loader
Fix Loader type in webpack
2018-02-13 16:22:53 -08:00
Alan Agius
329e75252a webpack: remove lint overrides 2018-02-12 18:02:21 +01:00
Alan Agius
55898119ea webpack: remove union types with type any 2018-02-12 17:52:36 +01:00
Jason Cheatham
147e526e7d Restore tslint rules to webpack plugin 2018-02-10 12:14:49 -05:00
Jason Cheatham
0c415565f3 Make webpack package private. 2018-02-10 12:07:42 -05:00
Jason Cheatham
63af4393ec Use RawSourceMap rather than object in tests, remove TS version line
The default TS 2.1 compat doesn't understand `object`, but specifying
version 2.2 breaks other types that depend on this one.
2018-02-10 11:52:31 -05:00
Jason Cheatham
fe7e66e3ae Update webpack typings to fix build issues
* Add TypeScript version line
* Remove some non-functional linter rules
2018-02-10 11:30:14 -05:00
Jason Cheatham
4a856368ec Fix Loader type in webpack
The sourcemap parameter passed to loaders, and that loaders pass to the
callback, is a `RawSourceMap`, not a `string | Buffer`.
2018-02-09 13:11:52 -05:00
Andy
2a9d2f8d59
Convert more "import *" to "import =" (#23446) 2018-02-05 18:27:31 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Wesley Wigham
422003f3c5 Use import require when call or construct signatures are needed to improve compat with esModuleInterop (#23355)
* Use import require when call or construct signatures are needed to improve compat with esModuleInterop

* Add moment-timezoe fix
2018-02-02 14:09:06 -08:00
Oliver Joseph Ash
39150f4ac8 webpack: WatchOptions.ignored accepts string[] (#23214)
https://webpack.js.org/configuration/watch/#watchoptions-ignored
https://github.com/micromatch/anymatch
2018-01-26 09:01:36 -08:00
Spencer Elliott
c2ce00278b Define webpack.ProgressPlugin handler with all 5 arguments (#22936)
webpack can pass up to 5 arguments to the progress handler:
b545b519b2/lib/ProgressPlugin.js (L41-L46)

For example, simple-progress-webpack-plugin uses all 5 arguments:
246f479596/logger/verbose-logger.js (L23)
2018-01-17 09:47:22 -08:00
Cory Deppen
e22c9e0482 Add missing compilers property to MultiCompiler (#22521)
Based on the Webpack source, the `MultiCompiler` class has a [`compilers` property](69e0844028/lib/MultiCompiler.js (L21)).
2018-01-02 14:43:52 -08:00
Alan Agius
765e50e7fd
fix(webpack): fix incorrect types 2017-11-08 12:16:52 +01:00
Alan Agius
73890010c2 webpack: moduleTrace should be a boolean 2017-10-27 07:57:57 +02:00