Commit Graph

4486 Commits

Author SHA1 Message Date
Tobias Koppers 7a43a27eda make Compilation.chunks a Set 2018-09-06 17:04:01 +02:00
Tobias Koppers 6ca7ae1c48 make Compilation.modules a Set 2018-09-06 17:03:24 +02:00
Tobias Koppers 4a959b8b83 improve SetHelpers typings 2018-09-06 17:02:20 +02:00
Tobias Koppers f47febd045 add deprecation helpers 2018-09-06 17:02:19 +02:00
Tobias Koppers 9da6003362 Make usedIds in records an array
Make emitted JSON for records stable
2018-09-06 16:05:29 +02:00
Tobias Koppers 0eafdffd0e Stabilize stats item order 2018-09-06 16:05:26 +02:00
Tobias Koppers 149043a134 Make create chunk and module ids filename safe 2018-09-05 21:29:22 +02:00
Tobias Koppers b4860ccebb refactor chunk id plugins 2018-09-05 14:28:52 +02:00
Tobias Koppers 4a7a85ca84 rename index/index2 to pre/postOrderIndex 2018-09-04 09:27:25 +02:00
Tobias Koppers 24185b5ee2 filter modules before sorting for performance reasons 2018-09-04 08:52:22 +02:00
Tobias Koppers 4d7b5b3b5e Refactor module id plugins to be independent 2018-09-03 20:45:44 +02:00
Tobias Koppers bd18e019d4 Clone module attributes instead of moving them 2018-09-03 20:12:55 +02:00
Florent Cailhol 8fda6a562e Add NaturalModuleIdsPlugin 2018-09-03 20:12:55 +02:00
Tobias Koppers 888ad3d684 insert concatenated module at correct position
fixes bug where ids are incorrectly assigned
2018-09-03 20:12:55 +02:00
Tobias Koppers 51a13926ad Merge tag 'v4.17.2' into next
4.17.2
2018-09-03 20:06:19 +02:00
Tobias Koppers 8c8719bd4a
Merge pull request #7954 from webpack/feature/split-chunk-type
add moduleType option to cacheGroup to select by module type
2018-09-03 19:13:26 +02:00
Tobias Koppers 41e59235df emit error when splitChunks.name points to existing chunk name 2018-09-03 10:37:43 +02:00
Tobias Koppers b87e93221b add type option to cacheGroup to select by module type 2018-09-03 10:36:24 +02:00
Tobias Koppers 604460da52 move iterable compare code to comparators 2018-08-28 15:10:30 +02:00
Tobias Koppers b669bec324 add caching to higher-order comparators 2018-08-28 15:09:09 +02:00
Tobias Koppers bad9d8a271 move Module.id into ChunkGraph
remove disconnect and unseal from Module
2018-08-28 15:08:52 +02:00
Tobias Koppers 02b15a1b46 pass chunkGraph to updateHash instead of moduleGraph
pass chunkGraph to compareModulesById instead of moduleGraph
pass chunkGraph to methods of RuntimeTemplate
use comparators from module at some places
2018-08-28 12:06:53 +02:00
aimergenge 7996883cab
solving outputing unnecessary spaces
`…` is causing terminals like git bash on windows to output unnecessary spaces
2018-08-28 16:09:21 +08:00
Tobias Koppers 239ce7fcd9 Use ChunkGraph instead of Compilation in updateHash 2018-08-24 12:02:42 +02:00
Philip Walton 12762ff37f Add sourcemap support for .mjs output files 2018-08-23 11:10:46 -07:00
Tobias Koppers 402cf189ce use JavascriptModulesPluginHooks.shouldRender correctly 2018-08-23 16:54:41 +02:00
Tobias Koppers 670502fc81 Move AsyncDependenciesBlock.chunkGroup into ChunkGraph 2018-08-22 20:17:49 +02:00
Tobias Koppers 3aa2280498 move Module.hash and .renderedHash into ChunkGraph 2018-08-22 19:24:54 +02:00
Tobias Koppers eb63cf80d6 move built flag into Compilation 2018-08-22 15:33:16 +02:00
Tobias Koppers e0f84652c0 remove Module.prefetched
remove prefeteched from Stats
make Compilation.addModuleChain public and remove onModule argument
remove Compilation.prefetch
2018-08-22 15:19:05 +02:00
Tobias Koppers b20556c1ff move profile to ModuleGraph 2018-08-22 14:54:28 +02:00
Tobias Koppers 4135c6e683 remove some unnecessary moduleGraph arguments and property accesses 2018-08-22 12:45:14 +02:00
Tobias Koppers 26022c86a0 move Module.depth into ModuleGraph
nested modules no longer have depth and stay unsorted in stats
2018-08-22 12:45:11 +02:00
Tobias Koppers fe54d717a2 refactor sorting in Stats 2018-08-22 12:45:08 +02:00
Tobias Koppers a92c23ef76 fixes #7930 2018-08-22 11:11:37 +02:00
Tobias Koppers 5a78e96dc9 add backward-compat layer for ModuleGraph and ChunkGraph 2018-08-21 16:17:02 +02:00
Tobias Koppers 42167db4af move Module.index and index2 into ModuleGraph 2018-08-21 16:16:51 +02:00
Tobias Koppers 4dfe88edb0 add moduleGraph argument to comparators 2018-08-21 11:08:07 +02:00
Tobias Koppers 0f1f69a9d6 hide id overriding in HarmonyImportSpecifierDependency 2018-08-21 11:06:59 +02:00
Tobias Koppers a875ddba5b refactor ModuleGraph to use internal dependency 2018-08-21 11:06:00 +02:00
Tobias Koppers 3bb5263bfd move methods from Module into ModuleGraph 2018-08-21 11:04:40 +02:00
Tobias Koppers c21d59f783 Merge tag 'v4.17.0' into next
4.17.0
2018-08-21 11:02:16 +02:00
Tobias Koppers 45e798af68
Merge pull request #7827 from AoDev/feat/ignore-plugin-check-fn
feat(IgnorePlugin): allow user to provide his own check functions
2018-08-21 10:24:32 +02:00
Tobias Koppers ed9691585e
Merge pull request #7907 from Connormiha/simplify-context-replacmnet-plugin
Get rid of typeof for checking undefined
2018-08-21 10:21:29 +02:00
Mihail Bodrov 1f954b4f12 Get rid typeof undef in all lib 2018-08-21 03:26:50 +03:00
Tobias Koppers c2e03951f4
Merge pull request #7922 from webpack/bugfix/concat-globals
fix exporting globals in scope-hoisted modules
2018-08-20 18:09:37 +02:00
Tobias Koppers 9315ce29aa fix exporting globals in scope-hoisted modules
fixes #7905
2018-08-20 10:54:05 +02:00
Tobias Koppers c253b4b130 chunk ids contribute to contenthash for javascript
fixes #7915
2018-08-20 10:04:33 +02:00
Mihail Bodrov efa69cd628 Get rid of typeof for checking undefined 2018-08-17 00:49:30 +03:00
Florent Cailhol a61778aad4 Change stage values 2018-08-16 14:10:55 +02:00
Florent Cailhol 7b02084bc5 Replace Basic and Advanced optimzation hooks by stages 2018-08-16 14:10:51 +02:00
Tobias Koppers a6e1c0693c add TODOs 2018-08-16 14:10:39 +02:00
Tobias Koppers 2dc22d0db0 add SingleEntryPlugin as deprecated export 2018-08-15 21:10:35 +02:00
Tobias Koppers 6d5310fbd6 allow multiple entryModules per chunk
allow to specify ChunkGroup to depend on
move entry modules into ChunkGraph
2018-08-15 11:51:16 +02:00
Kevin Purnelle 6235e99248 feat(IgnorePlugin): allow user to provide his own check functions
The user can provide checkResource and checkContext functions that
will be called with current resource or context respectively.

These functions should return a boolean to decide whether the module
should be ignored or not.

Now the constructor can accept a single option object.

```
const resourceRegExp = /a_regex/
const contextRegExp = /another_regex/

// before:
new webpack.IgnorePlugin(resourceRegExp, contextRegExp)

// alternative:
new webpack.ignorePlugin({resourceRegExp, contextRegExp})
```

Note that from Webpack 5, only passing an object will be allowed,
so we could encourage people to migrate already.
2018-08-14 17:20:10 +02:00
Tobias Koppers 3cf01999b5 add ChunkGraph
move chunk modules and module chunks into the ChunkGraph
remove outdated unit tests
2018-08-14 15:32:13 +02:00
Tobias Koppers 1345ab252d fixes #7887 2018-08-14 11:25:59 +02:00
Tobias Koppers f72d36b9cb add support for generics to tooling 2018-08-14 11:20:20 +02:00
Mihail Bodrov fb9b61b72f Avoid needless sort in Chunk compare 2018-08-13 01:08:30 +03:00
Tobias Koppers 72e8e5f552 fix nested modules 2018-08-09 20:32:31 +02:00
Florent Cailhol a945054079 Hide modules that are not emitted in stats 2018-08-09 20:22:09 +02:00
Tobias Koppers d35e42a14d move Module.issuer into Module.getIssuer(moduleGraph) 2018-08-09 16:44:28 +02:00
Tobias Koppers 34427c1845 migrate to init fragments in ConcatenatedModule 2018-08-09 15:45:45 +02:00
Tobias Koppers 3347700225 improve optimization bailout message usefulness 2018-08-09 15:45:30 +02:00
Sean Larkin 7dc00dbc09
chore(types): add jsdoc types for UnsupportedFeatureWarning class 2018-08-08 11:25:56 -07:00
Tobias Koppers 227952c914 put reexports into the correct init section when possible
fixes #7857
2018-08-08 14:12:54 +02:00
Tobias Koppers 3618cc1b3c remove originModule from Dependencies and add parent module to ModuleGraph 2018-08-07 14:20:53 +02:00
Tobias Koppers 038d056aed add some hints for breaking changes 2018-08-06 21:05:13 +02:00
Tobias Koppers d6cf42e4c2 merge used with usedExports
usedExports = false now means module is not used
2018-08-06 21:05:11 +02:00
Tobias Koppers c4e0a9f72e Move Module.used and Module.usedExports into ModuleGraph 2018-08-06 21:04:01 +02:00
Tobias Koppers 97cc9d7140 Move optimizationBailout into ModuleGraph meta information 2018-08-06 10:42:41 +02:00
Tobias Koppers 565b569b68 Merge tag 'v4.16.5' into next
4.16.5
2018-08-06 09:20:57 +02:00
Tobias Koppers 17ebfb9784 fix #7829
webpack-hot-client seem to call `addEntry` multiple
which causes two Entrypoints with the same name
This lead the bad side effects
i. e. optimization.runtimeChunk no longer works correctly

