webpack/lib
Jarda Snajdr 18c369bdfd Make external modules of type 'this' work with module concatenation
Changes how the object lookup is wrapped in an IIFE to avoid hiding the
left side of the assignment inside a function.

Forces the external module of type `this` to be in non-strict mode --
that's the only mode where the `this` lookup has any meaningful behavior.

Fixes #11724.
2020-10-17 20:27:40 +02:00
..
asset chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03:00
async-modules fix some nitpicks with active state 2020-10-07 09:36:41 +02:00
cache add "snapshot" configuration to allow to configure how snapshots are created 2020-08-26 01:27:13 +02:00
config Fix require handling with electron; fixes #11599 2020-10-08 01:06:31 +02:00
container chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03:00
debug chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03:00
dependencies flag commonjs dependency in try block as optional 2020-10-12 09:16:24 +02:00
electron Fix require handling with electron; fixes #11599 2020-10-08 01:06:31 +02:00
errors detect cycles during this.loadModule from loader 2019-12-20 12:50:55 +01:00
hmr improve test case, convert trace into warning 2020-09-27 11:26:32 +02:00
ids Merge pull request #11582 from webpack/update-schema-utils 2020-10-07 10:30:11 +02:00
javascript Merge branch 'master' into bump-acorn-8 2020-10-07 10:35:13 +02:00
json chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03:00
library new Worker() support 2020-09-08 07:37:20 +02:00
logging Fix measurement formatting as per SI rules 2020-04-07 17:27:45 -05:00
node improve target options 2020-09-10 11:42:09 +02:00
optimize fix runtime-specific handling in concatenated modules 2020-10-16 11:47:30 +02:00
performance fix jsdoc documentations 2020-04-28 19:42:58 +02:00
prefetch refactor chunk prefetching/preloading into separate plugin and runtime modules 2019-12-19 12:01:46 +01:00
rules improve handling of null values and prototype properties 2020-07-17 15:41:30 +02:00
runtime use output.importMetaName for import.meta 2020-09-18 10:55:37 +02:00
schemes split HttpUrlPlugin into two plugins for http and https 2020-07-06 17:45:45 +02:00
serialization reduce number of small buffers in BinaryMiddleware 2020-08-24 18:16:56 +02:00
sharing chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03:00
stats expose webpack from Compiler 2020-10-12 20:16:58 +02:00
util fix unused modules in chunk when optimizing runtime-specific 2020-10-16 11:47:33 +02:00
wasm improve target options 2020-09-10 11:42:09 +02:00
wasm-async avoid using getChunkModuleMaps as it doesn't support different modules per runtime 2020-07-28 17:16:32 +02:00
wasm-sync fix some nitpicks with active state 2020-10-07 09:36:41 +02:00
web refactor wasm loading from target into output.wasmLoading option 2020-09-09 11:20:37 +02:00
webworker new Worker() support 2020-09-08 07:37:20 +02:00
APIPlugin.js improve hashing of runtime modules that need a full hash 2020-09-01 18:31:29 +02:00
AbstractMethodError.js remove weird types 2020-05-12 15:58:43 +02:00
AsyncDependenciesBlock.js new Worker() support 2020-09-08 07:37:20 +02:00
AsyncDependencyToInitialChunkError.js add more types and fix/remove TODOs 2019-06-14 10:45:56 +02:00
AutomaticPrefetchPlugin.js
BannerPlugin.js chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03:00
Cache.js Create Cache facade to make it easier to use 2020-07-15 11:14:28 +02:00
CacheFacade.js add provide and mergeEtags to CacheFacade 2020-08-19 11:25:24 +02:00
CaseSensitiveModulesWarning.js chore: setup cspell 2020-03-12 19:51:26 +03:00
Chunk.js new Worker() support 2020-09-08 07:37:20 +02:00
ChunkGraph.js fix some nitpicks with active state 2020-10-07 09:36:41 +02:00
ChunkGroup.js new Worker() support 2020-09-08 07:37:20 +02:00
ChunkRenderError.js
ChunkTemplate.js add more types 2020-08-02 23:47:54 +03:00
CodeGenerationError.js refactor Module.source() and Module.getRuntimeRequirements() into Module.codeGeneration 2019-10-08 23:59:48 +02:00
CodeGenerationResults.js polish, types 2020-07-27 22:41:04 +02:00
CommentCompilationWarning.js
CompatibilityPlugin.js run prettier 2019-11-15 10:56:01 +01:00
Compilation.js fix order of asset optimization to fix conflict between compression-plugin and real hash plugin 2020-10-16 14:42:46 +02:00
Compiler.js expose webpack from Compiler 2020-10-12 20:16:58 +02:00
ConcatenationScope.js fix delete in concatenated module 2020-09-29 22:12:42 +02:00
ConcurrentCompilationError.js
ConstPlugin.js optional chaining leads to undefined and never null 2020-08-07 16:43:13 +02:00
ContextExclusionPlugin.js
ContextModule.js add grouping of modules 2020-09-01 18:31:22 +02:00
ContextModuleFactory.js fix bug for maxCallStack in ContextModuleFactory 2020-09-13 18:13:52 +05:30
ContextReplacementPlugin.js add support for resource fragments 2020-07-03 17:03:15 +02:00
DefinePlugin.js replace output.ecmaVersion with output.environment and more detailed flags 2020-09-10 11:12:28 +02:00
DelegatedModule.js polish, types 2020-07-27 22:41:04 +02:00
DelegatedModuleFactoryPlugin.js enable mjs experiment 2020-09-07 23:15:24 +02:00
DelegatedPlugin.js NullFactory is not required 2019-08-07 16:14:03 +02:00
DependenciesBlock.js refactor used exports analysis, hashing, code generation, optimizations 2020-07-27 22:40:44 +02:00
Dependency.js expose webpack from Compiler 2020-10-12 20:16:58 +02:00
DependencyTemplate.js add ConcatenationScope 2020-09-15 12:34:50 +02:00
DependencyTemplates.js Merge tag 'v4.36.0' into next 2019-07-17 16:02:33 +02:00
DllEntryPlugin.js Split options defaulting in normalization and defaults 2020-02-17 19:12:54 +01:00
DllModule.js polish, types 2020-07-27 22:41:04 +02:00
DllModuleFactory.js
DllPlugin.js chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03:00
DllReferencePlugin.js chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03:00
DynamicEntryPlugin.js fix jsdoc documentations 2020-04-28 19:42:58 +02:00
EntryOptionPlugin.js fix incorrect type 2020-10-12 09:45:19 +02:00
EntryPlugin.js new Worker() support 2020-09-08 07:37:20 +02:00
Entrypoint.js new Worker() support 2020-09-08 07:37:20 +02:00
EnvironmentPlugin.js fix jsdoc documentations 2020-04-28 19:42:58 +02:00
ErrorHelpers.js remove Array.prototype.reduce calls to simplify code 2020-01-17 18:31:29 +01:00
EvalDevToolModulePlugin.js fix jsdoc documentations 2020-04-28 19:42:58 +02:00
EvalSourceMapDevToolPlugin.js add more types 2020-08-02 23:47:54 +03:00
ExportsInfo.js build chunk graph with runtime awareness 2020-10-16 11:47:38 +02:00
ExportsInfoApiPlugin.js fix jsdoc documentations 2020-04-28 19:42:58 +02:00
ExternalModule.js Make external modules of type 'this' work with module concatenation 2020-10-17 20:27:40 +02:00
ExternalModuleFactoryPlugin.js add support for async externals 2020-05-19 17:25:43 +02:00
ExternalsPlugin.js add support for async externals 2020-05-19 17:25:43 +02:00
FileSystemInfo.js fix incorrect iteration 2020-09-18 21:47:46 +02:00
FlagAllModulesAsUsedPlugin.js fix dependOn behavior with runtimes, fix runtime passing by entry 2020-07-30 11:18:09 +02:00
FlagDependencyExportsPlugin.js avoid setting export target too often 2020-09-15 12:36:20 +02:00
FlagDependencyUsagePlugin.js build chunk graph with runtime awareness 2020-10-16 11:47:38 +02:00
FlagEntryExportAsUsedPlugin.js refactor used exports analysis, hashing, code generation, optimizations 2020-07-27 22:40:44 +02:00
FlagUsingEvalPlugin.js fix jsdoc documentations 2020-04-28 19:42:58 +02:00
Generator.js refactor module concatenation to address discovered bugs/edge cases 2020-09-15 12:36:02 +02:00
GraphHelpers.js
HarmonyLinkingError.js
HookWebpackError.js Deprecate MainTemplate, ChunkTemplate, ModuleTemplate 2019-10-08 23:46:26 +02:00
HotModuleReplacementPlugin.js add missing chunk groups to HotUpdateChunks 2020-09-25 10:53:14 +02:00
HotUpdateChunk.js fix incorrect disposing of modules during HMR 2020-09-08 10:25:41 +02:00
IgnorePlugin.js chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03:00
IgnoreWarningsPlugin.js add config.ignoreWarnings 2020-09-20 22:08:38 +02:00
InitFragment.js add support for async externals 2020-05-19 17:25:43 +02:00
LibManifestPlugin.js new Worker() support 2020-09-08 07:37:20 +02:00
LibraryTemplatePlugin.js fix jsdoc documentations 2020-04-28 19:42:58 +02:00
LoaderOptionsPlugin.js chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03:00
LoaderTargetPlugin.js fix jsdoc documentations 2020-04-28 19:42:58 +02:00
MainTemplate.js remove unused code 2020-08-19 15:08:34 +02:00
Module.js fix some nitpicks with active state 2020-10-07 09:36:41 +02:00
ModuleBuildError.js add more types 2020-08-02 23:47:54 +03:00
ModuleDependencyError.js add more types 2020-08-02 23:47:54 +03:00
ModuleDependencyWarning.js add more types 2020-08-02 23:47:54 +03:00
ModuleError.js add more types 2020-08-02 23:47:54 +03:00
ModuleFactory.js improve compatibly with node.js ESM 2020-07-17 13:58:29 +02:00
ModuleFilenameHelpers.js Upgrade to Prettier 2 2020-03-28 18:20:24 -04:00
ModuleGraph.js refactor module concatenation to address discovered bugs/edge cases 2020-09-15 12:36:02 +02:00
ModuleGraphConnection.js fix some nitpicks with active state 2020-10-07 09:36:41 +02:00
ModuleInfoHeaderPlugin.js store multiple targets per ExportInfo 2020-08-12 21:41:03 +02:00
ModuleNotFoundError.js Improve suggested Node.js polyfill config 2020-10-07 22:52:46 +02:00
ModuleParseError.js report better error message when wasm experiment is not enabled 2020-04-28 20:22:50 +02:00
ModuleProfile.js ignore some timing-depend code parts for coverage 2020-04-21 16:29:13 +02:00
ModuleRestoreError.js
ModuleStoreError.js Create error class for cache store errors 2019-12-16 21:06:27 +01:00
ModuleTemplate.js Fix ModuleTemplate.hooks.hash deprecation message 2020-10-12 21:39:43 +09:00
ModuleWarning.js add more types 2020-08-02 23:47:54 +03:00
MultiCompiler.js call invalid hook also when manually invalidating watching 2020-07-15 19:34:23 +02:00
MultiStats.js replace hash, version, time and builtAt with build summary at the bottom 2020-09-03 22:12:52 +02:00
MultiWatching.js do cache related tasks after calling handler in watching 2020-08-01 09:00:17 +02:00
NoEmitOnErrorsPlugin.js
NoModeWarning.js Merge tag 'v4.31.0' into next 2019-05-09 21:38:10 +02:00
NodeStuffPlugin.js improve target options 2020-09-10 11:42:09 +02:00
NormalModule.js fix: reorder params 2020-10-16 00:21:16 +08:00
NormalModuleFactory.js add breaking change info for fullySpecified resolving 2020-09-15 15:12:15 +02:00
NormalModuleReplacementPlugin.js Update NormalModuleReplacementPlugin to new api 2019-06-16 20:09:54 +05:00
NullFactory.js
OptimizationStages.js
OptionsApply.js
Parser.js add more types 2020-08-02 23:47:54 +03:00
PrefetchPlugin.js Fix Compiler.hooks.make callbacks 2019-05-10 09:55:59 +02:00
ProgressPlugin.js chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03:00
ProvidePlugin.js fix called variables with ProvidePlugin 2020-10-10 02:52:43 +02:00
RawModule.js refactor used exports analysis, hashing, code generation, optimizations 2020-07-27 22:40:44 +02:00
RecordIdsPlugin.js record chunk ids for unnamed chunks in the entrypoint chunk group 2020-04-25 00:44:02 +02:00
RequestShortener.js make RequestShortener simpler, only use relative path 2020-01-15 18:48:37 +01:00
RequireJsStuffPlugin.js move BasicEvaluatedExpression and JavascriptParserHelpers to javascript directory 2019-10-22 09:27:52 +02:00
ResolverFactory.js type fixes 2020-07-15 14:13:33 +02:00
RuntimeGlobals.js fix circular references between containers and modules in containers 2020-09-17 10:44:52 +02:00
RuntimeModule.js improve hashing of runtime modules that need a full hash 2020-09-01 18:31:29 +02:00
RuntimePlugin.js output.chunkFilename can be a function 2020-09-25 16:03:05 +02:00
RuntimeTemplate.js support undo path 2020-09-16 23:20:44 +03:00
SelfModuleFactory.js Refactor how exportsType work 2019-12-06 11:13:08 +01:00
SingleEntryPlugin.js
SizeFormatHelpers.js
SourceMapDevToolModuleOptionsPlugin.js
SourceMapDevToolPlugin.js chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03:00
Stats.js replace hash, version, time and builtAt with build summary at the bottom 2020-09-03 22:12:52 +02:00
Template.js fix incorrect disposing of modules during HMR 2020-09-08 10:25:41 +02:00
TemplatedPathPlugin.js calculate real content hash for assets after asset processing 2020-08-18 22:07:24 +02:00
UnhandledSchemeError.js refactor scheme handling into plugins 2020-07-03 17:01:02 +02:00
UnsupportedFeatureWarning.js
UseStrictPlugin.js fix jsdoc documentations 2020-04-28 19:42:58 +02:00
WarnCaseSensitiveModulesPlugin.js
WarnDeprecatedOptionPlugin.js
WarnNoModeSetPlugin.js
WatchIgnorePlugin.js chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03:00
Watching.js chore: reorder statement 2020-09-19 09:55:02 +05:30
WebpackError.js remove Array.prototype.reduce calls to simplify code 2020-01-21 09:45:25 +01:00
WebpackOptionsApply.js add config.ignoreWarnings 2020-09-20 22:08:38 +02:00
WebpackOptionsDefaulter.js Split options defaulting in normalization and defaults 2020-02-17 19:12:54 +01:00
buildChunkGraph.js build chunk graph with runtime awareness 2020-10-16 11:47:38 +02:00
cli.js fix CLI test 2020-08-16 13:29:28 +03:00
formatLocation.js
index.js Merge pull request #11645 from wood1986/features/expose-entry-fn 2020-10-13 14:25:45 +02:00
validateSchema.js chore(deps): update `schema-utils` 2020-10-05 21:58:54 +03:00
webpack.js revert error and add deprecation instead 2020-09-29 20:21:59 +02:00