Commit Graph

49 Commits

Author SHA1 Message Date
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
Benjamin Lim
a4fd4c5f54 feat: add Devtool options type
Closes #17387
2017-07-09 15:53:58 +08:00
Ron Buckton
db6fbe9281 Merge pull request #17821 from mohsen1/patch-23
make devtoolModuleFilenameTemplate accept a function
2017-07-07 17:31:11 -07:00
Mohsen Azimi
1f359f76e7 Update index.d.ts 2017-07-07 10:16:34 -07:00
Mohsen Azimi
0d0eb743b7 Update index.d.ts 2017-07-07 10:15:16 -07:00
Mohsen Azimi
5e2a11a1e4 Update index.d.ts 2017-07-07 09:21:33 -07:00
Mohsen Azimi
a94cfa398b add strictExportPresense to module of webpack
Reference 
https://github.com/Timer/webpack/blob/master/schemas/webpackOptionsSchema.json#L222-L224
2017-07-06 18:52:30 -07:00
Mohsen Azimi
8d32ba9f6b make devtoolModuleFilenameTemplate accept a function
Reference 
567d981ee2/packages/react-scripts/config/webpack.config.dev.js (L81)
2017-07-06 18:30:14 -07:00
Paul van Brenk
2fdcef7e6d Merge pull request #17526 from donaldpipowitch/patch-8
performance.hints in webpack can't be true
2017-06-27 13:45:32 -07:00
Paul van Brenk
630ff7a494 Merge pull request #17527 from donaldpipowitch/patch-9
enhance targets for webpack
2017-06-27 13:43:57 -07:00
Matt Lewis
1c4ffe1b60 webpack: remove myself from the authors list 2017-06-27 15:08:50 +01:00
Donald Pipowitch
d28f0c306c Update index.d.ts 2017-06-27 13:06:05 +02:00
Donald Pipowitch
6f9e67bb18 Update index.d.ts 2017-06-27 13:01:41 +02:00
Mohsen Azimi
40376cc6a2 Update index.d.ts 2017-06-19 17:42:13 -07:00
Mohsen Azimi
a5a635ce74 😚 2017-06-19 14:21:08 -07:00
Mohsen Azimi
7871d4a426 Update index.d.ts 2017-06-19 10:46:07 -07:00
Mohsen Azimi
6db93d5d37 Update index.d.ts 2017-06-19 10:37:13 -07:00
Michael Strobel
8b6097d1dd Fix whitespace linting error 2017-06-10 09:27:15 +08:00
Michael Strobel
5015d80ab5 [webpack] Add types for CommonsChunkPlugin.Options 2017-06-10 09:05:34 +08:00
Andy
7019f85ea5 webpack: Remove test that fails in typescript@next (#17066) 2017-06-08 15:46:15 -07:00
Andy
fa2480ba61 Remove more namespaces from tests (#16029) 2017-04-20 09:06:00 -07:00
Yui
c09054630a Merge pull request #15700 from kryops/webpack-resolve
[webpack] Add resolve.symlinks and resolve.plugins
2017-04-14 15:13:39 -07:00
Andy
bbc61fbf93 Extend "dtslint/dt.json" directly instead of "../tslint.json". (#15822)
* Extend "dtslint/dt.json" directly instead of "../tslint.json".

* Convert more "../tslint.json" to "dtslint/dt.json"

* no-redundant-modifiers -> strict-export-declare-modifiers
2017-04-14 08:04:05 -07:00
Michael Strobel
2b9bfe8eae [webpack] Add resolve.plugins 2017-04-12 09:39:16 +08:00
Michael Strobel
db665dd659 [webpack] Add resolve.symlinks 2017-04-07 08:45:43 +08:00
Andy
f2b6506ba5 Fix various lint errors (#15530) 2017-03-30 17:42:07 -07:00
Mohsen Azimi
8f53daf8e4 Update webpack-tests.ts 2017-03-29 10:11:05 -07:00
Mohsen Azimi
5b69aa4591 add test 2017-03-28 17:00:16 -07:00
Mohsen Azimi
95a03e79c3 add EnvironmentPlugin to webpack 2017-03-26 18:40:10 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00