Now adding an entry with the same name replaces the existing entry
2018-08-03 11:09:26 +02:00
Tobias Koppers 61633aa91c fix #7778
remove prepend in favor of replaces
improve code style in ContextDependencyHelpers
2018-08-03 09:20:23 +02:00
Tobias Koppers 3ef5475183 filter connections while replacing module 2018-08-02 17:54:44 +02:00
Tobias Koppers 381e2db200 replace Module.reasons and Dependency.module with ModuleGraph 2018-08-02 17:54:44 +02:00
Tobias Koppers 11e127d162 pass moduleGraph along with multiple methods 2018-08-02 17:54:42 +02:00
Tobias Koppers ec1329a7d4 make libIdent required
add types
2018-08-02 16:29:20 +02:00
Tobias Koppers 78f01763a2 add getNumberofIdOccurrences to Dependency as override-able method 2018-08-02 16:07:29 +02:00
Tobias Koppers f89b599197 add types to Stats
move recorded property into a WeakMap
remove non-existing property
2018-08-02 16:07:29 +02:00
Tobias Koppers 831e71c797 make argument of DependencyTemplate an object 2018-08-02 16:07:29 +02:00
Tobias Koppers 4ce109f8c1 change arguments of Generator.generate and Module.source into a object to be easier extensible
add JavascriptModulesPlugin.getHooks().shouldRender to decide if a module should be rendered
2018-08-02 16:07:29 +02:00
Tobias Koppers f5a457ffd4 add ExportsSpec type to getExports 2018-08-02 16:04:10 +02:00
Tobias Koppers f68c1f7ab6 add additional arguments to updateHash 2018-08-02 16:04:10 +02:00
Tobias Koppers df204b8e35 add module graph 2018-08-02 16:04:09 +02:00
Tobias Koppers c9eb4c8e01 Merge tag 'v4.16.4' into next
4.16.4
2018-08-02 16:00:39 +02:00
Tobias Koppers a2bddc9195
Merge pull request #7821 from webpack/refactor/use_runtime
Use RuntimeTemplate to generate error code
2018-08-02 15:12:28 +02:00
EECOLOR 2348c3cdc1
Formatting - move arguments to the same line 2018-08-01 10:44:39 +02:00
EECOLOR 7473ed4902
Fix chunkAsset hook call
The `compilation.hook.chunkAsset` hook expects 2 parameters, not three.
2018-08-01 10:19:11 +02:00
Tobias Koppers 32fdca23bf
Merge pull request #7823 from flyyang/refactor/define-before-use-class
Refactor define before use class
2018-07-31 12:04:55 +02:00
Florent Cailhol 64e301c33b Update Prettier 2018-07-31 11:44:32 +02:00
Florent Cailhol 20406a4295 Update ESLint 2018-07-31 11:43:07 +02:00
Tobias Koppers 8ffcd9161e
Merge pull request #7781 from webpack/refactor/dep_vars
Refactor dependency variables
2018-07-31 09:08:48 +02:00
Florent Cailhol 367b02a0f0 Use RuntimeTemplate to generate error code 2018-07-31 09:01:06 +02:00
flyyang 5234abe7b6 Refactor define before use class 2018-07-31 14:17:44 +08:00
Tobias Koppers d6f8e49c3a refactor getInitFraments to take TemplateContext
add a hack to include the current module as property in source
later we will refactor DependencyTemplate.apply to take a TemplateContext too
2018-07-30 23:07:50 +02:00
Tobias Koppers 72cdb84967 bugfix harmony accept should ignore non-harmony modules 2018-07-30 23:07:43 +02:00
Tobias Koppers 7691bfa119 remove unused import 2018-07-30 23:07:37 +02:00
Tobias Koppers 5ae9491501 comments, renames 2018-07-30 23:07:30 +02:00
Tobias Koppers b2dca34043 some properties of dependencies should contribute to hash 2018-07-30 23:07:25 +02:00
Tobias Koppers 2e82dbb63c
Merge pull request #7813 from webpack/refactor/freeze_hooks
Freeze hooks to prevent deopts
2018-07-30 22:47:13 +02:00
Tobias Koppers 8a996186a0 remove range from ModuleDecoratorDependency 2018-07-30 22:42:15 +02:00
Tobias Koppers c5c4f6bdd3 remove DependencyTemplate.getInitFragments.source 2018-07-30 22:42:01 +02:00
Tobias Koppers 294acc00e0 use InitFragment.key to handle harmony import deduplication 2018-07-30 22:41:49 +02:00
Tobias Koppers 0f57f0b5f1 add no-op comment to make it more clear 2018-07-30 22:40:43 +02:00
Tobias Koppers 872839450f move ModuleDecoratorDependency into a separate file 2018-07-30 22:40:31 +02:00
Tobias Koppers 691a5b24b7 simplify addExpression 2018-07-30 22:39:30 +02:00
Tobias Koppers 35547246f9 Hoist require.resolve for performance reasons 2018-07-30 22:39:17 +02:00
Tobias Koppers e79d4e002b add stage to InitFragment 2018-07-30 22:39:04 +02:00
Florent Cailhol 0241db90fb Fix harmony compat injection order 2018-07-30 22:38:40 +02:00
Florent Cailhol a19a0ebaa6 Refactor ProvidedDependency to avoid duplication 2018-07-30 22:38:28 +02:00
Florent Cailhol 71016b1433 Remove DependencyBlockVariable 2018-07-30 22:38:13 +02:00
Florent Cailhol 5553166603 Remove addParsedVariableToModule helper 2018-07-30 22:38:00 +02:00
Florent Cailhol bc62f58c44 Convert ProvidePlugin 2018-07-30 22:37:48 +02:00
Florent Cailhol c545a02ba6 Convert NodeStuffPlugin 2018-07-30 22:37:34 +02:00
Florent Cailhol 6ea5a4ad22 Add types 2018-07-30 22:37:10 +02:00
Florent Cailhol 5a5c4b1b1e Remove unused parser helper 2018-07-30 22:36:57 +02:00
Florent Cailhol 12f3c0f34e Fix TypeError when no import fragments are emitted 2018-07-30 22:36:39 +02:00
Florent Cailhol 55b73a54af Return null when no InitFragment is required 2018-07-30 22:36:23 +02:00
Florent Cailhol 9b7d9eb96f Fix review comments 2018-07-30 22:36:06 +02:00
Florent Cailhol f6a5053fb2 Add a way to inject provided modules 2018-07-30 22:35:52 +02:00
Florent Cailhol f53c50e21a Dedup fragments 2018-07-30 22:35:02 +02:00
Florent Cailhol dcebd57aa4 Replace harmonyInit calls by InitFragments 2018-07-30 22:34:18 +02:00
Tobias Koppers cf5f1d723c format existing code 2018-07-30 21:29:21 +02:00
Florent Cailhol 3992ba3af6 Convert Template to ES6 2018-07-30 19:40:09 +02:00
Florent Cailhol fc4f30329d Freeze hooks to prevent deopts 2018-07-30 14:25:40 +02:00
Tobias Koppers 138687730a only assign module ids for modules in chunks
handle weak dependencies without id correctly
2018-07-27 13:16:54 +02:00
Tobias Koppers 6d9e4f315b Use natural module/chunk ids in mode none 2018-07-27 12:27:57 +02:00
Tobias Koppers 3771daba6a Merge tag 'v4.16.3' into next
4.16.3
2018-07-27 12:21:04 +02:00
Tobias Koppers aac43687fd fix case where empty chunkgroups cause nested chunkgroups to vanish 2018-07-27 10:56:01 +02:00
Florent Cailhol 29c99b1787 Convert GraphHelpers 2018-07-26 22:43:20 +02:00
Florent Cailhol 0db953fae6 Convert SetHelpers 2018-07-26 22:39:36 +02:00
Florent Cailhol 41dd5a9ed1 Convert LocalModulesHelpers 2018-07-26 22:37:36 +02:00
Florent Cailhol dad4a4c539 Convert SizeFormatHelpers 2018-07-26 22:37:21 +02:00
Tobias Koppers 2fa351a178 make ExportMode.module a callback function
fix comment
2018-07-26 15:53:11 +02:00
Florent Cailhol 60ef6a6a30 Make DependencyReference dynamic 2018-07-26 15:31:04 +02:00
Tobias Koppers e02a0c9ecd add types to Template 2018-07-25 13:56:40 +02:00
Tobias Koppers 77e4a2b34c add types to WebAssemblyImportDependency 2018-07-25 13:53:07 +02:00
Tobias Koppers 025d3d0836 remove unused code 2018-07-25 13:17:44 +02:00
Tobias Koppers ea96c6bc93 type templates in ConcatenatedModule 2018-07-25 13:16:08 +02:00
Tobias Koppers 22c4756c9e add more types to Module 2018-07-25 12:38:34 +02:00
Tobias Koppers 0052861178 remove unconsistency with Module._source and originalSource 2018-07-25 12:20:35 +02:00
Tobias Koppers bc10939096 add types for Module and subclasses
better way to handle "optional" methods
2018-07-25 12:12:17 +02:00
Sven SAULEAU 38c34030a0
Merge remote-tracking branch 'upstream/master' into chore-bump-webassemblyjs11 2018-07-25 10:06:37 +02:00
Tobias Koppers eba85a491d add types to Dependency and subclasses 2018-07-25 09:33:48 +02:00
Tobias Koppers fcf3f63f0e add DependencyTemplate base class and inherit types from this
fix a few typing issues
2018-07-23 20:11:59 +02:00
Tobias Koppers 543b4b6dcc add a few types that were missed last time 2018-07-23 17:58:00 +02:00
Tobias Koppers 7036ec488b remove the need to rewrite chunk in reasons 2018-07-23 12:20:47 +02:00
Tobias Koppers 66d3f319a6 Merge tag 'v4.16.2' into next
4.16.2
2018-07-23 12:19:16 +02:00
Tobias Koppers b8c47a7688
Merge pull request #7628 from reduckted/dllreferenceplugin-graceful-json-parse-failure
Catch errors while parsing DLL manifest
2018-07-23 10:37:47 +02:00
Tobias Koppers 699fe21158
Merge pull request #7750 from ak-14/node-dependencies
Handle module.require, require.main.require, and module.parent.require
2018-07-23 10:34:53 +02:00
Tobias Koppers 8614c75f11 run inherit types tool on existing code 2018-07-21 13:50:18 +02:00
Tobias Koppers dcd644253f
remove comment 2018-07-20 09:28:48 +02:00
Abdulrahman Alkhelaifi 80c3e433c4 Handle module.require, require.main.require, and module.parent.require
- Resolve module.require dependencies

