Commit Graph
79 Commits
Author SHA1 Message Date
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:
https://github.com/webpack/webpack/blob/b545b519b2024e3f8be3041385bd326bf5d24449/lib/ProgressPlugin.js#L41-L46

For example, simple-progress-webpack-plugin uses all 5 arguments:
https://github.com/dominique-mueller/simple-progress-webpack-plugin/blob/246f4795968d49a8b9ecf05ff3f38a100519ac93/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](https://github.com/webpack/webpack/blob/69e0844028950e1316fb4ed9f4ac4593ecc205b3/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
Alan Agius efee39e229 Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped into feature/webpack-multicompiler
# Conflicts:
#	types/webpack-stream/index.d.ts
#	types/webpack/index.d.ts
2017-10-24 07:55:16 +02:00
Alan Agius 7907550eec webpack: fix tests 2017-10-24 07:49:45 +02:00
Alan Agius 126eac680e webpack: fix lint issues and remove some deprecated stuff 2017-10-24 07:45:49 +02:00
Andy 6274f3d980 webpack-*: Fix lint (#20831) 2017-10-23 07:33:51 -07:00
Alan Agius f3feb4be94 webpack: update warningsFilter 2017-10-22 15:39:02 +02:00
Alan Agius 0a5138eb79 webpack: fix lint issues 2017-10-22 15:36:43 +02:00
Alan Agius 418ccd2c0c webpack: update header 2017-10-22 15:31:12 +02:00
Alan Agius 346ab19216 webpack: add update API 2017-10-22 15:30:27 +02:00
Alan Agius 9e4fd891d5 fix(webpack): MultiCompiler extends Tapable
https://github.com/webpack/webpack/blob/69e0844028950e1316fb4ed9f4ac4593ecc205b3/lib/MultiCompiler.js#L12
2017-10-21 10:51:01 +02:00
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Nathan Shively-Sanders b8ea87c68e Strict function variance fixes round 1 2017-10-02 15:50:34 -07:00
ohze.net 190c5341a5 add webpack.optimize.UglifyJsPlugin.Options.parallel (#20176) 2017-10-02 10:32:58 -07:00
Ahmed T. Ali a82b876e9c (webpack): add missing possible 'entry' types (#19977)
* fix(webpack): add missing possible 'entry' types

resolves #19972

* style(webpack): fix spacing

* style(webpack): add parentheses

I've added parentheses around the return type of `EntryFunc` to clarify
the correct type is `() => (...types)` not `(() => string) | ...types`
2017-09-25 12:19:32 -07:00
Djemel 54cfc26a91 @types/webpack - output.library should allow both string and string[] (#19959)
output.library allows for string array like this
    output: {
        filename: './dist/dist.js',
        library: ['namespaceA', 'solutionA']
    }
2017-09-25 12:19:08 -07:00
Avi Vahl c3bb037cc6 webpack: improve loader context typings
emitError() and emitWarning() both can accept an Error as well, for exposing caught Errors.
See: https://github.com/webpack/webpack/blob/master/lib/NormalModule.js#L115

Added relevant type tests.
2017-09-17 13:30:38 +03:00
Andy 69bf6eb0ed Add more tslint disables (#19590) 2017-09-06 09:44:12 -07:00
Andy da000daaf0 webpack: Fix tests (#19218) 2017-08-28 12:39:19 -07:00
Daniel Rosenwasser 6b4d306b45 Merge pull request #19013 from bijanvakili/fix-webpack-watchignoreplugin-list
WatchIgnorePlugin constructor should allow array of string paths
2017-08-21 21:27:31 -07:00
Daniel Rosenwasser 69e1f86c23 Fix up linting issue regarding array types. 2017-08-21 21:21:53 -07:00
Bijan Vakili 83615efbef Fix WatchIgnorePlugin constructor to allow heterogeneous array of string and RegExp entries 2017-08-20 20:25:04 -07:00
Andy 924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
Bijan Vakili 13934bdb99 Fix webpack WatchIgnorePlugin constructor arguments to allow providing an array of string paths 2017-08-16 00:51:07 -07:00
IAMtheIAM fdeb1336e3 fix typo 2017-08-15 14:18:16 -07:00
Bijan Vakili 8414ffb817 Fix webpack's DllReferencePlugin.Options to allow manifest to be a string to support paths (#18902) 2017-08-14 11:17:21 -07:00
Andrew Casey a8975975df Merge pull request #18702 from jcreamer898/patch-1
Add HashedModuleIdsPlugin to webpack definitions
2017-08-09 10:41:39 -07:00
Jonathan Creamer 2ca09c9734 Add tests, run lint 2017-08-09 09:50:18 -05:00
Ismail Syed be6ad265d0 PR fixes: optional nameResolver and chunk: any 2017-08-07 23:20:02 -04:00
Ismail Syed 68b08dcd2d Add namedResolver function params and return type 2017-08-07 22:33:25 -04:00
Ismail Syed 6a6ec76be3 Add constructor param 2017-08-07 18:35:46 -04:00
Jonathan Creamer 3f81c4a3b7 Add HashedModuleIdsPlugin to webpack definitions 2017-08-07 11:46:58 -05:00
Ismail Syed e189253e24 Add NamedChunksPlugin (#18644) 2017-08-04 16:24:47 -07:00
Mohsen Azimi cc903d089f Some improvements to webpack configuration (#18118)
* Some improvements to webpack configuration 

`"name"` property schema:

https://github.com/webpack/webpack/blob/master/schemas/webpackOptionsSchema.json#L822-L825

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts
2017-07-21 19:18:30 -07:00