- Add require.main.require and module.parent.require as unsupported
2018-07-19 13:41:58 -07:00
Tobias Koppers e80d49445c fix sorting of reasons 2018-07-19 19:44:44 +02:00
Tobias Koppers 9fd6af8121
Merge pull request #7657 from mohsen1/enable-noImplicitThis
Enable noImplicitThis TypeScript compiler option
2018-07-18 00:11:56 +02:00
Tobias Koppers bc863596f4
remove unneeded type import 2018-07-17 11:47:22 +02:00
Tobias Koppers 537bfc8b3b Merge branch 'next' into remove/deprecated-optimization-ids 2018-07-17 11:33:22 +02:00
Tobias Koppers 249e7d56bb fix merge issue 2018-07-17 11:32:15 +02:00
Mohsen Azimi b3a7c4dd32 Merge branch 'master' of git://github.com/webpack/webpack into ContextExclusionPlugin-types 2018-07-16 20:57:03 -07:00
Sven SAULEAU b310b9b45c
feat: remove LEB128 opt 2018-07-16 13:57:32 +02:00
Tobias Koppers 05f05e1759 Merge remote-tracking branch 'origin/refactor/chunk_module_ids' into remove/deprecated-optimization-ids 2018-07-16 10:38:43 +02:00
Tobias Koppers 5e72a6505a remove deprecated optimization options
and update test cases
2018-07-16 10:32:02 +02:00
Tobias Koppers 86ff1a4642 Merge tag 'v4.16.1' into next
4.16.1
2018-07-16 10:30:31 +02:00
Tobias Koppers 1a16a79480 Merge remote-tracking branch 'origin/master' into enable-noImplicitThis 2018-07-16 10:18:25 +02:00
Tobias Koppers db1475cb8c
Merge pull request #7656 from mohsen1/DefinePlugin-type
Add DefinePlugin JSDoc types
2018-07-15 20:30:07 +02:00
Tobias Koppers 3f13ed765f
Merge pull request #7706 from webpack/remove/format-location
update formatLocation to only accept location objects
2018-07-15 20:27:11 +02:00
Tobias Koppers 2702273f6f
Merge pull request #7726 from webpack/update/linters
Update ESLint and Prettier
2018-07-15 20:24:00 +02:00
Tobias Koppers 60719c16b0
Merge pull request #7669 from webpack/refactor/compareLocations
No longer accept strings in compareLocations
2018-07-15 13:23:16 +02:00
Tobias Koppers 84d57e38b4
Merge branch 'master' into DefinePlugin-type 2018-07-15 10:10:33 +02:00
Tobias Koppers 9f0eeed919 fix unit test, add handling for line only location 2018-07-15 09:57:36 +02:00
Florent Cailhol 7195bae9b4 Update ESLint and Prettier 2018-07-14 22:52:42 +02:00
Florent Cailhol 1f0e77c9de Change how non-objects are handled 2018-07-14 22:36:02 +02:00
Florent Cailhol fe29426200 Remove Dependency.compare 2018-07-14 22:36:02 +02:00
Florent Cailhol 445c2c889c No longer accept strings in compareLocations 2018-07-14 22:35:43 +02:00
Florent Cailhol 0448c1c338 Use chunkIds and moduleIds 2018-07-14 21:59:42 +02:00
Florent Cailhol ee64e6dcfc Default 'source' to 'false' for stats 2018-07-14 21:28:26 +02:00
Tobias Koppers b0518552e5
Merge pull request #7707 from webpack/remove/deprecated
remove deprecated stuff
2018-07-13 21:36:19 +02:00
Tobias Koppers 24cfc39658 fix loc object in ModuleParseError 2018-07-13 21:30:55 +02:00
Tobias Koppers a672e8f2f9 remove deprecated extracted hooks 2018-07-13 17:30:26 +02:00
Tobias Koppers dbfea49e6f fix case where non-object is passed to addOrigin
add typings to ensure that this doesn't happen again
2018-07-13 17:27:31 +02:00
Tobias Koppers 753dcce188 fix order of occurrence order plugin
remove enforced additional occurrence order plugin from test cases
make test cases more independent of module/chunk order/ids
2018-07-13 16:15:01 +02:00
Mohsen Azimi d3bbb6d7cb Merge branch 'master' of git://github.com/webpack/webpack into ContextExclusionPlugin-types 2018-07-12 18:08:15 -07:00
Mohsen Azimi 2fd5ddfea6 cr 2018-07-12 18:08:06 -07:00
Mohsen Azimi c3c4494a83 cr 2018-07-12 18:06:21 -07:00
Mohsen Azimi b0061c7fed Code review 2018-07-12 18:00:44 -07:00
Tobias Koppers ff7d0f56e7
Merge pull request #7704 from webpack/refactor/dependency-templates
make DependencyTemplates a new class
2018-07-12 19:11:58 +02:00
Tobias Koppers ef40df2d1f fix usage of DependencyTemplates and types 2018-07-12 17:12:00 +02:00
Mohsen Azimi d539bb1101 Drop entrypoint 2018-07-11 19:00:17 -07:00
Tobias Koppers 568601c7fa remove `exec` from loader context
`require-from-string` can be used instead
2018-07-11 17:48:47 +02:00
Tobias Koppers e0abce0dd8 make DependencyTemplates a new class 2018-07-11 13:11:08 +02:00
Tobias Koppers 9f188a8daa update formatLocation to only accept location objects 2018-07-11 13:10:51 +02:00
Tobias Koppers 1d87734832 remove backward-compat wrapper from splitChunks.cacheGroups argument 2018-07-11 13:08:33 +02:00
Tobias Koppers 2b14ddc984 Merge tag 'v4.16.0' into next
4.16.0
2018-07-11 11:13:47 +02:00
Tobias Koppers 569c415623
Merge branch 'master' into enable-noImplicitThis 2018-07-11 08:43:26 +02:00
Tobias Koppers 6f72243669
Merge pull request #7700 from webpack/bugfix/loc-in-single-entry-and-loader-plugin
add types and fix incorrect loc type
2018-07-11 08:06:09 +02:00
Tobias Koppers 3366421f17
Merge pull request #7663 from webpack/feature/automatic-name-prefix
automaticNamePrefix and name merging bugfix
2018-07-10 20:45:52 +02:00
Tobias Koppers 8891bd5f04
Merge pull request #7696 from webpack/bugfix/max-size-reasons
copy chunk reason to maxSize parts
2018-07-10 20:43:19 +02:00
Tobias Koppers b93225a6a1 add types and fix incorrect loc type
fix formatLocation for types
2018-07-10 18:18:32 +02:00
Tobias Koppers baa450dc4d
Merge pull request #7698 from webpack/bugfix/deprecated
replace deprecated method
2018-07-10 16:36:54 +02:00
Tobias Koppers b32a4f5f64
Merge branch 'master' into bugfix/max-size-reasons 2018-07-10 16:13:47 +02:00
Tobias Koppers f95d0f0537
Merge pull request #7695 from webpack/bugfix/sort-ids-stats
sort ids in Stats numerical
2018-07-10 16:13:13 +02:00
Tobias Koppers 1869d8e300
Merge pull request #7694 from webpack/bugfix/loc-in-context
make loc in context dependencies a correct object
2018-07-10 16:12:50 +02:00
Tobias Koppers 78d8f4a011
Merge pull request #7691 from mathiasbynens/mjs
Add .mjs to default DelegatedModule options.extensions
2018-07-10 16:11:52 +02:00
Tobias Koppers 8876514cdb replace deprecated method 2018-07-10 16:03:13 +02:00
Tobias Koppers 692faf2e45 sort ids in Stats numerical 2018-07-10 11:32:45 +02:00
Mathias Bynens d8cd5d04de
Add .mjs to default DelegatedModule options.extensions 2018-07-10 11:12:08 +02:00
Tobias Koppers 9362a65287 copy chunk reason to maxSize parts 2018-07-10 10:28:06 +02:00
Tobias Koppers 79846d138f make loc in context dependencies a correct object 2018-07-10 10:25:13 +02:00
Tobias Koppers 9f0056b10d
Merge pull request #7686 from webpack/feature/module-chunk-ids-option
add new options moduleIds and chunkIds
2018-07-10 10:19:03 +02:00
Tobias Koppers 2db829f306
Merge pull request #7688 from RaananW/output-lib-root-as-array
devtool and output.library.root as array throws an error
2018-07-10 09:41:41 +02:00
Tobias Koppers d5983ed62b
Merge pull request #7687 from webpack/chore/imports
Simplify imports
2018-07-10 09:40:07 +02:00
Tobias Koppers 24b96463ce
Merge pull request #7685 from zroug/electron-renderer-wasm
Added support for WebAssembly modules when target is set to `electron-renderer`
2018-07-10 09:39:51 +02:00
ferhat elmas 271b77d45f all: typo fixes 2018-07-09 22:54:35 +02:00
Raanan Weber fa7cf3b218
formatting 2018-07-09 17:50:13 +02:00
Raanan Weber c12ab8d5e4 Recursive getDevtoolNamespace
Supporting the case where options.output.library.root is an Array:

```javascript
output: {
  library: {
    root: ["MyLibrary", "Sub"],
    amd: "my-library",
    commonjs: "my-common-library"
  },
  libraryTarget: "umd"
}
```
2018-07-09 17:28:32 +02:00
Tobias Koppers 559cf94edb Simplify imports 2018-07-09 15:09:00 +02:00
Tobias Koppers 3fc4eb752f add new options moduleIds and chunkIds
deprecate namedModules, hashedModuleIds, namedChunks
add a lot of TODOs for webpack 5
split OccurenceOrderPlugin into separate plugins for modules and chunks
add NaturalChunkOrderPlugin and enable it in development
2018-07-09 15:06:19 +02:00
zroug b892065db0 Added support for WebAssembly modules when target is `electron-renderer` 2018-07-09 14:39:48 +02:00
Tobias Koppers c7c34886ff
Merge pull request #7672 from webpack/refactor/hmr_hooks
Refactor HMR hooks
2018-07-09 13:20:35 +02:00
Tobias Koppers 0c5433ce6f
Merge pull request #7673 from webpack/refactor/jsonp_hooks
Use JsonpMainTemplatePlugin.hooks instead of MainTemplate#hooks
2018-07-09 13:19:29 +02:00
Florent Cailhol 5c8983f31f Deprecate Dependency.compare 2018-07-09 08:49:01 +02:00
Florent Cailhol c9bd29cdf5 Add type guard 2018-07-09 08:44:50 +02:00
Florent Cailhol 838002baad Add type guard 2018-07-09 08:43:45 +02:00
Florent Cailhol 668c2e428c Introduce HMRP.hooks instead of extending Parser#hooks 2018-07-09 08:43:45 +02:00
Tobias Koppers d24e49c5dd
Merge pull request #7670 from webpack/refactor/remove_some_checks
Remove extra arguments checks
2018-07-08 13:38:03 +02:00
Tobias Koppers 10430aed8c
Merge pull request #7671 from webpack/refactor/webpack_web
Remove obsolete webpack.web.js
2018-07-08 13:33:06 +02:00
Sean Larkin 2d9db1a1f6 chore(types): add types to EnvironmentPlugin 2018-07-08 08:15:02 +01:00
Florent Cailhol 4984ed17a2 Remove Dependency#getReference existance check 2018-07-06 13:43:36 +02:00
Florent Cailhol 8e456f58ec Use JsonpMainTemplatePlugin.hooks instead of MainTemplate#hooks 2018-07-06 13:19:03 +02:00
Florent Cailhol 854bdafce4 Remove webpack.web.js and its deps 2018-07-06 11:48:19 +02:00
Florent Cailhol 26d33424bb Replace basename helper by node's one 2018-07-06 11:20:01 +02:00
Florent Cailhol 112af1e7ec Remove unneeded arguments checks 2018-07-06 11:19:30 +02:00
Tobias Koppers 6623a2e292 Merge tag 'v4.15.1' into next
4.15.1
2018-07-06 09:33:43 +02:00
Tobias Koppers 93a28126a6 fixes order for reexported dependencies
fixes #7665
2018-07-05 20:40:19 +02:00
Tobias Koppers 6f53dbe31d
Merge pull request #7655 from skratchdot/issue-7654
prevent UnhandledPromiseRejectionWarning in node 6
2018-07-05 15:11:27 +02:00
Tobias Koppers 7fc88cd55f
Merge pull request #7662 from webpack/bugfix/undefined-in-max-size
fixes usage of automaticNameDelimiter in cache groups
2018-07-05 14:42:19 +02:00
Tobias Koppers 9344801fb7 fix wrong priority handling when merging multiple cache groups by name 2018-07-05 14:39:07 +02:00
Tobias Koppers 14968acc00 add automaticNamePrefix option
allow automaticNameDelimiter on cacheGroup level
2018-07-05 14:13:13 +02:00
Tobias Koppers 67d932dfe9
Merge pull request #7661 from webpack/bugfix/split-chunks-leak
make the cache a WeakMap to not leak memory
2018-07-05 13:33:31 +02:00
Tobias Koppers 8e8f1856e9 fixes usage of automaticNameDelimiter in cache groups 2018-07-05 13:19:55 +02:00
Tobias Koppers 64b22c4806 make the cache a WeakMap to not leak memory
fixes #6929
2018-07-05 12:50:51 +02:00
Tobias Koppers 6172d3c2eb fix memory leak with HMR
fixes #6929
2018-07-05 11:25:34 +02:00
Tobias Koppers 3b6f475635
Use push null to end the stream 2018-07-05 10:32:53 +02:00
Mohsen Azimi 57f21c0d20 Add JSDoc types for ContextExclusionPlugin 2018-07-05 08:20:24 +03:00
Mohsen Azimi a0e1ad920e Enable noImplicitThis TypeScript compiler option 2018-07-05 08:07:46 +03:00
Tobias Koppers 0a06f19fd8 Merge tag 'v4.15.0' into next
4.15.0
2018-07-04 22:19:50 +02:00
Tobias Koppers bd2e3448ec Merge tag 'v4.14.0' into next
4.14.0
2018-07-04 22:10:53 +02:00
Tobias Koppers f0ae54d478 Merge tag 'v4.13.0' into next
4.13.0
2018-07-04 22:08:31 +02:00
Tobias Koppers 994675c4fe Merge tag 'v4.12.2' into next
4.12.2
2018-07-04 21:55:42 +02:00
Tobias Koppers 7aa1efb70e
Merge pull request #7651 from webpack/feature/split-chunks-max-size
add `splitChunks.maxSize` option
2018-07-04 21:37:11 +02:00
skratchdot 6705141ef6 prevent UnhandledPromiseRejectionWarning in node 6
Fixes #7654
2018-07-04 11:33:27 -04:00
Tobias Koppers fb2c24bf76 add `splitChunks.maxSize` option
add `splitChunks.fallbackCacheGroup`
add `splitChunks.hidePathInfo`
move `contextify` into utils
add some types
2018-07-04 10:45:02 +02:00
Mohsen Azimi b01f378a08 Fix @template syntax error in Compilation.js iterationOfArrayCallback 2018-07-03 16:57:16 -07:00
Mohsen Azimi 0ffb70cf37 Merge branch 'type-DefinePlugin' of github.com:mohsen1/webpack into type-DefinePlugin 2018-07-03 16:49:54 -07:00
Mohsen Azimi 3f8e97100d Merge branch 'master' of git://github.com/webpack/webpack into type-DefinePlugin 2018-07-03 16:46:51 -07:00
Florent Cailhol a46517f8ff Fix lint error 2018-07-03 15:35:24 +02:00
Florent Cailhol 5bc6b8d50e Rename ParserHelpers into JavascriptParserHelpers 2018-07-03 14:08:43 +02:00
Florent Cailhol 6097c5f993 Destructure parser helpers 2018-07-03 14:08:43 +02:00
Florent Cailhol d33f49d96f Rename Parser into JavascriptParser 2018-07-03 14:08:43 +02:00
Tobias Koppers 1ad71e01f9 add helpful error when importing wasm in initial chunk 2018-07-02 16:18:49 +02:00
reduckted 5b6f99b8d4 Used the compiler's context to get a relative path to the manifest file. 2018-07-02 21:53:16 +10:00
reduckted 8f748e266b Created a new WebpackError derived class for dll manifest errors. 2018-07-02 19:58:45 +10:00
Tobias Koppers 2aac83bd95 rename optimization.splitChunks.cacheGroups.vendors -> defaultVendors
add automaticNamePrefix option
allow automaticNameDelimiter on cacheGroup level
2018-07-02 10:15:13 +02:00
Tobias Koppers c3eecbd7b8
spacing 2018-07-02 08:29:22 +02:00
reduckted cb553050c3 Catch errors while parsing DLL manifest
If the DLL manifest is blank or malformed, parsing it will throw
an error, and if left uncaught will kill the process if webpack is
in watch mode. Catching the error and adding it to the compilation's
errors will result in a failed compilation, but will keep the
process running while in watch mode.
2018-06-30 22:46:00 +10:00
Sean Larkin 2d1cd74d37
Merge branch 'master' into feature/type-compiler-compilation-save 2018-06-29 11:53:40 -07:00
Tobias Koppers b06cca2371
Merge pull request #7626 from webpack/format/arrow-functions
arrow functions, remove or improve eslint-disable comments
2018-06-29 20:41:54 +02:00
Tobias Koppers 949df5bb5a update webpack-sources types and remove second argument 2018-06-29 19:12:33 +02:00
Tobias Koppers 6e68f96d16
Merge branch 'master' into feature/type-compiler-compilation-save 2018-06-29 19:02:35 +02:00
Tobias Koppers 5a185c954e
Merge pull request #7585 from webpack/feature/hook-into-get-reference
hook into dependency reference
2018-06-29 14:00:56 +02:00
Tobias Koppers 522b324f61 allow emitting to the same filename when hash matches
fixes webpack-contrib/mini-css-extract-plugin#190
fixes webpack-contrib/mini-css-extract-plugin#194
2018-06-29 10:03:21 +02:00
Tobias Koppers b181bc47aa
Merge pull request #6793 from ronkorving/define-functions
DefinePlugin: add ability to use function return values
2018-06-28 14:01:23 +02:00
Tobias Koppers e08399a02b
Merge pull request #7017 from rtsao/crossorigin-attr
Add script src origin check to ensure crossorigin attribute is only set when needed
2018-06-28 14:00:38 +02:00
Tobias Koppers b848ec5bfd
Merge pull request #6346 from Connormiha/simplife-has-dependencies
Simplify check hasDependencies and add unit tests
2018-06-28 12:07:53 +02:00
Tobias Koppers 8420c73378 Merge branch 'master' into define-functions
# Conflicts:
#	lib/DefinePlugin.js
#	test/WatchTestCases.test.js
#	test/statsCases/define-plugin/expected.txt
2018-06-28 12:05:00 +02:00
Tobias Koppers 5c4ffd5b90 fix tests and code 2018-06-28 11:11:24 +02:00
Tobias Koppers 6478fb9e2a Merge branch 'master' into crossorigin-attr 2018-06-28 10:27:45 +02:00
Tobias Koppers dcf3e09a84
Merge pull request #7399 from webpack/feat-implement-option-for-hashed-module-ids-plugin
feat: implement option for `HashedModuleIdes` plugin
2018-06-28 10:23:37 +02:00
Tobias Koppers db63d9fc50 fixes minor type issue 2018-06-28 10:21:25 +02:00
Mohsen Azimi 15ec8cfc76 Merge branch 'master' of github.com:webpack/webpack into type-DefinePlugin 2018-06-27 19:39:20 -07:00
Tobias Koppers b451035acd Merge branch 'next' into fix/runtime-chunk-filename 2018-06-27 16:00:00 +02:00
Tobias Koppers d0c89618f3
Merge branch 'master' into feature/type-compiler-compilation-save 2018-06-27 14:58:10 +02:00
Tobias Koppers 7beac3c645
Merge branch 'master' into feature/hook-into-get-reference 2018-06-27 14:34:28 +02:00
Tobias Koppers 569de58ec7
use isOnlyInitial instead 2018-06-27 13:55:01 +02:00
Tobias Koppers ad8f496745 arrow functions, remove or improve eslint-disable comments 2018-06-27 13:48:13 +02:00
Tobias Koppers e655de8291 Merge branch 'master' into feature/chunk-module-index
# Conflicts:
#	test/__snapshots__/StatsTestCases.test.js.snap
2018-06-27 12:55:22 +02:00
Tobias Koppers 066cddaaa7
Merge pull request #7597 from webpack/refactor/disable_legacy_plugins
Disable legacy plugins
2018-06-27 12:51:58 +02:00
Tobias Koppers 4f96e3302e
Merge pull request #7612 from webpack/refactor/chunkgroup_checks
Remove useless checks on ChunkGroup
2018-06-27 12:51:00 +02:00
Tobias Koppers 3263e9524f
Merge pull request #7611 from webpack/refactor/node_env
Do not set nodeEnv when 'mode=none'
2018-06-27 12:49:37 +02:00
Florent Cailhol e763d87960 Remove useless checks on ChunkGroup 2018-06-27 11:40:24 +02:00
Florent Cailhol b9b81b4002 Do not set nodeEnv when 'mode=none' 2018-06-27 11:18:20 +02:00
Florent Cailhol 91663f19a2 Remove deprecated APIs 2018-06-27 10:08:12 +02:00
Tobias Koppers 9dacf8676f
Merge pull request #7601 from webpack/bugfix/hash-entry-chunks
fixes #7577
2018-06-26 21:05:08 +02:00
Tobias Koppers 0f587763e1 add per chunk index and index2
refactor index generation
2018-06-26 18:26:47 +02:00
Sergey Tatarintsev 2f28947fa0 Fix: entrypoints use filename when runtimeChunk: 'single' is used
Fix #6598
2018-06-26 18:00:24 +02:00
Tobias Koppers e38e076b98 fixes #7577 2018-06-26 17:19:37 +02:00
Tobias Koppers 8e4a00fd2d
Merge pull request #7592 from webpack/refactor/remove_tapable
Remove Tapable compatibility
2018-06-26 16:26:55 +02:00
Tobias Koppers aab3554cad
Merge pull request #7574 from byzyk/types/ignore-plugin
chore(types): IgnorePlugin
2018-06-26 16:20:07 +02:00
Tobias Koppers 258d9b6bf6
Merge pull request #7600 from webpack/bugfix/missing-module
fixes #7499
2018-06-26 16:12:36 +02:00
Tobias Koppers ab7ecb30ee fixes #7499 2018-06-26 15:27:44 +02:00
byzyk 022542f8a6 revert 'update defaults', update jest snapshot 2018-06-26 15:21:00 +04:00
byzyk 1fd67d6ddc update defaults in Defaulter 2018-06-26 14:00:48 +04:00
byzyk b4ae9728d0 update defaults 2018-06-26 13:50:00 +04:00
Florent Cailhol 1f1aac8f26 Disable SystemJS plugin 2018-06-26 11:09:05 +02:00
Florent Cailhol 30dfe09020 Disable RequireJS plugin 2018-06-26 10:59:42 +02:00
Florent Cailhol 069534bb23 Remove unused import 2018-06-26 10:24:22 +02:00
Florent Cailhol c68d0d2171 Remove Tapable compatibility 2018-06-26 08:31:08 +02:00
Tobias Koppers 4d57d78264 generate error code when json wasn't parsed 2018-06-25 18:41:29 +02:00
Tobias Koppers a5e55de8e9 skip harmony accept dependency in non-harmony modules 2018-06-25 18:40:29 +02:00
Tobias Koppers 94c72731fb Merge branch 'master' of https://github.com/kamranahmedse/webpack into bugfix/json-stringify 2018-06-25 17:44:50 +02:00
Tobias Koppers deb798d8a7 add TODO comment 2018-06-25 16:42:19 +02:00
Tobias Koppers ee5574dc16 allow iterable for SortableSet 2018-06-25 16:37:20 +02:00
Tobias Koppers c6c3eba1c0 remove type duplication 2018-06-25 16:36:59 +02:00
Tobias Koppers 3890b2b09b fix type 2018-06-25 16:30:02 +02:00
Tobias Koppers 5625647f05 add description 2018-06-25 16:27:57 +02:00
Tobias Koppers a39c846c78 Cast dependency.constructor to correct type 2018-06-25 16:24:49 +02:00
Tobias Koppers 41343d1763 add TODO comments 2018-06-25 16:18:21 +02:00
Tobias Koppers 9f596f6357 remove unneeded type 2018-06-25 16:18:08 +02:00
Tobias Koppers 2ac6a85482 cleanup DependencyTemplates 2018-06-25 16:15:17 +02:00
Tobias Koppers a41a0fb799 use correct Hash interface 2018-06-25 16:01:57 +02:00
Tobias Koppers 96c5dd1cb0 add some TODOs, add Hash type 2018-06-25 10:53:10 +02:00
Tobias Koppers 763ce22aa7 spacing of hook list 2018-06-25 10:51:33 +02:00
Tobias Koppers 5b4547e0ac cleanup Hash types 2018-06-25 10:44:54 +02:00
Tobias Koppers c774f030f1 merge DependencyLocation and disallow string locations 2018-06-25 10:44:34 +02:00
Tobias Koppers 8ae803ba13 type fixes 2018-06-25 10:09:39 +02:00
Tobias Koppers ecdd6b1664 Merge branch 'master' into feature/type-compiler-compilation-save 2018-06-25 09:32:46 +02:00
Sam Saccone 735f99c01b Fix race condition in profiling plugin.
Based on some digging in this git history for the profiling plugin it looks like this commit exacerbated the issue:
883088e

Note, we are calling end() and then writeStream right after we call flush on the trace object
64b514e9bd/lib/trace-event.ts (L123)

The trace object is only calling _push to the writable stream but in no way ensuring that all data that has been pushed has actually been written to the output stream sooo we find ourselves encounter 🐎 [race] conditions.
2018-06-23 11:27:18 -07:00
Sean Larkin 87589e72d9 add NormalModuleType inline 2018-06-23 10:53:59 -04:00
Sean Larkin b337e2b829 Merge branch 'feature/type-compiler-compilation-save' of https://github.com/webpack/webpack into feature/type-compiler-compilation-save 2018-06-23 10:29:39 -04:00
Sean Larkin f64f75e55f revert function style, fix a few types, etc 2018-06-23 10:24:36 -04:00
Tobias Koppers be896f2b34 fix bug 2018-06-23 15:30:04 +02:00
Tobias Koppers 3502287bbb emit correct code for reexport unused exports 2018-06-23 15:13:17 +02:00
Tobias Koppers 50fe2e79ee add Compilation.getDependencyReference and hooks to override it
expose DependencyReference class
2018-06-23 15:13:14 +02:00
Tobias Koppers e1f0a66fd9 add note about webpack 5 refactoring 2018-06-23 14:47:09 +02:00
Tobias Koppers 3fb49dec05
Merge pull request #7581 from TimHambourger/master
Implement all path variables for webworker dynamic imports
2018-06-23 14:37:59 +02:00
Sean Larkin f62a443adf
Merge branch 'master' into feature/type-compiler-compilation-save 2018-06-23 14:05:41 +03:00
Tobias Koppers 2bc5437093
Merge pull request #7532 from Legends/CommentCompilationWarning
CommentCompilationWarning typings
2018-06-23 13:03:37 +02:00
Mohsen Azimi 6759c51f1e Do the todos 2018-06-22 14:17:55 -07:00
Mohsen Azimi faaaec4023 Merge branch 'master' of github.com:webpack/webpack into type-DefinePlugin 2018-06-22 14:06:22 -07:00
Legends 2fb9a6c10f remove typedef Position import 2018-06-22 12:04:38 +02:00
Tobias Koppers 4fc03e17d1
Merge pull request #7531 from Legends/APP
AutomaticPrefetchPlugin typings
2018-06-22 11:57:14 +02:00
Tim Hambourger 1ef124143a Implement all path variables for webworker dynamic imports 2018-06-22 00:16:14 -05:00
Legends afdbf71ccb removing typedef exports 2018-06-21 20:58:54 +02:00
Legends 7969a5a525 Importing typedef from Dependency.js ??? Please review. 2018-06-21 17:36:12 +02:00
Sean Larkin 968edbf77d fix(types): fix errors and linting errors 2018-06-21 14:38:17 +03:00
byzyk a96ac96780 add type for resource and context 2018-06-21 14:53:41 +04:00
byzyk 4c3f04a7cf result -> TODO 2018-06-21 14:47:15 +04:00
byzyk 36a7f8d4cb make properties private 2018-06-21 14:45:33 +04:00
Legends b03804eabf added Compiler, @returns void 2018-06-21 12:39:48 +02:00
byzyk 306f5c2d75 add types 2018-06-21 14:28:20 +04:00
Sean Larkin c3ebef7f25
Merge branch 'master' into feature/type-compiler-compilation-save 2018-06-21 11:07:33 +03:00
byzyk 47b888650a add types 2018-06-20 16:52:27 +04:00
Tobias Koppers 5c014a2bd8
Merge pull request #7513 from mohsen1/SortableSet-types
Add SortableSet types
2018-06-20 13:23:20 +02:00
Tobias Koppers e037a5f51f Merge branch 'master' into marcusdarmstrong-external-module-fix 2018-06-20 12:26:18 +02:00
Tobias Koppers 6f90257b5b
Merge pull request #7507 from webpack/feature/dependency-order
add order to dependency reference
2018-06-20 12:17:26 +02:00
Tobias Koppers 7c5cab0b0f remove eslint disable comment 2018-06-20 12:12:35 +02:00
Tobias Koppers 3e778b85c7 fix minor type issues and linting 2018-06-20 12:04:53 +02:00
Tobias Koppers f0dd48bddd
Merge pull request #7544 from Legends/CompatabilityPlugin
CompatabilityPlugin typings added
2018-06-20 10:54:44 +02:00
Tobias Koppers 58ac64023c
Merge pull request #7558 from webpack/bugfix/split-chunks-reuse
fixes #7499
2018-06-20 10:39:39 +02:00
Mohsen Azimi 04d2af0825 Sean comments (even more code questions?) 2018-06-19 15:48:00 -07:00
Mohsen Azimi 5c43271397 remove all ts syntax 2018-06-19 15:35:58 -07:00
Mohsen Azimi 4859c926ad CR comments - remove TS syntax (one last type error) 2018-06-19 15:32:15 -07:00
Tobias Koppers 3f6450410a improve error message for circular reexports
fixes #7547
2018-06-19 23:19:28 +02:00
Legends f3223d0a34 Changed TODO => Compiler 2018-06-19 21:19:20 +02:00
Tobias Koppers 994613bc20 fixes #7499 2018-06-19 20:47:48 +02:00
Legends 11ebd5e4d4 CompatibilityPlugin typings added 2018-06-15 20:15:27 +02:00
evilebottnawi 07a50001f0 remove comment 2018-06-15 18:55:25 +03:00
Legends 16bf799cb8 CommentCompilationWarning typings 2018-06-14 18:25:43 +02:00
Legends 60e1afe19c AutomaticPrefetchPlugin typings added 2018-06-14 16:51:20 +02:00
Ryan Tsao 2755a0e82b Remove redundant code after merge 2018-06-12 14:34:23 -07:00
Ryan Tsao 774c0b9d89 Merge branch 'master' into crossorigin-attr 2018-06-12 14:13:52 -07:00
Mohsen Azimi 0874383dcb Fix lint 2018-06-09 19:37:09 -07:00
Mohsen Azimi c91eff8f9a Merge branch 'master' of github.com:webpack/webpack into type-DefinePlugin 2018-06-09 19:30:05 -07:00
Mohsen Azimi ce6ac00b0f Merge branch 'master' of git://github.com/webpack/webpack into type-sortable-set 2018-06-09 11:14:31 -07:00
Tobias Koppers dabbfa7c4e remove unneeded array 2018-06-08 13:21:18 +02:00
Tobias Koppers 01b02e6e49 add webpack 5 comments 2018-06-08 13:21:06 +02:00
Tobias Koppers b4699c0657 add order for DependencyReference
and add types for touched code
2018-06-08 13:20:57 +02:00
Tobias Koppers 60e1076769
Merge pull request #7407 from prplx/master
Refactor JsonpMainTemplatePlugin
2018-06-07 23:40:39 +02:00
Tobias Koppers ff224a7cee Merge branch 'master' into master 2018-06-07 17:47:04 +02:00
Tobias Koppers 47101fd603
Merge pull request #7489 from mohsen1/update-tracer
Update "chrome-trace-event" package and remove types
2018-06-07 17:44:26 +02:00
Tobias Koppers 39d0bcb595
spacings 2018-06-07 14:22:35 +02:00
Tobias Koppers 5c604f93f6
Merge branch 'master' into feat-implement-option-for-hashed-module-ids-plugin 2018-06-07 14:21:09 +02:00
Tobias Koppers f28bb4e60e
add webpack 5 comment 2018-06-07 14:16:26 +02:00
Tobias Koppers 31b755a493
Merge pull request #7498 from webpack/bugfix/hmr-parent-import
add parents correctly when creating namespace objects
2018-06-07 12:49:01 +02:00
Tobias Koppers 603cb60b00
Merge pull request #7496 from build-your-own/master
change variable defined identifier let to const
2018-06-07 10:04:02 +02:00
Tobias Koppers b9229fa0a7 add parents correctly when creating namespace objects
fixes #7477
2018-06-07 10:00:31 +02:00
Tobias Koppers 9ac4045d5d
Merge pull request #7473 from webpack/feat/optional-catch-binding
Add support for ECMAScript 2019
2018-06-07 08:37:49 +02:00
Mrkou47 d6d7119778 change variable defined identifier let to const 2018-06-07 14:37:08 +08:00
Tobias Koppers 551384a26e
Merge pull request #7493 from webpack/bugfix/issue-7492
fixes #7492
2018-06-07 08:25:17 +02:00
Tobias Koppers b4246451bb
Merge pull request #6542 from mc-zone/feature/module-build-error-with-loader-name
Add loader name to error message. Resolves #2878
2018-06-06 21:32:15 +02:00
Florent Cailhol 4e15f64402 Add optional catch binding support 2018-06-06 21:30:53 +02:00
Tobias Koppers ba2f247116 fix typing problem 2018-06-06 18:49:20 +02:00
Mohsen Azimi 1d39cce941 Type SortableSet 2018-06-06 08:11:30 -07:00
Tobias Koppers 79a1defd88 fixes #7492 2018-06-06 16:37:23 +02:00
Sven SAULEAU 0288128cb9
feat: get start func from context 2018-06-06 11:06:40 +02:00
Sven SAULEAU 6e85ac5468
feat: use function matcher 2018-06-06 10:39:06 +02:00
Mohsen Azimi 48a1e5166e Update "chrome-trace-event" package and remove types 2018-06-05 20:38:48 -07:00
Tobias Koppers 8e3be48da4 allow to disable wasm import mangle
disable it by default (temporary)
2018-06-05 23:49:02 +02:00
Tobias Koppers 6a7e79a443 Convert non-Error errors into Errors 2018-06-05 13:41:00 +02:00
Tobias Koppers 1886ee0f3f improve final loader not string/buffer message
add test case
2018-06-05 11:58:10 +02:00
Tobias Koppers c77030573d multi line message when "from" is set 2018-06-05 10:43:10 +02:00
Tobias Koppers 9fbe914078 Merge branch 'master' into feature/module-build-error-with-loader-name
# Conflicts:
#	lib/ModuleBuildError.js
#	lib/ModuleError.js
#	lib/ModuleWarning.js
2018-06-05 10:23:00 +02:00
Nathan Shively-Sanders c97107367a Fix template tag syntax
In 2.9 and earlier, Typescript allowed braces around the name introduced
by the `@template` tag, even though this syntax is non-standard. In 3.0,
Typescript introduces a more complex `@template` syntax that uses braces
for specifying the constraint of a type parameter:

```js
/** @template {Constraint} T -- By analogy with param syntax:
 *  @param {T} name
 */
function f(name) { ... }
```

That means that the syntax `/** @template {T} */` is illegal. This PR
fixes the uses of the `@template` tag ahead of Typescript 3.0 as well as
typescript@next.
2018-06-04 14:22:20 -07:00
Tobias Koppers 19389b7216
Merge pull request #7447 from xtuc/fix-wasm-check-for-invalid-signatures
wasm: finalizer for checking exports
2018-06-04 21:11:21 +02:00
Tobias Koppers 78b31936c3 add checkWasmTypes flag, enabled it only in production 2018-06-04 20:14:08 +02:00
Tobias Koppers c77ec391d2 revert afterStartup and trigger prefetch before startup
This makes more sense as startup could take a while
and we can use the time to fetch some resources
2018-06-04 18:10:00 +02:00
Tobias Koppers dc0e1ec480 Merge branch 'master' into prefetch-from-entry 2018-06-04 17:50:08 +02:00
Tobias Koppers db668b7549 move fake document to ConfigTestCases
minor style issues
add test case
2018-06-04 17:49:55 +02:00
Tobias Koppers 5ecf74917f finish plugin and tests 2018-06-04 16:23:41 +02:00
Tobias Koppers 822c252a09 Merge branch 'master' into fix-wasm-check-for-invalid-signatures
# Conflicts:
#	declarations.d.ts
#	lib/wasm/WebAssemblyParser.js
#	package.json
#	yarn.lock
2018-06-04 13:33:26 +02:00
Tobias Koppers fe3ca80267
Merge pull request #7462 from webpack/feature/match-resource
Add matchResource feature (for loaders)
2018-06-04 13:09:22 +02:00
Tobias Koppers 2491f5ddf2
Merge pull request #7471 from webpack/fix/7470
Add a test case about nodeEnv
2018-06-04 13:08:52 +02:00
Tobias Koppers f65a24d9db move warning into separate file 2018-06-04 11:20:43 +02:00
Tobias Koppers 9528aa5cbd fixup test and error 2018-06-04 11:18:32 +02:00
Tobias Koppers 34b6b13616 Pass message to base class 2018-06-04 11:18:32 +02:00
Tobias Koppers 6789a5e144 Merge branch 'master' into feature/webpack-options-compile-errors-warning 2018-06-04 11:18:20 +02:00
Tobias Koppers 949890acdf
Merge pull request #7472 from webpack/bugfix/error-origin-loc
Cleanup error location and origin information
2018-06-04 11:16:48 +02:00
Tobias Koppers 53103a9690 Cleanup error location and origin information 2018-06-04 10:35:46 +02:00
Florent Cailhol 0743250281 Add a test case about nodeEnv 2018-06-04 09:49:08 +02:00
Tobias Koppers e9195c40dc
Merge pull request #7466 from xtuc/fix-wasm-keep-imports
wasm: keep imports
2018-06-04 09:02:50 +02:00
Tobias Koppers 9a6d9c7a06 rename to externalExports 2018-06-02 18:00:22 +02:00
Tobias Koppers 1e4b1c7212 create correct init for float types 2018-06-02 17:57:58 +02:00
Tobias Koppers 1e4d2b7fe7 handle reexported wasm globals in JS wrapper code 2018-06-02 17:20:58 +02:00
Sven SAULEAU 8a6c722ca6
fix(wasm): keep imports 2018-06-02 15:51:26 +02:00
Ma Cheng e68d83e8c7
Fix Typo 2018-06-02 17:41:35 +08:00
Ma Cheng 957ee2a63e
Merge branch 'master' into feature/module-build-error-with-loader-name 2018-06-02 17:19:16 +08:00
Michael Loughry 👨‍💻 0d21ce197c Address most of Sokra's comments
- [x] Don't emit prefetch code if not needed
- [x] Only affect StatsTestCase dealing with prefetching
- [x] Fix existing prefetch test case
- [ ] Trigger prefetch after startup code runs
- [ ] Add new test(s)
2018-06-01 10:51:39 -07:00
Tobias Koppers 530e1fb172 Add matchResource feature (for loaders)
Match rules with custom resource name
Also use this name as rule.issuer or splitChunks test
Show nicely in stats
2018-06-01 15:37:17 +02:00
Ryan Tsao c0e8b8a752 Merge branch 'master' into crossorigin-attr 2018-05-31 16:47:39 -07:00
Tobias Koppers 3415a98330
Merge pull request #7441 from webpack/perf/mutate-reasons
more performant changing of reasons
2018-05-31 09:29:44 +02:00
Sean Larkin 1bae93852a
Merge branch 'master' into feature/type-compiler-compilation-save 2018-05-30 19:35:36 -07:00
Michael Loughry 👨‍💻 8a995da749 Split the map among the chunks 2018-05-30 15:36:50 -07:00
Michael Loughry 👨‍💻 685cbcdf54 Initial rework per sokra's suggestion 2018-05-30 14:36:53 -07:00
Tobias Koppers de16162783
Merge pull request #7442 from elliottsj/after-emit-progress
Allow afterEmit plugins to use `reportProgress`
2018-05-30 22:45:21 +02:00
Spencer Elliott 605064bb2e Add `reportProgress` function to afterEmit hook context 2018-05-30 11:52:47 -07:00
Tobias Koppers 271fb7b543 more performant changing of reasons 2018-05-30 20:04:37 +02:00
Michael Loughry 👨‍💻 e483682637 Revert "Prefetch and preload from entry chunk."
This reverts commit eefacf3f2a.
2018-05-30 10:17:19 -07:00
Michael Loughry 👨‍💻 8636670169 Revert "Add output.entryPrefetchFunction option, and don't immediately prefetch"
This reverts commit b642403d86.
2018-05-30 10:17:16 -07:00
Michael Loughry 👨‍💻 d26617a0ff Revert "Run prettier"
This reverts commit 7458526759.
2018-05-30 10:17:07 -07:00
Sven SAULEAU 928d051aae
Merge remote-tracking branch 'upstream/master' into fix-wasm-check-for-invalid-signatures 2018-05-30 15:31:31 +02:00
Sven SAULEAU b34ed237cf
fix: address some comments 2018-05-30 15:27:42 +02:00
Sven SAULEAU fbd9d0d3a8
feat(wasm): add finalizer for checking exports 2018-05-30 12:45:05 +02:00
Tobias Koppers e56a4c57d1
Merge pull request #7413 from xtuc/feat-wasm-global-in-global-initilizer2
wasm global with global as initializer
2018-05-30 12:39:43 +02:00
Tobias Koppers 53d26bfc96 merge rewriteGlobalsReferingImportedGlobals into rewriteImportedGlobals 2018-05-30 10:49:12 +02:00
Tobias Koppers 5c0708027c
Merge pull request #7440 from webpack/bugfix/number-to-identifier
fix incorrect substraction in numberToIdentifier
2018-05-30 10:38:31 +02:00
Tobias Koppers 6390240e05 rewrite module reference correctly after replacing ConcatenatedModule
fixes #7443
2018-05-30 09:51:11 +02:00
Ronan Amsterdam a228daec58 magic comment regexp match update and statsCase test updated
plus minor renamings and snapshot update
2018-05-30 13:18:43 +08:00
Michael Loughry 👨‍💻 7458526759 Run prettier 2018-05-29 17:15:39 -07:00
Michael Loughry 👨‍💻 b642403d86 Add output.entryPrefetchFunction option, and don't immediately prefetch
Rather than calling the prefetch function on its own during bootstrap, this change exposes the function as a function that can be called from the compiled code.
2018-05-29 16:58:30 -07:00
Michael Loughry 👨‍💻 eefacf3f2a Prefetch and preload from entry chunk.
Following up on @sokra's work in #7056, this change addresses #7084 to have webpack prefetch and preload designated chunks from the entry chunk.
2018-05-29 15:51:10 -07:00
Tobias Koppers 04d9c8ab59 Merge branch 'master' into feat-wasm-global-in-global-initilizer2 2018-05-29 21:07:22 +02:00
Tobias Koppers 27d45e8236
Merge branch 'master' into bugfix/number-to-identifier 2018-05-29 20:42:51 +02:00
Tobias Koppers 4f4a2bae33
Merge pull request #7434 from webpack/bump_prettier
Update prettier to v1.13
2018-05-29 20:35:51 +02:00
Tobias Koppers 8e6a012dbb
Merge pull request #7432 from webpack/add_brackets
Add brackets for multiline if/for statements
2018-05-29 20:17:00 +02:00
Tobias Koppers cf8ae64f8a fix incorrect substraction 2018-05-29 19:49:56 +02:00
Sven SAULEAU 4ac1f57b8e
Merge remote-tracking branch 'upstream/master' into feat-wasm-global-in-global-initilizer2 2018-05-29 16:37:09 +02:00
Tobias Koppers d2aca5638c
Merge pull request #7431 from xtuc/fix-wasm-preserve-global-order
wasm: preserve global ordering
2018-05-29 16:32:19 +02:00
Florent Cailhol faf04e005c Update prettier to v1.13 2018-05-29 16:14:16 +02:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Tobias Koppers c01cb97609 Merge commit 'ba703401d580ad623af17fe96ed98b4d801e0313'
# Conflicts:
#	test/__snapshots__/StatsTestCases.test.js.snap
2018-05-29 15:37:58 +02:00
Tobias Koppers 1e09650e60
Merge pull request #7411 from aleen42/master
fix: unsupported function defined inside a condition block. #7263
2018-05-29 15:33:45 +02:00
Sven SAULEAU 23795ba666
fix(wasm): preserve global ordering 2018-05-29 14:52:29 +02:00
Sven SAULEAU d6e9624c4a
Merge branch 'master' into feat-wasm-global-in-global-initilizer2 2018-05-29 14:24:26 +02:00
Tobias Koppers 351c9936e6 fixup reasons when redirecting dependencies for side-effects
show reason explanation in stats

fixes #7428
2018-05-29 14:12:31 +02:00
Florent Cailhol 25ec7e4102 Do not stop processing on error 2018-05-29 13:17:36 +02:00
Florent Cailhol 4b1a76bdb0 Deprecate Parser.getCommentOptions
Use Parser.parseCommentOptions(range) instead.
2018-05-29 11:09:34 +02:00
Ronan Amsterdam d91e7ecafc getCommentOptions renamed to getCommentOptionsStrict
and wrapped back in getCommentOptions to avoid possible breaking changes
2018-05-29 16:25:10 +08:00
Ronan Amsterdam 1969485f05 warning class and propagation added to ImportParserPlugin
and invalid-import tests moved to the statsCases
2018-05-29 15:29:23 +08:00
aleen42 9e136cd5d4 fix: proper way for inner declaration of a function. #7263
Use a varaible declaration outside a condition block instead, according to https://eslint.org/docs/rules/no-inner-declarations
2018-05-29 14:10:07 +08:00
Tobias Koppers 909a2ac8d0 fix small bug in wasm runtime 2018-05-28 23:35:29 +02:00
Tobias Koppers 770847171d Merge branch 'master' into bugfix/namespace-object
# Conflicts:
#	lib/RuntimeTemplate.js
2018-05-28 22:42:21 +02:00
Tobias Koppers 1f2584e65f
Merge pull request #7408 from webpack/bugfix/side-effects-caching
SideEffectsPlugin don't modify cache entries
2018-05-28 22:34:04 +02:00
Tobias Koppers 29cbf9863a
Merge pull request #7275 from webpack/feature/wasm-mangling
WASM: Tree Shaking, Export and import name mangling
2018-05-28 22:32:01 +02:00
Tobias Koppers 5c51f0c1af
Merge pull request #7251 from webpack/types/library_templates
Add typings for library template plugins
2018-05-28 20:37:40 +02:00
Sven SAULEAU 38604c3cb0
feat: WIP add global into runtime 2018-05-28 16:56:06 +02:00
Sven SAULEAU fd4e84b36f
fix(wasm): correct initializer type for rewritten globals 2018-05-28 14:55:40 +02:00
Tobias Koppers dddb547160 Merge branch 'master' into simplife-has-dependencies
# Conflicts:
#	test/DependenciesBlockVariable.unittest.js
2018-05-28 11:04:09 +02:00
Tobias Koppers 91546a11ab fix incorrect default 2018-05-28 10:44:30 +02:00
Ronan Amsterdam 48a8d8534a webpackCommentRegExp moved outside of getCommentOptions()
per review request
2018-05-28 15:55:16 +08:00
Tobias Koppers 9c7100ba60 fix inline object types, add auxiliary comment types 2018-05-28 09:13:51 +02:00
Tobias Koppers 3f183b5a2a
Merge pull request #7210 from gluecodes/master
fix: ReferenceError: onScriptComplete is not defined when using HMR o…
2018-05-28 08:48:16 +02:00
Tobias Koppers ae8d6741d7 fix bug with incorrectly emitted modules 2018-05-27 21:53:22 +02:00
Tobias Koppers 7ebe12dde1 throw error when unexpected state has been found 2018-05-27 21:53:21 +02:00
Tobias Koppers 115a72ce50 SideEffectsPlugin don't modify cache entries
fixes #7400
2018-05-27 21:53:21 +02:00
Ronan Amsterdam 49bd54313d Issue #7395: webpack import options comments warning propagation 2018-05-27 11:32:00 +08:00
Konstantin Kolesnikov 5d05136904 Refactor JsonpMainTemplatePlugin 2018-05-27 00:27:17 +03:00
Tobias Koppers ae6c7a4990
Merge pull request #7279 from cokencode/progress-plugin-bug-fix
Fix a bug where ProgressPlugin is not working properly with MultiComp…
2018-05-26 15:00:01 +02:00
Tobias Koppers 4073814c3a
Merge pull request #7219 from webpack/feature/type-all-the-errors
chore(types): add basic type info for a few warning and errors
2018-05-26 10:37:26 +02:00
Florent Cailhol f22fffdd47 Evaluate arguments in function's scope 2018-05-25 17:34:19 +02:00
evilebottnawi c222a6f33b feat: implement option for `HashedModuleIdes` plugin 2018-05-25 16:41:20 +03:00
Tobias Koppers be6bdff519
Merge pull request #7385 from moondef/moondef-patch-1
Fix link
2018-05-25 14:00:53 +02:00
Tobias Koppers 2f3e7d4bd7
Merge pull request #7331 from dev-drprasad/add-jsdoc-annotations-cached-merge
📝 Add JSDoc annotations for cached merge util function
2018-05-25 12:00:17 +02:00
Tobias Koppers 70c608cb21
Merge pull request #7387 from webpack/bugfix/record-string-ids
only record number ids
2018-05-25 11:59:48 +02:00
Tobias Koppers d46e35e3af Merge branch 'master' into feature/wasm-mangling
# Conflicts:
#	yarn.lock
2018-05-25 11:07:59 +02:00
Tobias Koppers 8af0320c3e
Merge pull request #7344 from asapach/master
feat: support tree shaking in DllPlugin
2018-05-25 10:48:08 +02:00
Tobias Koppers 342c3c6fec Merge branch 'master' into feature/type-compiler-compilation-save
# Conflicts:
#	yarn.lock
2018-05-24 18:56:04 +02:00
Tobias Koppers f026310ad6 only record number ids
fixes #7381
2018-05-24 16:07:26 +02:00
moondef 25c7b07ef3 Fix link 2018-05-24 17:05:56 +03:00
Tobias Koppers 374376d6dc fixes #7382 2018-05-24 15:37:52 +02:00
Tobias Koppers 8adaa749e3
Merge pull request #7348 from webpack/refactor/nmf_cache
Use a WeakMap instead of mutating objects in NMF
2018-05-23 21:46:08 +02:00
Florent Cailhol 8df9f5f1f5 Use a WeakMap instead of mutating objects 2018-05-22 19:06:30 +02:00
Tobias Koppers 8b19f20b40
Merge pull request #7365 from jdelStrother/stable-records
Sort the usedIds array in records
2018-05-22 17:43:10 +02:00
Tobias Koppers 19015b698c fix problems with circular unneeded chunks
fixes #7363
fixes #7239
fixes #6587
2018-05-22 15:30:32 +02:00
Tobias Koppers 6692275704 Only put entries into the manifest 2018-05-22 13:24:40 +02:00
Tobias Koppers 6ff5b8fd59
Merge pull request #7350 from jdelStrother/dynamic-requires
Record relative dynamic-require paths
2018-05-21 21:50:39 +02:00
Tobias Koppers 182cf52454
Merge pull request #7349 from webpack/refactor/source_map_dev_tool
Use WeakMaps instead of mutating assets in SourceMapDevToolPlugin
2018-05-21 21:48:12 +02:00
Jonathan del Strother f8455657c5 Sort the usedIds array in records
This prevents unnecessary churn when version-controlling your records
2018-05-21 15:45:28 +01:00
Sven SAULEAU 6d8bc91a9b
feat: add missing preprocessing 2018-05-21 14:07:39 +02:00
Jonathan del Strother 6bf9479af2 Don't record absolute paths for regexps used in dynamic requires
This avoids records like:

"src/dependencies sync ../../../../^/.//.*$": "./src/dependencies sync recursive ^\\.\\/.*$"

with the number of "../"s varying according to the depth of the folder you're building from.

Fixes #7339
2018-05-21 09:49:35 +01:00
Florent Cailhol bfc74252fd Use WeakMaps instead of mutating assets 2018-05-21 08:09:56 +02:00
Tobias Koppers 360503587e
Merge pull request #7355 from mohsen1/type-ChunkRenderError
Add typing for ChunkRenderError
2018-05-20 21:58:01 +02:00
Mohsen Azimi 800e0de25b Add typing for DefinePlugin 2018-05-20 00:32:59 -07:00
Mohsen Azimi f2817233b5 Add typing for ChunkRenderError 2018-05-20 00:22:26 -07:00
Mohsen Azimi 1a2bbc5303 Add more JSDoc to make ESLint happuy 2018-05-20 00:18:20 -07:00
Mohsen Azimi 413e1c9a70 add typing for compare locations helper 2018-05-20 00:16:33 -07:00
REDDY PRASAD 10c850de65 📝 Add annotations and description to cachedMerge util function 2018-05-19 23:12:56 +05:30
Tobias Koppers 1b6bb850e4 use slice instead of replace for better performance 2018-05-19 12:24:17 +02:00
Tobias Koppers f3514e073e
Merge branch 'master' into bugfix/json-byteordermark 2018-05-19 12:17:46 +02:00
Florent Cailhol 252ac31a57 Improve JSON parse error 2018-05-19 11:09:30 +02:00
Sean Larkin 74ba87f593
Merge branch 'master' into feature/type-compiler-compilation-save 2018-05-18 21:58:50 -07:00
Aliaksei Sapach 6c0c52558c feat: support tree shaking in DllPlugin
This change introduces a new `entryOnly` flag to the DllPlugin options which limits the exposed modules to only those configured as entry points. This allows module concatenation and dead code removal optimizations to take place.
2018-05-18 22:57:29 +03:00
William Lohan b42646908d fix: json with byte order mark
fixes issue #7330
2018-05-18 08:39:25 -07:00
Ryan Tsao 009fe74f22 Merge branch 'master' into crossorigin-attr 2018-05-17 21:03:28 -07:00
REDDY PRASAD 217a657b78 🚧 WIP 2018-05-17 23:23:28 +05:30
Tobias Koppers 75db965170 update combination when split fails because of max requests
fixes #7323
2018-05-17 17:44:38 +02:00
Tobias Koppers 8e05ae25dc Merge branch 'master' into feature/wasm-mangling
# Conflicts:
#	package.json
#	yarn.lock
2018-05-17 10:50:17 +02:00
Sven SAULEAU d7d82b25d5
refactor : use AST utils 2018-05-16 13:22:46 +02:00
Tobias Koppers 3072378892 bugfixes and corrections 2018-05-15 15:04:40 +02:00
Sean Larkin f0ed7b63e8 chore(types): remove dup types, clean up some itesm 2018-05-15 15:04:39 +02:00
Sean Larkin 39195ff62f chore(types): make loose interface for removing reasons ties in Compilation 2018-05-15 15:04:39 +02:00
Sean Larkin 761d73b4e7 chore(types): add Compiler and Compilation type support 2018-05-15 15:04:38 +02:00
Tobias Koppers 9560af5545
Merge pull request #7303 from odedniv/module-not-found
Align 'Cannot find module' message with native NodeJS
2018-05-15 08:57:11 +02:00
Tobias Koppers 9791c0b5c8
fix spacing 2018-05-15 08:32:08 +02:00
Oded Niv 17fd4d8b48 Align 'Cannot find module' message with native NodeJS 2018-05-15 09:24:16 +03:00
Tobias Koppers 687c03869f
Merge pull request #7270 from webpack/feature/banner_function
Allow banner to be specified as a function
2018-05-14 20:14:59 +02:00
Sean Larkin 51fa786616
Merge pull request #7117 from webpack/feature/template-type-support
Feature/template type support
2018-05-14 08:08:09 -07:00
Mihail Bodrov 8d1d569541 Fix remove empty 2018-05-13 02:04:06 +03:00
Mihail Bodrov 9a1eca5e20 Optimize RemoveEmptyChunksPlugin 2018-05-13 01:15:39 +03:00
Tobias Koppers cd7980e2a8 add comment about the microtask delay 2018-05-12 10:25:17 +02:00
Tobias Koppers 22ec60434d lint and type 2018-05-11 21:02:37 +02:00
Tobias Koppers 42c0214254 move common code into separate module 2018-05-11 21:02:36 +02:00
Tobias Koppers 08e72f5468 fix compat types list 2018-05-11 20:59:21 +02:00
Tobias Koppers ee0b5afc44 generate shorter runtime code for the imports map 2018-05-11 20:59:20 +02:00
Tobias Koppers cb3a0ed08c enforce direct import when types are incompatible with JS types 2018-05-11 20:59:20 +02:00
Tobias Koppers fb29d633db Mangle import names and module requests 2018-05-11 20:57:19 +02:00
Tobias Koppers f903cd3ef9 mangle exports of wasm modules
mangle webpack init function
store WebAssembly.Instance.exports directly
connect wasm modules directly when already cached
2018-05-11 20:57:18 +02:00
Jaehwan Moon 737eaa51b6 Fix a bug where ProgressPlugin is not working properly with MultiCompiler 2018-05-11 13:07:31 -04:00
Krzysztof Czopp bbb9f38b71 fix: ReferenceError: onScriptComplete is not defined when using HMR on Firefox 45 2018-05-11 16:22:27 +01:00
Tobias Koppers e2c8f3d501 remove passing AST, redecode AST in Generator 2018-05-11 16:46:33 +02:00