From dafa4cd69adecd32ac998cb673d8930b69bd58e9 Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Thu, 12 Mar 2020 19:51:26 +0300 Subject: [PATCH] chore: setup cspell --- .github/ISSUE_TEMPLATE.md | 2 +- bin/webpack.js | 2 +- examples/buildAll.js | 6 +- examples/harmony-interop/README.md | 4 +- examples/harmony-interop/example.js | 2 +- examples/hybrid-routing/README.md | 4 +- examples/hybrid-routing/router.js | 2 +- examples/loader/README.md | 4 +- examples/loader/example.js | 2 +- examples/many-pages/README.md | 2 +- examples/many-pages/template.md | 2 +- examples/side-effects/README.md | 2 +- examples/side-effects/template.md | 2 +- examples/source-map/README.md | 10 +- examples/source-map/template.md | 10 +- examples/top-level-await/Actions.js | 2 +- examples/top-level-await/README.md | 4 +- lib/CaseSensitiveModulesWarning.js | 2 +- lib/Compilation.js | 6 +- lib/Compiler.js | 4 +- lib/ContextModule.js | 6 +- lib/ContextModuleFactory.js | 6 +- lib/FileSystemInfo.js | 2 +- lib/MainTemplate.js | 2 +- lib/Module.js | 2 +- lib/ModuleFilenameHelpers.js | 1 + lib/RuntimeGlobals.js | 2 +- lib/RuntimeTemplate.js | 2 +- lib/SourceMapDevToolPlugin.js | 2 +- lib/TemplatedPathPlugin.js | 2 +- lib/buildChunkGraph.js | 6 +- lib/cache/PackFileCacheStrategy.js | 2 +- lib/config/defaults.js | 2 +- lib/dependencies/AMDDefineDependency.js | 30 +- lib/dependencies/LocalModulesHelpers.js | 6 +- ...uireEnsureDependenciesBlockParserPlugin.js | 8 +- lib/ids/IdHelpers.js | 6 +- lib/javascript/JavascriptParserHelpers.js | 8 +- lib/library/UmdLibraryPlugin.js | 10 +- lib/optimize/AggressiveSplittingPlugin.js | 2 +- lib/optimize/ConcatenatedModule.js | 6 +- lib/optimize/FlagIncludedChunksPlugin.js | 2 +- lib/optimize/LimitChunkCountPlugin.js | 2 +- lib/optimize/MinChunkSizePlugin.js | 2 +- lib/optimize/MinMaxSizeWarning.js | 2 +- lib/optimize/ModuleConcatenationPlugin.js | 12 +- lib/optimize/SplitChunksPlugin.js | 2 +- lib/rules/RuleSetCompiler.js | 4 +- lib/serialization/FileMiddleware.js | 2 +- lib/serialization/ObjectMiddleware.js | 2 +- lib/stats/DefaultStatsPrinterPlugin.js | 10 +- lib/util/LazySet.js | 2 +- lib/util/SetHelpers.js | 2 +- lib/util/deterministicGrouping.js | 14 +- lib/util/identifier.js | 4 +- lib/validateSchema.js | 2 + lib/wasm/WasmChunkLoadingRuntimeModule.js | 2 +- lib/wasm/WebAssemblyGenerator.js | 4 +- lib/wasm/WebAssemblyInInitialChunkError.js | 2 +- lib/wasm/WebAssemblyParser.js | 6 +- package.json | 4 +- schemas/WebpackOptions.json | 8 +- .../optimize/AggressiveSplittingPlugin.json | 2 +- setup/setup.js | 4 +- tooling/compile-to-definitions.js | 2 +- tooling/format-file-header.js | 2 +- tooling/format-schemas.js | 2 +- tooling/inherit-types.js | 4 +- tooling/type-coverage.js | 2 +- yarn.lock | 346 +++++++++++++++++- 70 files changed, 494 insertions(+), 147 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 1deb4adab..ba313faa4 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -12,7 +12,7 @@ **If the current behavior is a bug, please provide the steps to reproduce.** - + **What is the expected behavior?** diff --git a/bin/webpack.js b/bin/webpack.js index 5b108a095..26a7de920 100755 --- a/bin/webpack.js +++ b/bin/webpack.js @@ -2,7 +2,7 @@ /** * @param {string} command process to run - * @param {string[]} args commandline arguments + * @param {string[]} args command line arguments * @returns {Promise} promise */ const runCommand = (command, args) => { diff --git a/examples/buildAll.js b/examples/buildAll.js index 7ff3a9e38..fff5d9920 100644 --- a/examples/buildAll.js +++ b/examples/buildAll.js @@ -3,14 +3,14 @@ const cp = require("child_process"); const examples = require("./examples"); -const cmds = examples.map(function(dirname) { +const commands = examples.map(function(dirname) { return "cd " + dirname + " && node build.js"; }); let failed = 0; let i = 0; -for(const cmd of cmds) { - console.log(`[${++i}/${cmds.length}] ${cmd}`); +for(const cmd of commands) { + console.log(`[${++i}/${commands.length}] ${cmd}`); try { cp.execSync(cmd, { encoding: "utf-8" }); } catch(e) { diff --git a/examples/harmony-interop/README.md b/examples/harmony-interop/README.md index dd6bb1c9e..9d06b2a87 100644 --- a/examples/harmony-interop/README.md +++ b/examples/harmony-interop/README.md @@ -15,7 +15,7 @@ fs2.readFile("file"); import { readFile as readFile2 } from "./reexport-commonjs"; readFile2("file"); -// import a CommonJs module for sideeffects +// import a CommonJs module for side effects import "./example2"; ``` @@ -97,7 +97,7 @@ _fs__WEBPACK_IMPORTED_MODULE_0__.readFile("file"); (0,_reexport_commonjs__WEBPACK_IMPORTED_MODULE_1__.readFile)("file"); -// import a CommonJs module for sideeffects +// import a CommonJs module for side effects diff --git a/examples/harmony-interop/example.js b/examples/harmony-interop/example.js index ad091557a..9061a3f17 100644 --- a/examples/harmony-interop/example.js +++ b/examples/harmony-interop/example.js @@ -12,5 +12,5 @@ fs2.readFile("file"); import { readFile as readFile2 } from "./reexport-commonjs"; readFile2("file"); -// import a CommonJs module for sideeffects +// import a CommonJs module for side effects import "./example2"; diff --git a/examples/hybrid-routing/README.md b/examples/hybrid-routing/README.md index 2f6a2256e..11e7545d5 100644 --- a/examples/hybrid-routing/README.md +++ b/examples/hybrid-routing/README.md @@ -59,7 +59,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b" // require the page with a dynamic require // It's important that this require only matches the pages - // elsewise there is blood in the bundle. Here this is done with a + // otherwise there is blood in the bundle. Here this is done with a // specific file prefix. It's also possible to use a directory, // overwriting the RegExp with the ContextReplacementPlugin, or // using the require.context method. @@ -119,7 +119,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b" // require the page with a dynamic require // It's important that this require only matches the pages - // elsewise there is blood in the bundle. Here this is done with a + // otherwise there is blood in the bundle. Here this is done with a // specific file prefix. It's also possible to use a directory, // overwriting the RegExp with the ContextReplacementPlugin, or // using the require.context method. diff --git a/examples/hybrid-routing/router.js b/examples/hybrid-routing/router.js index 75f34e349..0a726cab2 100644 --- a/examples/hybrid-routing/router.js +++ b/examples/hybrid-routing/router.js @@ -6,7 +6,7 @@ window.onLinkToPage = function onLinkToPage(name) { // name is "a" or "b" // require the page with a dynamic require // It's important that this require only matches the pages - // elsewise there is blood in the bundle. Here this is done with a + // otherwise there is blood in the bundle. Here this is done with a // specific file prefix. It's also possible to use a directory, // overwriting the RegExp with the ContextReplacementPlugin, or // using the require.context method. diff --git a/examples/loader/README.md b/examples/loader/README.md index 0c2ec4f39..c26c29ca1 100644 --- a/examples/loader/README.md +++ b/examples/loader/README.md @@ -4,7 +4,7 @@ // use our loader console.dir(require("./loader!./file")); -// use buildin css loader +// use built-in css loader console.dir(require("./test.css")); // default by extension console.dir(require("!css-loader!./test.css")); // manual ``` @@ -212,7 +212,7 @@ function toComment(sourceMap) { // use our loader console.dir(__webpack_require__(/*! ./loader!./file */ 1)); -// use buildin css loader +// use built-in css loader console.dir(__webpack_require__(/*! ./test.css */ 2)); // default by extension console.dir(__webpack_require__(/*! css-loader!./test.css */ 2)); // manual diff --git a/examples/loader/example.js b/examples/loader/example.js index a2456e93f..93d30c706 100644 --- a/examples/loader/example.js +++ b/examples/loader/example.js @@ -1,6 +1,6 @@ // use our loader console.dir(require("./loader!./file")); -// use buildin css loader +// use built-in css loader console.dir(require("./test.css")); // default by extension console.dir(require("!css-loader!./test.css")); // manual diff --git a/examples/many-pages/README.md b/examples/many-pages/README.md index b38ac58d9..061ec3b3e 100644 --- a/examples/many-pages/README.md +++ b/examples/many-pages/README.md @@ -18,7 +18,7 @@ The following configuration is used: The threshold is here 40 bytes, but by default (in a real application) 30kb. -Some modules are intentially duplicated, i. e. `./stuff/s4.js` is shared by `pageA` and `pageC`, but it's the only shared module so no separate output file is created because it would be smaller than the threshold. A separate request (which comes with an overhead and worsen gzipping) is not worth the extra bytes. +Some modules are intentionally duplicated, i. e. `./stuff/s4.js` is shared by `pageA` and `pageC`, but it's the only shared module so no separate output file is created because it would be smaller than the threshold. A separate request (which comes with an overhead and worsen gzipping) is not worth the extra bytes. Note: decreasing `maxInitial/AsyncRequest` will increase duplication further to reduce the number of requests. Duplication doesn't affect initial page load, it only affects download size of navigations to other pages of the application. diff --git a/examples/many-pages/template.md b/examples/many-pages/template.md index 1940dfe2a..75d82d7cc 100644 --- a/examples/many-pages/template.md +++ b/examples/many-pages/template.md @@ -18,7 +18,7 @@ The following configuration is used: The threshold is here 40 bytes, but by default (in a real application) 30kb. -Some modules are intentially duplicated, i. e. `./stuff/s4.js` is shared by `pageA` and `pageC`, but it's the only shared module so no separate output file is created because it would be smaller than the threshold. A separate request (which comes with an overhead and worsen gzipping) is not worth the extra bytes. +Some modules are intentionally duplicated, i. e. `./stuff/s4.js` is shared by `pageA` and `pageC`, but it's the only shared module so no separate output file is created because it would be smaller than the threshold. A separate request (which comes with an overhead and worsen gzipping) is not worth the extra bytes. Note: decreasing `maxInitial/AsyncRequest` will increase duplication further to reduce the number of requests. Duplication doesn't affect initial page load, it only affects download size of navigations to other pages of the application. diff --git a/examples/side-effects/README.md b/examples/side-effects/README.md index 2551ed4dd..08bf7ee01 100644 --- a/examples/side-effects/README.md +++ b/examples/side-effects/README.md @@ -11,7 +11,7 @@ After being built by webpack, the output bundle contains `index.js` `a.js` `b.js Advantages: - Smaller bundles -- Faster bootup +- Faster boot up # example.js diff --git a/examples/side-effects/template.md b/examples/side-effects/template.md index 5e1e5480f..258a491cb 100644 --- a/examples/side-effects/template.md +++ b/examples/side-effects/template.md @@ -11,7 +11,7 @@ After being built by webpack, the output bundle contains `index.js` `a.js` `b.js Advantages: - Smaller bundles -- Faster bootup +- Faster boot up # example.js diff --git a/examples/source-map/README.md b/examples/source-map/README.md index adba370e0..05f2e2b55 100644 --- a/examples/source-map/README.md +++ b/examples/source-map/README.md @@ -88,7 +88,7 @@ race = function(winner, ...runners) { //# sourceMappingURL=bundle-source-map.js.map ``` -```javascript +```json {"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;AAAA;;;AAAA;;AAGA,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX;AAFR,EAJF;;;AASA,OAAO,SAAC,MAAD,KAAS,OAAT;SACL,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-source-map.js","sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n"],"sourceRoot":""} ``` @@ -127,7 +127,7 @@ race = function(winner, ...runners) { ],[[0,0]]]); ``` -```javascript +```json {"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;AAAA;;;AAAA;;AAGA,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX;AAFR,EAJF;;;AASA,OAAO,SAAC,MAAD,KAAS,OAAT;SACL,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-hidden-source-map.js","sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n"],"sourceRoot":""} ``` @@ -169,7 +169,7 @@ race = function(winner, ...runners) { ## nosources-source-map.js.map -```javascript +```json {"version":3,"sources":["webpack:///./example.coffee"],"names":[],"mappings":";;;;;;;;;AAAA;;;AAAA;;AAGA,OACE;EAAA,MAAQ,IAAI,CAAC,IAAb;EACA,QAAQ,MADR;EAEA,MAAQ,SAAC,CAAD;WAAO,IAAI,OAAO,CAAP;EAAX;AAFR,EAJF;;;AASA,OAAO,SAAC,MAAD,KAAS,OAAT;SACL,MAAM,MAAN,EAAc,OAAd;AADK","file":"./bundle-nosources-source-map.js","sourceRoot":""} ``` @@ -247,13 +247,13 @@ eval("// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\n ## cheap-module-source-map.js.map -```javascript +```json {"version":3,"file":"./bundle-cheap-module-source-map.js","sources":["webpack:///./example.coffee"],"sourcesContent":["# Taken from http://coffeescript.org/\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n"],"mappings":";;;;;;;;;AAAA;AACA;;AADA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AAFA;AACA;;AAIA;AACA;AADA;;;;A","sourceRoot":""} ``` ## cheap-source-map.js.map -```javascript +```json {"version":3,"file":"./bundle-cheap-source-map.js","sources":["webpack:///./example.coffee"],"sourcesContent":["// Taken from http://coffeescript.org/\n\n// Objects:\nvar math, race;\n\nmath = {\n root: Math.sqrt,\n square: square,\n cube: function(x) {\n return x * square(x);\n }\n};\n\n// Splats:\nrace = function(winner, ...runners) {\n return print(winner, runners);\n};\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;A","sourceRoot":""} ``` diff --git a/examples/source-map/template.md b/examples/source-map/template.md index 6a7400293..e49007f8b 100644 --- a/examples/source-map/template.md +++ b/examples/source-map/template.md @@ -20,7 +20,7 @@ _{{webpack.config.js}}_ _{{dist/bundle-source-map.js}}_ ``` -```javascript +```json _{{dist/bundle-source-map.js.map}}_ ``` @@ -30,7 +30,7 @@ _{{dist/bundle-source-map.js.map}}_ _{{dist/bundle-hidden-source-map.js}}_ ``` -```javascript +```json _{{dist/bundle-hidden-source-map.js.map}}_ ``` @@ -42,7 +42,7 @@ _{{dist/bundle-inline-source-map.js}}_ ## nosources-source-map.js.map -```javascript +```json _{{dist/bundle-nosources-source-map.js.map}}_ ``` @@ -72,13 +72,13 @@ _{{dist/bundle-eval-cheap-module-source-map.js}}_ ## cheap-module-source-map.js.map -```javascript +```json _{{dist/bundle-cheap-module-source-map.js.map}}_ ``` ## cheap-source-map.js.map -```javascript +```json _{{dist/bundle-cheap-source-map.js.map}}_ ``` diff --git a/examples/top-level-await/Actions.js b/examples/top-level-await/Actions.js index b21de451f..d905225a1 100644 --- a/examples/top-level-await/Actions.js +++ b/examples/top-level-await/Actions.js @@ -24,4 +24,4 @@ export const AlternativeCreateUserAction = async name => { }; // Note: Using await import() at top-level doesn't make much sense -// except in rare cases. It will import modules sequencially. +// except in rare cases. It will import modules sequentially. diff --git a/examples/top-level-await/README.md b/examples/top-level-await/README.md index d7619262a..c30a78b32 100644 --- a/examples/top-level-await/README.md +++ b/examples/top-level-await/README.md @@ -96,7 +96,7 @@ export const AlternativeCreateUserAction = async name => { }; // Note: Using await import() at top-level doesn't make much sense -// except in rare cases. It will import modules sequencially. +// except in rare cases. It will import modules sequentially. ``` As `Actions.js` doesn't use any top-level-await nor `import await` it's not an async module. @@ -187,7 +187,7 @@ const AlternativeCreateUserAction = async name => { }; // Note: Using await import() at top-level doesn't make much sense -// except in rare cases. It will import modules sequencially. +// except in rare cases. It will import modules sequentially. /***/ }) diff --git a/lib/CaseSensitiveModulesWarning.js b/lib/CaseSensitiveModulesWarning.js index 265060c4e..9b8c43e6d 100644 --- a/lib/CaseSensitiveModulesWarning.js +++ b/lib/CaseSensitiveModulesWarning.js @@ -30,7 +30,7 @@ const sortModules = modules => { /** * @param {Module[]} modules each module from throw * @param {ModuleGraph} moduleGraph the module graph - * @returns {string} each message from provided moduels + * @returns {string} each message from provided modules */ const createModulesListMessage = (modules, moduleGraph) => { return modules diff --git a/lib/Compilation.js b/lib/Compilation.js index c76459390..e59b3f9be 100644 --- a/lib/Compilation.js +++ b/lib/Compilation.js @@ -1809,7 +1809,7 @@ class Compilation { } /** - * @param {Module} module moulde to report from + * @param {Module} module module to report from * @param {DependenciesBlock[]} blocks blocks to report from * @returns {void} */ @@ -2074,7 +2074,7 @@ class Compilation { moduleGraph.setDepth(module, 0); /** - * @param {Module} module module for processeing + * @param {Module} module module for processing * @returns {void} */ const processModule = module => { @@ -2281,7 +2281,7 @@ class Compilation { } this.logger.time("hashing: sort chunks"); - // clone needed as sort below is inplace mutation + // clone needed as sort below is in place mutation const chunks = Array.from(this.chunks); /** * sort here will bring all "falsy" values to the beginning diff --git a/lib/Compiler.js b/lib/Compiler.js index 71b7342e7..09502adbe 100644 --- a/lib/Compiler.js +++ b/lib/Compiler.js @@ -129,7 +129,7 @@ class Compiler { /** @type {SyncHook<[NormalModuleFactory]>} */ normalModuleFactory: new SyncHook(["normalModuleFactory"]), /** @type {SyncHook<[ContextModuleFactory]>} */ - contextModuleFactory: new SyncHook(["contextModulefactory"]), + contextModuleFactory: new SyncHook(["contextModuleFactory"]), /** @type {AsyncSeriesHook<[CompilationParams]>} */ beforeCompile: new AsyncSeriesHook(["params"]), @@ -640,7 +640,7 @@ class Compiler { } if (!info.immutable) { - // We wrote to this file before which has very likly a different content + // We wrote to this file before which has very likely a different content // skip comparing and assume content is different for performance // This case happens often during watch mode. return processMissingFile(); diff --git a/lib/ContextModule.js b/lib/ContextModule.js index bb89505e3..151ba13f6 100644 --- a/lib/ContextModule.js +++ b/lib/ContextModule.js @@ -435,7 +435,7 @@ class ContextModule extends Module { getUserRequestMap(dependencies, chunkGraph) { const moduleGraph = chunkGraph.moduleGraph; // if we filter first we get a new array - // therefore we dont need to create a clone of dependencies explicitly + // therefore we don't need to create a clone of dependencies explicitly // therefore the order of this is !important! const sortedDependencies = dependencies .filter(dependency => moduleGraph.getModule(dependency)) @@ -467,7 +467,7 @@ class ContextModule extends Module { let hasType = 0; const comparator = compareModulesById(chunkGraph); // if we filter first we get a new array - // therefore we dont need to create a clone of dependencies explicitly + // therefore we don't need to create a clone of dependencies explicitly // therefore the order of this is !important! const sortedModules = dependencies .map(dependency => moduleGraph.getModule(dependency)) @@ -1004,7 +1004,7 @@ module.exports = webpackEmptyAsyncContext;`; // base penalty let size = 160; - // if we dont have dependencies we stop here. + // if we don't have dependencies we stop here. for (const dependency of this.dependencies) { const element = /** @type {ContextElementDependency} */ (dependency); size += 5 + element.userRequest.length; diff --git a/lib/ContextModuleFactory.js b/lib/ContextModuleFactory.js index 198f5c835..a71a79f93 100644 --- a/lib/ContextModuleFactory.js +++ b/lib/ContextModuleFactory.js @@ -287,13 +287,13 @@ module.exports = class ContextModuleFactory extends ModuleFactory { if (!result) return callback(null, []); - const flattendResult = []; + const flattenedResult = []; for (const item of result) { - if (item) flattendResult.push(...item); + if (item) flattenedResult.push(...item); } - callback(null, flattendResult); + callback(null, flattenedResult); } ); }); diff --git a/lib/FileSystemInfo.js b/lib/FileSystemInfo.js index 4b66fd092..fe8d3c397 100644 --- a/lib/FileSystemInfo.js +++ b/lib/FileSystemInfo.js @@ -901,7 +901,7 @@ class FileSystemInfo { children.add(commonSnapshot); if (!snapshot.children) snapshot.children = new Set(); snapshot.children.add(commonSnapshot); - // Remove files from snaphot + // Remove files from snapshot for (const path of commonMap.keys()) snapshot.fileTimestamps.delete(path); // Create optimization entry diff --git a/lib/MainTemplate.js b/lib/MainTemplate.js index 54e49ea79..ad0fd5046 100644 --- a/lib/MainTemplate.js +++ b/lib/MainTemplate.js @@ -262,7 +262,7 @@ class MainTemplate { options ); }, - "MainTemplate.getPublicPath is depreacted (use Compilation.getAssetPath(compilation.outputOptions.publicPath, options) instead)", + "MainTemplate.getPublicPath is deprecated (use Compilation.getAssetPath(compilation.outputOptions.publicPath, options) instead)", "DEP_WEBPACK_MAIN_TEMPLATE_GET_PUBLIC_PATH" ); diff --git a/lib/Module.js b/lib/Module.js index e466265c8..28a319c14 100644 --- a/lib/Module.js +++ b/lib/Module.js @@ -527,7 +527,7 @@ class Module extends DependenciesBlock { for (const originChunk of chunkGraph.getModuleChunksIterable( fromModule )) { - // return true if module this is not reachable from originChunk when ignoring cunk + // return true if module this is not reachable from originChunk when ignoring chunk if (!this.isAccessibleInChunk(chunkGraph, originChunk, chunk)) return true; } diff --git a/lib/ModuleFilenameHelpers.js b/lib/ModuleFilenameHelpers.js index ef8e36c2c..0aade3b30 100644 --- a/lib/ModuleFilenameHelpers.js +++ b/lib/ModuleFilenameHelpers.js @@ -16,6 +16,7 @@ ModuleFilenameHelpers.REGEXP_LOADERS_RESOURCE = /\[loaders\]\[resource\]/gi; ModuleFilenameHelpers.RESOURCE = "[resource]"; ModuleFilenameHelpers.REGEXP_RESOURCE = /\[resource\]/gi; ModuleFilenameHelpers.ABSOLUTE_RESOURCE_PATH = "[absolute-resource-path]"; +// cSpell:words olute ModuleFilenameHelpers.REGEXP_ABSOLUTE_RESOURCE_PATH = /\[abs(olute)?-?resource-?path\]/gi; ModuleFilenameHelpers.RESOURCE_PATH = "[resource-path]"; ModuleFilenameHelpers.REGEXP_RESOURCE_PATH = /\[resource-?path\]/gi; diff --git a/lib/RuntimeGlobals.js b/lib/RuntimeGlobals.js index 7a773840e..95b776756 100644 --- a/lib/RuntimeGlobals.js +++ b/lib/RuntimeGlobals.js @@ -186,7 +186,7 @@ exports.startup = "__webpack_require__.x"; exports.startupNoDefault = "__webpack_require__.x (no default handler)"; /** - * interceptor for module exections + * interceptor for module executions */ exports.interceptModuleExecution = "__webpack_require__.i"; diff --git a/lib/RuntimeTemplate.js b/lib/RuntimeTemplate.js index ca8325a8c..477f7aa2e 100644 --- a/lib/RuntimeTemplate.js +++ b/lib/RuntimeTemplate.js @@ -513,7 +513,7 @@ class RuntimeTemplate { }); } throw new Error( - `RuntimeTemplate.importStatment(): Module ${module.identifier()} has no id. This should not happen.` + `RuntimeTemplate.importStatement(): Module ${module.identifier()} has no id. This should not happen.` ); } const moduleId = this.moduleId({ diff --git a/lib/SourceMapDevToolPlugin.js b/lib/SourceMapDevToolPlugin.js index e8050e979..7a7038eb3 100644 --- a/lib/SourceMapDevToolPlugin.js +++ b/lib/SourceMapDevToolPlugin.js @@ -329,7 +329,7 @@ class SourceMapDevToolPlugin { continue; } - // elsewise just append stars until we have a valid name + // otherwise just append stars until we have a valid name while (hasName) { sourceName += "*"; hasName = usedNamesSet.has(sourceName); diff --git a/lib/TemplatedPathPlugin.js b/lib/TemplatedPathPlugin.js index c1e7c733a..0e32fefd2 100644 --- a/lib/TemplatedPathPlugin.js +++ b/lib/TemplatedPathPlugin.js @@ -173,7 +173,7 @@ const replacePathVariables = (path, data, assetInfo) => { // [id] - chunk.id (0.js) // [name] - chunk.name (app.js) // [chunkhash] - chunk.hash (7823t4t4.js) - // [contenthash] - chunk.contentHash[type] (3256urzg.js) + // [contenthash] - chunk.contentHash[type] (3256u3zg.js) if (data.chunk) { const chunk = data.chunk; diff --git a/lib/buildChunkGraph.js b/lib/buildChunkGraph.js index f6a568813..d6ee2df53 100644 --- a/lib/buildChunkGraph.js +++ b/lib/buildChunkGraph.js @@ -768,9 +768,9 @@ const visitModules = ( } if (outdatedChunkGroupInfo.size > 0) { - logger.time("visitModules: check modules for revist"); + logger.time("visitModules: check modules for revisit"); processOutdatedChunkGroupInfo(); - logger.timeEnd("visitModules: check modules for revist"); + logger.timeEnd("visitModules: check modules for revisit"); } // Run queueDelayed when all items of the queue are processed @@ -932,7 +932,7 @@ const buildChunkGraph = (compilation, inputEntrypoints) => { ); logger.timeEnd("connectChunkGroups"); - // Cleaup work + // Cleanup work logger.time("cleanup"); cleanupUnconnectedGroups(compilation, allCreatedChunkGroups); diff --git a/lib/cache/PackFileCacheStrategy.js b/lib/cache/PackFileCacheStrategy.js index 2c85c4f25..3bca7caf3 100644 --- a/lib/cache/PackFileCacheStrategy.js +++ b/lib/cache/PackFileCacheStrategy.js @@ -210,7 +210,7 @@ class Pack { */ _optimizeSmallContent() { // 1. Find all small content files - // Treat unused content files separatly to avoid + // Treat unused content files separately to avoid // a merge-split cycle /** @type {number[]} */ const smallUsedContents = []; diff --git a/lib/config/defaults.js b/lib/config/defaults.js index fa8baa6ca..60703ad72 100644 --- a/lib/config/defaults.js +++ b/lib/config/defaults.js @@ -388,7 +388,7 @@ const applyOutputDefaults = ( const hasContentHash = filename.includes("[contenthash]"); // Anything changing depending on chunk is fine if (hasChunkHash || hasContentHash || hasName || hasId) return filename; - // Elsewise prefix "[id]." in front of the basename to make it changing + // Otherwise prefix "[id]." in front of the basename to make it changing return filename.replace(/(^|\/)([^/]*(?:\?|$))/, "$1[id].$2"); } return "[id].js"; diff --git a/lib/dependencies/AMDDefineDependency.js b/lib/dependencies/AMDDefineDependency.js index de8df9de6..169b56a3d 100644 --- a/lib/dependencies/AMDDefineDependency.js +++ b/lib/dependencies/AMDDefineDependency.js @@ -13,13 +13,13 @@ const NullDependency = require("./NullDependency"); /** @typedef {import("../Dependency")} Dependency */ /** @typedef {import("../DependencyTemplate").DependencyTemplateContext} DependencyTemplateContext */ -/** @type {Record} */ +/** @type {Record} */ const DEFINITIONS = { f: { definition: "var __WEBPACK_AMD_DEFINE_RESULT__;", content: `!(__WEBPACK_AMD_DEFINE_RESULT__ = (#).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))`, - reqs: [ + requests: [ RuntimeGlobals.require, RuntimeGlobals.exports, RuntimeGlobals.module @@ -28,7 +28,7 @@ const DEFINITIONS = { o: { definition: "", content: "!(module.exports = #)", - reqs: [RuntimeGlobals.module] + requests: [RuntimeGlobals.module] }, of: { definition: @@ -38,7 +38,7 @@ const DEFINITIONS = { (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))`, - reqs: [ + requests: [ RuntimeGlobals.require, RuntimeGlobals.exports, RuntimeGlobals.module @@ -49,12 +49,12 @@ const DEFINITIONS = { "var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;", content: `!(__WEBPACK_AMD_DEFINE_ARRAY__ = #, __WEBPACK_AMD_DEFINE_RESULT__ = (#).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))`, - reqs: [RuntimeGlobals.exports, RuntimeGlobals.module] + requests: [RuntimeGlobals.exports, RuntimeGlobals.module] }, ao: { definition: "", content: "!(#, module.exports = #)", - reqs: [RuntimeGlobals.module] + requests: [RuntimeGlobals.module] }, aof: { definition: @@ -63,35 +63,35 @@ const DEFINITIONS = { __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))`, - reqs: [RuntimeGlobals.exports, RuntimeGlobals.module] + requests: [RuntimeGlobals.exports, RuntimeGlobals.module] }, lf: { definition: "var XXX, XXXmodule;", content: "!(XXXmodule = { id: YYY, exports: {}, loaded: false }, XXX = #.call(XXXmodule.exports, __webpack_require__, XXXmodule.exports, XXXmodule), XXXmodule.loaded = true, XXX === undefined && (XXX = XXXmodule.exports))", - reqs: [RuntimeGlobals.require, RuntimeGlobals.module] + requests: [RuntimeGlobals.require, RuntimeGlobals.module] }, lo: { definition: "var XXX;", content: "!(XXX = #)", - reqs: [] + requests: [] }, lof: { definition: "var XXX, XXXfactory, XXXmodule;", content: "!(XXXfactory = (#), (typeof XXXfactory === 'function' ? (XXXmodule = { id: YYY, exports: {}, loaded: false }), (XXX = XXXfactory.call(XXXmodule.exports, __webpack_require__, XXXmodule.exports, XXXmodule)), (XXXmodule.loaded = true), XXX === undefined && (XXX = XXXmodule.exports) : XXX = XXXfactory))", - reqs: [RuntimeGlobals.require, RuntimeGlobals.module] + requests: [RuntimeGlobals.require, RuntimeGlobals.module] }, laf: { definition: "var __WEBPACK_AMD_DEFINE_ARRAY__, XXX, XXXexports;", content: "!(__WEBPACK_AMD_DEFINE_ARRAY__ = #, XXX = (#).apply(XXXexports = {}, __WEBPACK_AMD_DEFINE_ARRAY__), XXX === undefined && (XXX = XXXexports))", - reqs: [] + requests: [] }, lao: { definition: "var XXX;", content: "!(#, XXX = #)", - reqs: [] + requests: [] }, laof: { definition: "var XXXarray, XXXfactory, XXXexports, XXX;", @@ -100,7 +100,7 @@ const DEFINITIONS = { ((XXX = XXXfactory.apply(XXXexports = {}, XXXarray)), XXX === undefined && (XXX = XXXexports)) : (XXX = XXXfactory) ))`, - reqs: [] + requests: [] } }; @@ -157,8 +157,8 @@ AMDDefineDependency.Template = class AMDDefineDependencyTemplate extends NullDep apply(dependency, source, { runtimeRequirements }) { const dep = /** @type {AMDDefineDependency} */ (dependency); const branch = this.branch(dep); - const { definition, content, reqs } = DEFINITIONS[branch]; - for (const req of reqs) { + const { definition, content, requests } = DEFINITIONS[branch]; + for (const req of requests) { runtimeRequirements.add(req); } this.replace(dep, source, definition, content); diff --git a/lib/dependencies/LocalModulesHelpers.js b/lib/dependencies/LocalModulesHelpers.js index 00af70c63..bc2eb8a9d 100644 --- a/lib/dependencies/LocalModulesHelpers.js +++ b/lib/dependencies/LocalModulesHelpers.js @@ -11,11 +11,11 @@ const lookup = (parent, mod) => { if (mod.charAt(0) !== ".") return mod; var path = parent.split("/"); - var segs = mod.split("/"); + var segments = mod.split("/"); path.pop(); - for (let i = 0; i < segs.length; i++) { - const seg = segs[i]; + for (let i = 0; i < segments.length; i++) { + const seg = segments[i]; if (seg === "..") { path.pop(); } else if (seg !== ".") { diff --git a/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js b/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js index 0eee46a5a..ed0e81d31 100644 --- a/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js +++ b/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js @@ -78,9 +78,11 @@ module.exports = class RequireEnsureDependenciesBlockParserPlugin { parser.inScope([], () => { for (const ee of dependenciesItems) { if (ee.isString()) { - const edep = new RequireEnsureItemDependency(ee.string); - edep.loc = ee.loc || expr.loc; - depBlock.addDependency(edep); + const ensureDependency = new RequireEnsureItemDependency( + ee.string + ); + ensureDependency.loc = ee.loc || expr.loc; + depBlock.addDependency(ensureDependency); } else { failed = true; } diff --git a/lib/ids/IdHelpers.js b/lib/ids/IdHelpers.js index 3e82d70c2..681f48755 100644 --- a/lib/ids/IdHelpers.js +++ b/lib/ids/IdHelpers.js @@ -118,7 +118,7 @@ exports.getFullModuleName = getFullModuleName; /** * @param {Chunk} chunk the chunk - * @param {ChunkGraph} chunkGraph the chunk grph + * @param {ChunkGraph} chunkGraph the chunk graph * @param {string} context context directory * @param {string} delimiter delimiter for names * @param {Object=} associatedObjectForCache an object to which the cache will be attached @@ -145,7 +145,7 @@ exports.getShortChunkName = getShortChunkName; /** * @param {Chunk} chunk the chunk - * @param {ChunkGraph} chunkGraph the chunk grph + * @param {ChunkGraph} chunkGraph the chunk graph * @param {string} context context directory * @param {string} delimiter delimiter for names * @param {Object=} associatedObjectForCache an object to which the cache will be attached @@ -175,7 +175,7 @@ exports.getLongChunkName = getLongChunkName; /** * @param {Chunk} chunk the chunk - * @param {ChunkGraph} chunkGraph the chunk grph + * @param {ChunkGraph} chunkGraph the chunk graph * @param {string} context context directory * @param {Object=} associatedObjectForCache an object to which the cache will be attached * @returns {string} full chunk name diff --git a/lib/javascript/JavascriptParserHelpers.js b/lib/javascript/JavascriptParserHelpers.js index fc709072b..cda7b8762 100644 --- a/lib/javascript/JavascriptParserHelpers.js +++ b/lib/javascript/JavascriptParserHelpers.js @@ -34,15 +34,15 @@ exports.evaluateToBoolean = value => { exports.evaluateToIdentifier = (identifier, rootInfo, getMembers, truthy) => { return function identifierExpression(expr) { - let evex = new BasicEvaluatedExpression() + let evaluatedExpression = new BasicEvaluatedExpression() .setIdentifier(identifier, rootInfo, getMembers) .setRange(expr.range); if (truthy === true) { - evex = evex.setTruthy(); + evaluatedExpression = evaluatedExpression.setTruthy(); } else if (truthy === false) { - evex = evex.setFalsy(); + evaluatedExpression = evaluatedExpression.setFalsy(); } - return evex; + return evaluatedExpression; }; }; diff --git a/lib/library/UmdLibraryPlugin.js b/lib/library/UmdLibraryPlugin.js index c028f1308..8a8adade9 100644 --- a/lib/library/UmdLibraryPlugin.js +++ b/lib/library/UmdLibraryPlugin.js @@ -242,7 +242,7 @@ class UmdLibraryPlugin extends AbstractLibraryPlugin { const { auxiliaryComment, namedDefine, names } = options; - const getAuxilaryComment = type => { + const getAuxiliaryComment = type => { if (auxiliaryComment) { if (typeof auxiliaryComment === "string") return "\t//" + auxiliaryComment + "\n"; @@ -255,12 +255,12 @@ class UmdLibraryPlugin extends AbstractLibraryPlugin { return new ConcatSource( new OriginalSource( "(function webpackUniversalModuleDefinition(root, factory) {\n" + - getAuxilaryComment("commonjs2") + + getAuxiliaryComment("commonjs2") + " if(typeof exports === 'object' && typeof module === 'object')\n" + " module.exports = factory(" + externalsRequireArray("commonjs2") + ");\n" + - getAuxilaryComment("amd") + + getAuxiliaryComment("amd") + " else if(typeof define === 'function' && define.amd)\n" + (requiredExternals.length > 0 ? names.amd && namedDefine === true @@ -284,14 +284,14 @@ class UmdLibraryPlugin extends AbstractLibraryPlugin { ");\n" : " define([], " + amdFactory + ");\n") + (names.root || names.commonjs - ? getAuxilaryComment("commonjs") + + ? getAuxiliaryComment("commonjs") + " else if(typeof exports === 'object')\n" + " exports[" + libraryName(names.commonjs || names.root) + "] = factory(" + externalsRequireArray("commonjs") + ");\n" + - getAuxilaryComment("root") + + getAuxiliaryComment("root") + " else\n" + " " + replaceKeys( diff --git a/lib/optimize/AggressiveSplittingPlugin.js b/lib/optimize/AggressiveSplittingPlugin.js index 889b7d9f0..817fca8f2 100644 --- a/lib/optimize/AggressiveSplittingPlugin.js +++ b/lib/optimize/AggressiveSplittingPlugin.js @@ -288,7 +288,7 @@ class AggressiveSplittingPlugin { } } - // Also add all unused historial splits (after the used ones) + // Also add all unused historical splits (after the used ones) // They can still be used in some future compilation const recordedSplits = compilation.records && compilation.records.aggressiveSplits; diff --git a/lib/optimize/ConcatenatedModule.js b/lib/optimize/ConcatenatedModule.js index 49ed618c8..fdb29a183 100644 --- a/lib/optimize/ConcatenatedModule.js +++ b/lib/optimize/ConcatenatedModule.js @@ -647,7 +647,7 @@ const getHarmonyExportImportedSpecifierDependencyExports = ( class ConcatenatedModule extends Module { /** * @param {Module} rootModule the root module of the concatenation - * @param {Set} modules all modules in the concantenation (including the root module) + * @param {Set} modules all modules in the concatenation (including the root module) * @param {ModuleGraph} moduleGraph the module graph * @param {Object=} associatedObjectForCache object for caching * @returns {ConcatenatedModule} the module @@ -681,7 +681,7 @@ class ConcatenatedModule extends Module { * @param {string} options.identifier the identifier of the module * @param {Module=} options.rootModule the root module of the concatenation * @param {Set=} options.modules all concatenated modules - * @param {TODO=} options.orderedConcatenationList the list of concentated modules and externals + * @param {TODO=} options.orderedConcatenationList the list of concated modules and externals */ constructor({ identifier, rootModule, modules, orderedConcatenationList }) { super("javascript/esm", null); @@ -992,7 +992,7 @@ class ConcatenatedModule extends Module { const runtimeRequirements = new Set(); const requestShortener = runtimeTemplate.requestShortener; - // Metainfo for each module + // Meta info for each module const modulesWithInfo = this._getModulesWithInfo(moduleGraph); // Create mapping from module to info diff --git a/lib/optimize/FlagIncludedChunksPlugin.js b/lib/optimize/FlagIncludedChunksPlugin.js index cf88d38a1..48d97fb4f 100644 --- a/lib/optimize/FlagIncludedChunksPlugin.js +++ b/lib/optimize/FlagIncludedChunksPlugin.js @@ -54,7 +54,7 @@ class FlagIncludedChunksPlugin { i++; } - // interate all chunks to generate bitmaps + // iterate all chunks to generate bitmaps /** @type {WeakMap} */ const chunkModulesHash = new WeakMap(); for (const chunk of chunks) { diff --git a/lib/optimize/LimitChunkCountPlugin.js b/lib/optimize/LimitChunkCountPlugin.js index f66cc559e..ece04205d 100644 --- a/lib/optimize/LimitChunkCountPlugin.js +++ b/lib/optimize/LimitChunkCountPlugin.js @@ -93,7 +93,7 @@ class LimitChunkCountPlugin { (a, b) => a.bIdx - b.bIdx ); - // we keep a mappng from chunk to all combinations + // we keep a mapping from chunk to all combinations // but this mapping is not kept up-to-date with deletions // so `deleted` flag need to be considered when iterating this /** @type {Map>} */ diff --git a/lib/optimize/MinChunkSizePlugin.js b/lib/optimize/MinChunkSizePlugin.js index fc005be66..8a1ad8c86 100644 --- a/lib/optimize/MinChunkSizePlugin.js +++ b/lib/optimize/MinChunkSizePlugin.js @@ -86,7 +86,7 @@ class MinChunkSizePlugin { return extendedPair; }) .sort((a, b) => { - // sadly javascript does an inplace sort here + // sadly javascript does an in place sort here // sort by size const diff = b[0] - a[0]; if (diff !== 0) return diff; diff --git a/lib/optimize/MinMaxSizeWarning.js b/lib/optimize/MinMaxSizeWarning.js index 28ca9f7be..4be267059 100644 --- a/lib/optimize/MinMaxSizeWarning.js +++ b/lib/optimize/MinMaxSizeWarning.js @@ -22,7 +22,7 @@ class MinMaxSizeWarning extends WebpackError { `${keysMessage}\n` + `Configured minSize (${SizeFormatHelpers.formatSize(minSize)}) is ` + `bigger than maxSize (${SizeFormatHelpers.formatSize(maxSize)}).\n` + - "This seem to be a invalid optimiziation.splitChunks configuration." + "This seem to be a invalid optimization.splitChunks configuration." ); } } diff --git a/lib/optimize/ModuleConcatenationPlugin.js b/lib/optimize/ModuleConcatenationPlugin.js index 16b86de77..bafcd3a97 100644 --- a/lib/optimize/ModuleConcatenationPlugin.js +++ b/lib/optimize/ModuleConcatenationPlugin.js @@ -284,7 +284,7 @@ class ModuleConcatenationPlugin { // cache failures to add modules const failureCache = new Map(); - // potential optional import candiates + // potential optional import candidates /** @type {Set} */ const candidates = new Set(); @@ -297,13 +297,13 @@ class ModuleConcatenationPlugin { // _tryToAdd modifies the config even if it fails // so make sure to only accept changes when it succeed const backup = currentConfiguration.snapshot(); - const impCandiates = new Set(); + const impCandidates = new Set(); const problem = this._tryToAdd( compilation, currentConfiguration, imp, possibleInners, - impCandiates, + impCandidates, failureCache ); if (problem) { @@ -313,7 +313,7 @@ class ModuleConcatenationPlugin { // roll back currentConfiguration.rollback(backup); } else { - for (const c of impCandiates) { + for (const c of impCandidates) { candidates.add(c); } } @@ -341,7 +341,7 @@ class ModuleConcatenationPlugin { `${concatConfigurations.length} concat configurations` ); // HACK: Sort configurations by length and start with the longest one - // to get the biggers groups possible. Used modules are marked with usedModules + // to get the biggest groups possible. Used modules are marked with usedModules // TODO: Allow to reuse existing configuration while trying to add dependencies. // This would improve performance. O(n^2) -> O(n) logger.time(`sort concat configurations`); @@ -548,7 +548,7 @@ class ModuleConcatenationPlugin { } } - // Add imports to possible candiates list + // Add imports to possible candidates list for (const imp of this._getImports(compilation, module)) { candidates.add(imp); } diff --git a/lib/optimize/SplitChunksPlugin.js b/lib/optimize/SplitChunksPlugin.js index bc9314376..3b9174254 100644 --- a/lib/optimize/SplitChunksPlugin.js +++ b/lib/optimize/SplitChunksPlugin.js @@ -720,7 +720,7 @@ module.exports = class SplitChunksPlugin { } // Create key for maps // When it has a name we use the name as key - // Elsewise we create the key from chunks and cache group key + // Otherwise we create the key from chunks and cache group key // This automatically merges equal names const key = cacheGroup.key + diff --git a/lib/rules/RuleSetCompiler.js b/lib/rules/RuleSetCompiler.js index e50ca5a14..95135a448 100644 --- a/lib/rules/RuleSetCompiler.js +++ b/lib/rules/RuleSetCompiler.js @@ -231,7 +231,7 @@ class RuleSetCompiler { throw this.error( path, condition, - `Unexcepted ${typeof condition} when condition was expected` + `Unexpected ${typeof condition} when condition was expected` ); } @@ -281,7 +281,7 @@ class RuleSetCompiler { throw this.error( `${path}.${key}`, condition[key], - `Unexcepted property ${key} in condition` + `Unexpected property ${key} in condition` ); } } diff --git a/lib/serialization/FileMiddleware.js b/lib/serialization/FileMiddleware.js index 0e931560b..116aff982 100644 --- a/lib/serialization/FileMiddleware.js +++ b/lib/serialization/FileMiddleware.js @@ -281,7 +281,7 @@ class FileMiddleware extends SerializerMiddleware { ) ); - // As final step atomatically update the index file to have a consistent pack again + // As final step automatically update the index file to have a consistent pack again await new Promise(resolve => { this.fs.rename(filename + "_", filename, err => { if (err) return reject(err); diff --git a/lib/serialization/ObjectMiddleware.js b/lib/serialization/ObjectMiddleware.js index 65a6ea2e9..19e68acd2 100644 --- a/lib/serialization/ObjectMiddleware.js +++ b/lib/serialization/ObjectMiddleware.js @@ -435,7 +435,7 @@ class ObjectMiddleware extends SerializerMiddleware { }; if (read() !== CURRENT_VERSION) - throw new Error("Version missmatch, serializer changed"); + throw new Error("Version mismatch, serializer changed"); let currentPos = 0; const referenceable = []; diff --git a/lib/stats/DefaultStatsPrinterPlugin.js b/lib/stats/DefaultStatsPrinterPlugin.js index 4e2db84a9..efb187cf7 100644 --- a/lib/stats/DefaultStatsPrinterPlugin.js +++ b/lib/stats/DefaultStatsPrinterPlugin.js @@ -659,7 +659,7 @@ const PREFERRED_ORDERS = { "separator!", "entries", "separator!", - "filtredEntries" + "filteredEntries" ], loggingEntry: ["message", "trace", "children"], "chunkGroup.childAssets[]": ["type", "children"] @@ -956,12 +956,12 @@ const RESULT_MODIFIER = { } }; -const createOrder = (array, preferedOrder) => { +const createOrder = (array, preferredOrder) => { const originalArray = array.slice(); const set = new Set(array); const usedSet = new Set(); array.length = 0; - for (const element of preferedOrder) { + for (const element of preferredOrder) { if (element.endsWith("!") || set.has(element)) { array.push(element); usedSet.add(element); @@ -1073,11 +1073,11 @@ class DefaultStatsPrinterPlugin { } for (const key of Object.keys(PREFERRED_ORDERS)) { - const preferedOrder = PREFERRED_ORDERS[key]; + const preferredOrder = PREFERRED_ORDERS[key]; stats.hooks.sortElements .for(key) .tap("DefaultStatsPrinterPlugin", (elements, context) => { - createOrder(elements, preferedOrder); + createOrder(elements, preferredOrder); }); } diff --git a/lib/util/LazySet.js b/lib/util/LazySet.js index 4547bfc1c..1f317efa0 100644 --- a/lib/util/LazySet.js +++ b/lib/util/LazySet.js @@ -51,7 +51,7 @@ const flatten = (targetSet, toDeepMerge) => { */ class LazySet { /** - * @param {Iterable=} iterable init interable + * @param {Iterable=} iterable init iterable */ constructor(iterable) { /** @type {Set} */ diff --git a/lib/util/SetHelpers.js b/lib/util/SetHelpers.js index b68b03c49..ad0ff84f1 100644 --- a/lib/util/SetHelpers.js +++ b/lib/util/SetHelpers.js @@ -40,7 +40,7 @@ const intersect = sets => { * Checks if a set is the subset of another set * @template T * @param {Set} bigSet a Set which contains the original elements to compare against - * @param {Set} smallSet the set whos elements might be contained inside of bigSet + * @param {Set} smallSet the set whose elements might be contained inside of bigSet * @returns {boolean} returns true if smallSet contains all elements inside of the bigSet */ const isSubset = (bigSet, smallSet) => { diff --git a/lib/util/deterministicGrouping.js b/lib/util/deterministicGrouping.js index 019a8365c..b30cc5cea 100644 --- a/lib/util/deterministicGrouping.js +++ b/lib/util/deterministicGrouping.js @@ -271,7 +271,7 @@ module.exports = ({ maxSize, minSize, items, getSize, getKey }) => { const problemTypes = getToSmallTypes(initialGroup.size, minSize); if (problemTypes.size > 0) { - // We hit an edgecase where the working set is already smaller than minSize + // We hit an edge case where the working set is already smaller than minSize // We merge problematic nodes with the smallest result node to keep minSize intact const problemNodes = initialGroup.popNodes( n => getNumberOfMatchingSizeTypes(n.size, problemTypes) > 0 @@ -364,21 +364,21 @@ module.exports = ({ maxSize, minSize, items, getSize, getKey }) => { // and queue them up const rightNodes = [group.nodes[right + 1]]; /** @type {number[]} */ - const rightSimilaries = []; + const rightSimilarities = []; for (let i = right + 2; i < group.nodes.length; i++) { - rightSimilaries.push(group.similarities[i - 1]); + rightSimilarities.push(group.similarities[i - 1]); rightNodes.push(group.nodes[i]); } - queue.push(new Group(rightNodes, rightSimilaries)); + queue.push(new Group(rightNodes, rightSimilarities)); const leftNodes = [group.nodes[0]]; /** @type {number[]} */ - const leftSimilaries = []; + const leftSimilarities = []; for (let i = 1; i < left; i++) { - leftSimilaries.push(group.similarities[i - 1]); + leftSimilarities.push(group.similarities[i - 1]); leftNodes.push(group.nodes[i]); } - queue.push(new Group(leftNodes, leftSimilaries)); + queue.push(new Group(leftNodes, leftSimilarities)); } } } diff --git a/lib/util/identifier.js b/lib/util/identifier.js index 9309bafbc..d751d814a 100644 --- a/lib/util/identifier.js +++ b/lib/util/identifier.js @@ -7,7 +7,7 @@ const path = require("path"); const WINDOWS_ABS_PATH_REGEXP = /^[a-zA-Z]:[\\/]/; -const SEGEMENTS_SPLIT_REGEXP = /([|!])/; +const SEGMENTS_SPLIT_REGEXP = /([|!])/; const WINDOWS_PATH_SEPARATOR_REGEXP = /\\/g; /** @@ -207,7 +207,7 @@ const makeCacheable = fn => { */ const _makePathsRelative = (context, identifier) => { return identifier - .split(SEGEMENTS_SPLIT_REGEXP) + .split(SEGMENTS_SPLIT_REGEXP) .map(str => absoluteToRequest(context, str)) .join(""); }; diff --git a/lib/validateSchema.js b/lib/validateSchema.js index bb8cbc680..a6b168cc1 100644 --- a/lib/validateSchema.js +++ b/lib/validateSchema.js @@ -7,6 +7,7 @@ const validate = require("schema-utils"); +/* cSpell:disable */ const DID_YOU_MEAN = { rules: "module.rules", loaders: "module.rules or module.rules.*.use", @@ -31,6 +32,7 @@ const DID_YOU_MEAN = { automaticNamePrefix: "optimization.splitChunks.[cacheGroups.*].idHint (BREAKING CHANGE since webpack 5)" }; +/* cSpell:enable */ const validateSchema = (schema, options) => { validate(schema, options, { diff --git a/lib/wasm/WasmChunkLoadingRuntimeModule.js b/lib/wasm/WasmChunkLoadingRuntimeModule.js index b4e79ade9..f3626d0a0 100644 --- a/lib/wasm/WasmChunkLoadingRuntimeModule.js +++ b/lib/wasm/WasmChunkLoadingRuntimeModule.js @@ -236,7 +236,7 @@ class WasmChunkLoadingRuntimeModule extends RuntimeModule { "var installedWasmModules = {};", "", // This function is used to delay reading the installed wasm module promises - // by a microtask. Sorting them doesn't help because there are egdecases where + // by a microtask. Sorting them doesn't help because there are edge cases where // sorting is not possible (modules splitted into different chunks). // So we not even trying and solve this by a microtask delay. "function promiseResolve() { return Promise.resolve(); }", diff --git a/lib/wasm/WebAssemblyGenerator.js b/lib/wasm/WebAssemblyGenerator.js index c29c4fdbf..56e21e277 100644 --- a/lib/wasm/WebAssemblyGenerator.js +++ b/lib/wasm/WebAssemblyGenerator.js @@ -203,7 +203,7 @@ const rewriteImportedGlobals = state => bin => { if (init.id === "get_global") { node.globalType.mutability = "var"; - const initialGlobalidx = init.args[0]; + const initialGlobalIdx = init.args[0]; node.init = [ createDefaultInitForGlobal(node.globalType), @@ -216,7 +216,7 @@ const rewriteImportedGlobals = state => bin => { * They have the same indices as the init params, so use the * same index. */ - t.instruction("get_local", [initialGlobalidx]), + t.instruction("get_local", [initialGlobalIdx]), t.instruction("set_global", [t.indexLiteral(newGlobals.length)]) ); } diff --git a/lib/wasm/WebAssemblyInInitialChunkError.js b/lib/wasm/WebAssemblyInInitialChunkError.js index 98d6f3eb8..106b5dfb1 100644 --- a/lib/wasm/WebAssemblyInInitialChunkError.js +++ b/lib/wasm/WebAssemblyInInitialChunkError.js @@ -95,7 +95,7 @@ module.exports = class WebAssemblyInInitialChunkError extends WebpackError { ); const message = `WebAssembly module is included in initial chunk. This is not allowed, because WebAssembly download and compilation must happen asynchronous. -Add an async splitpoint (i. e. import()) somewhere between your entrypoint and the WebAssembly module: +Add an async split point (i. e. import()) somewhere between your entrypoint and the WebAssembly module: ${moduleChains.map(s => `* ${s}`).join("\n")}`; super(message); diff --git a/lib/wasm/WebAssemblyParser.js b/lib/wasm/WebAssemblyParser.js index b8281e4c0..dd3024ce9 100644 --- a/lib/wasm/WebAssemblyParser.js +++ b/lib/wasm/WebAssemblyParser.js @@ -99,10 +99,10 @@ class WebAssemblyParser extends Parser { const descriptor = node.descr; if (descriptor.exportType === "Func") { - const funcidx = descriptor.id.value; + const funcIdx = descriptor.id.value; /** @type {t.FuncSignature} */ - const funcSignature = moduleContext.getFunction(funcidx); + const funcSignature = moduleContext.getFunction(funcIdx); const incompatibleType = getJsIncompatibleTypeOfFuncSignature( funcSignature @@ -160,7 +160,7 @@ class WebAssemblyParser extends Parser { } else if (t.isFuncImportDescr(node.descr) === true) { const incompatibleType = getJsIncompatibleType(node.descr.signature); if (incompatibleType) { - onlyDirectImport = `Non-JS-compatible Func Sigurature (${incompatibleType})`; + onlyDirectImport = `Non-JS-compatible Func Signature (${incompatibleType})`; } } else if (t.isGlobalType(node.descr) === true) { const type = node.descr.valtype; diff --git a/package.json b/package.json index 3c51d6466..ad342e7c0 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "coffee-loader": "^0.9.0", "coffeescript": "^2.3.2", "coveralls": "^3.0.2", + "cspell": "^4.0.55", "css-loader": "^3.2.0", "es6-promise-polyfill": "^1.1.1", "eslint": "^6.1.0", @@ -129,9 +130,10 @@ "type-report": "rimraf coverage && yarn cover:types && yarn cover:report && open-cli coverage/lcov-report/index.html", "pretest": "yarn lint", "prelint": "yarn setup", - "lint": "yarn code-lint && yarn jest-lint && yarn type-lint && yarn special-lint", + "lint": "yarn code-lint && yarn jest-lint && yarn type-lint && yarn special-lint && yarn spellcheck", "code-lint": "eslint . --ext '.js' --cache", "type-lint": "tsc --pretty", + "spellcheck": "cspell \"{.github,benchmark,bin,examples,hot,lib,schemas,setup,tooling}/**/*.{md,yml,yaml,js,json}\" \"*.md\"", "special-lint": "node tooling/inherit-types && node tooling/format-schemas && node tooling/format-file-header && node tooling/compile-to-definitions", "special-lint-fix": "node tooling/inherit-types --write --override && node tooling/format-schemas --write && node tooling/format-file-header --write && node tooling/compile-to-definitions --write", "fix": "yarn code-lint --fix && yarn special-lint-fix", diff --git a/schemas/WebpackOptions.json b/schemas/WebpackOptions.json index f251782d3..1aa089d81 100644 --- a/schemas/WebpackOptions.json +++ b/schemas/WebpackOptions.json @@ -386,7 +386,7 @@ ] }, "Experiments": { - "description": "Enables/Disables experiments (experiemental features with relax SemVer compatibility).", + "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).", "type": "object", "additionalProperties": false, "properties": { @@ -411,7 +411,7 @@ "type": "boolean" }, "outputModule": { - "description": "Allow outputing javascript files as module source type.", + "description": "Allow output javascript files as module source type.", "type": "boolean" }, "syncWebAssembly": { @@ -687,7 +687,7 @@ "absolutePath": false }, "Iife": { - "description": "Wrap javascript code into IIFEs to avoid leaking into global scope.", + "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" }, "InfrastructureLogging": { @@ -1916,7 +1916,7 @@ "enum": [false, "warning", "error"] }, "maxAssetSize": { - "description": "Filesize limit (in bytes) when exceeded, that webpack will provide performance hints.", + "description": "File size limit (in bytes) when exceeded, that webpack will provide performance hints.", "type": "number" }, "maxEntrypointSize": { diff --git a/schemas/plugins/optimize/AggressiveSplittingPlugin.json b/schemas/plugins/optimize/AggressiveSplittingPlugin.json index d3be22bb0..8abcdd8ad 100644 --- a/schemas/plugins/optimize/AggressiveSplittingPlugin.json +++ b/schemas/plugins/optimize/AggressiveSplittingPlugin.json @@ -12,7 +12,7 @@ "type": "number" }, "maxSize": { - "description": "Byte, maxsize of per file (Default: 50kiB).", + "description": "Byte, max size of per file (Default: 50kiB).", "type": "number" }, "minSize": { diff --git a/setup/setup.js b/setup/setup.js index 2386354e8..3e214fb72 100644 --- a/setup/setup.js +++ b/setup/setup.js @@ -73,7 +73,7 @@ function exec(command, args, description) { }); cp.on("exit", exitCode => { if (exitCode) { - reject(`${description} failed with exitcode ${exitCode}`); + reject(`${description} failed with exit code ${exitCode}`); } else { resolve(); } @@ -94,7 +94,7 @@ function execGetOutput(command, args, description) { }); cp.on("exit", exitCode => { if (exitCode) { - reject(`${description} failed with exitcode ${exitCode}`); + reject(`${description} failed with exit code ${exitCode}`); } else { resolve( Buffer.concat(buffers) diff --git a/tooling/compile-to-definitions.js b/tooling/compile-to-definitions.js index b155f50b0..695f466dd 100644 --- a/tooling/compile-to-definitions.js +++ b/tooling/compile-to-definitions.js @@ -11,7 +11,7 @@ const style = { }; // When --write is set, files will be written in place -// Elsewise it only prints outdated files +// Otherwise it only prints outdated files const doWrite = process.argv.includes("--write"); const makeSchemas = () => { diff --git a/tooling/format-file-header.js b/tooling/format-file-header.js index eb0cda5c9..2a799f51c 100644 --- a/tooling/format-file-header.js +++ b/tooling/format-file-header.js @@ -2,7 +2,7 @@ const path = require("path"); const fs = require("fs"); // When --write is set, files will be written in place -// Elsewise it only prints outdated files +// Otherwise it only prints outdated files const doWrite = process.argv.includes("--write"); const allFiles = new Set(); diff --git a/tooling/format-schemas.js b/tooling/format-schemas.js index 803acd5a1..2f8537c61 100644 --- a/tooling/format-schemas.js +++ b/tooling/format-schemas.js @@ -5,7 +5,7 @@ const prettier = require("prettier"); const schemasDir = path.resolve(__dirname, "../schemas"); // When --write is set, files will be written in place -// Elsewise it only prints outdated files +// Otherwise it only prints outdated files const doWrite = process.argv.includes("--write"); const sortObjectAlphabetically = obj => { diff --git a/tooling/inherit-types.js b/tooling/inherit-types.js index bf3c7d95f..9ada7aa14 100644 --- a/tooling/inherit-types.js +++ b/tooling/inherit-types.js @@ -4,11 +4,11 @@ const ts = require("typescript"); const program = require("./typescript-program"); // When --override is set, base jsdoc will override sub class jsdoc -// Elsewise on a conflict it will create a merge conflict in the file +// Otherwise on a conflict it will create a merge conflict in the file const override = process.argv.includes("--override"); // When --write is set, files will be written in place -// Elsewise it only prints outdated files +// Otherwise it only prints outdated files const doWrite = process.argv.includes("--write"); const typeChecker = program.getTypeChecker(); diff --git a/tooling/type-coverage.js b/tooling/type-coverage.js index 9cb40cce2..dfeb195be 100644 --- a/tooling/type-coverage.js +++ b/tooling/type-coverage.js @@ -1,4 +1,4 @@ -// loosly based on https://github.com/plantain-00/type-coverage +// loosely based on https://github.com/plantain-00/type-coverage const path = require("path"); const fs = require("fs"); diff --git a/yarn.lock b/yarn.lock index 2c806812d..da144fd8d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1459,7 +1459,7 @@ combined-stream@^1.0.6, combined-stream@~1.0.6: dependencies: delayed-stream "~1.0.0" -commander@^2.20.0, commander@~2.20.3: +commander@^2.20.0, commander@^2.20.3, commander@~2.20.3: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== @@ -1469,6 +1469,13 @@ commander@^4.0.1: resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068" integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== +comment-json@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/comment-json/-/comment-json-1.1.3.tgz#6986c3330fee0c4c9e00c2398cd61afa5d8f239e" + integrity sha1-aYbDMw/uDEyeAMI5jNYa+l2PI54= + dependencies: + json-parser "^1.0.0" + comment-parser@^0.7.2: version "0.7.2" resolved "https://registry.yarnpkg.com/comment-parser/-/comment-parser-0.7.2.tgz#baf6d99b42038678b81096f15b630d18142f4b8a" @@ -1494,6 +1501,18 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= +configstore@^5.0.0, configstore@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/configstore/-/configstore-5.0.1.tgz#d365021b5df4b98cdd187d6a3b0e3f6a7cc5ed96" + integrity sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA== + dependencies: + dot-prop "^5.2.0" + graceful-fs "^4.1.2" + make-dir "^3.0.0" + unique-string "^2.0.0" + write-file-atomic "^3.0.0" + xdg-basedir "^4.0.0" + console-control-strings@^1.0.0, console-control-strings@~1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" @@ -1585,6 +1604,260 @@ cross-spawn@^7.0.0: shebang-command "^2.0.0" which "^2.0.1" +crypto-random-string@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5" + integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA== + +cspell-dict-bash@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/cspell-dict-bash/-/cspell-dict-bash-1.0.3.tgz#e3cf0e2dbe56f18c68a16c3eb8037d418e88c3cd" + integrity sha512-pEGuoZXhgqhpmmvdEoNY/XYDrypI37y0Z09VgKTHEblzTHo++vLyd4Z8r1SY3kJ2eQejduz4IL7ZGXqgtEp2vw== + dependencies: + configstore "^5.0.0" + +cspell-dict-companies@^1.0.20: + version "1.0.20" + resolved "https://registry.yarnpkg.com/cspell-dict-companies/-/cspell-dict-companies-1.0.20.tgz#75c76f6128cebdcfd8c89a0d62e37635f4a1cefe" + integrity sha512-LpDV5YMNV0vG8/LA4S8bbHNwaxI3gHTsCe0XZSGMRFlxO3bWWhi3Il3KB3pdDArDaopTGZKCMXDQsYFy5WHhQA== + dependencies: + configstore "^5.0.0" + +cspell-dict-cpp@^1.1.26: + version "1.1.26" + resolved "https://registry.yarnpkg.com/cspell-dict-cpp/-/cspell-dict-cpp-1.1.26.tgz#67e3f8d26ec2c49d305b086013935f0b0fade2e0" + integrity sha512-ywY7X6UzC5BC7fQhyRAwZHurl52GjwnY6D2wG57JJ/bcT5IsJOWpLAjHORtUH2AcCp6BSAKR6wxl6/bqSuKHJw== + dependencies: + configstore "^5.0.0" + +cspell-dict-django@^1.0.15: + version "1.0.15" + resolved "https://registry.yarnpkg.com/cspell-dict-django/-/cspell-dict-django-1.0.15.tgz#a0faec617cab280bd9ef942d1b2a6a5634e5c143" + integrity sha512-heppo6ZEGgv+cVPDLr24miG8xIn3E5SEGFBGHyNLyGqt8sHzeG3eNKhjKOJCC0hG/fq0ZECbE5q4691LvH24/Q== + dependencies: + configstore "^5.0.0" + +cspell-dict-dotnet@^1.0.14: + version "1.0.14" + resolved "https://registry.yarnpkg.com/cspell-dict-dotnet/-/cspell-dict-dotnet-1.0.14.tgz#780c3143d340e3211be27df7cfd2d9d1f82b24c5" + integrity sha512-gTuh94tNAVMS4XmVCK2AsFgKp2mXBk2b8+f2GLCw2K8HY6QUHlvOJg051JJrZABRW/lAoquKZuqssSo9B1mgng== + dependencies: + configstore "^5.0.0" + +cspell-dict-elixir@^1.0.13: + version "1.0.13" + resolved "https://registry.yarnpkg.com/cspell-dict-elixir/-/cspell-dict-elixir-1.0.13.tgz#f3d08b27d2ee2a25fcae5050820d5680028e95d5" + integrity sha512-KWDO4NeV3QuMlZxSWpN0sPiFN4GE5AzlDi75eSKRvq/f1+pxgxgXQ5zLNPnDbr2EOSJBV34paZwI+7PvCiTTgA== + dependencies: + configstore "^5.0.0" + +cspell-dict-en-gb@^1.1.16: + version "1.1.16" + resolved "https://registry.yarnpkg.com/cspell-dict-en-gb/-/cspell-dict-en-gb-1.1.16.tgz#75155e43c21e972ac2f60117b69fd53b5701335f" + integrity sha512-PBzHF40fVj+6Adm3dV3/uhkE2Ptu8W+WJ28socBDDpEfedFMwnC0rpxvAgmKJlLc0OYsn07/yzRnt9srisNrLg== + dependencies: + configstore "^5.0.0" + +cspell-dict-en_us@^1.2.25: + version "1.2.25" + resolved "https://registry.yarnpkg.com/cspell-dict-en_us/-/cspell-dict-en_us-1.2.25.tgz#68803f4e12ba928b2d13e009e9a425458c8f33f9" + integrity sha512-owr04YQAO86wMR0nSup8d7Ogkm23vIOoQsPtIMFou1OA2XLUu13Xhla/Cs+qFzopakpcblvRuMSel0RomkAo7g== + dependencies: + configstore "^5.0.0" + +cspell-dict-fonts@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/cspell-dict-fonts/-/cspell-dict-fonts-1.0.5.tgz#df96979e07d68cd186fe20eae0113e939d880c4f" + integrity sha512-R9A/MVDzqEQbwXaZhmNJ7bSzzkH5YSJ5UDr3wDRk7FXzNNcuJ4J9WRbkDjCDnoVfg0kCx0FeEp0fme+PbLTeng== + dependencies: + configstore "^5.0.0" + +cspell-dict-fullstack@^1.0.22: + version "1.0.22" + resolved "https://registry.yarnpkg.com/cspell-dict-fullstack/-/cspell-dict-fullstack-1.0.22.tgz#54122342ff408082f904c6c20e3facb36df0762c" + integrity sha512-k8Op1ltkgKnMTTo/kgkywE0htwi+3EtYrPPWk+mD9o3IFgC6yLKA89Tkrd0kEEPR3qJvC4gQJmGJns6Y25v0Zg== + dependencies: + configstore "^5.0.0" + +cspell-dict-golang@^1.1.14: + version "1.1.14" + resolved "https://registry.yarnpkg.com/cspell-dict-golang/-/cspell-dict-golang-1.1.14.tgz#5567d823a3e58b8f4c783bea185e95580008d47e" + integrity sha512-V9TQQjoTgdLTpLNczEjoF+BO+CkdmuZlD6J71SCT8sczSP0FLz4QkL1MpqiL0lhdnbtASsjs+oCF53Y+dWdh9g== + dependencies: + configstore "^5.0.0" + +cspell-dict-haskell@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/cspell-dict-haskell/-/cspell-dict-haskell-1.0.4.tgz#98a3a00fb72d39f3b94aa019fac7ed86ab73dbd8" + integrity sha512-Wy5EE446icPbsi8bLqSCOtxS5Z6QDLGNBvz6Nh+yvuLf7Nb8mU6NQmfSYH/yMfJoVGa5bpcmv8pQtJV4I2E5Tg== + dependencies: + configstore "^5.0.0" + +cspell-dict-html-symbol-entities@^1.0.13: + version "1.0.13" + resolved "https://registry.yarnpkg.com/cspell-dict-html-symbol-entities/-/cspell-dict-html-symbol-entities-1.0.13.tgz#41b770fa08f82b20f9e3c7f234a320bbb1dee851" + integrity sha512-u8BARt4r5rdUee7Yw6ejsD69WLib9l+pyBr4UUIZovhCUccddm2LkS9GDJUqWtCf/frZpoTnmpuW/NPWVVG6pQ== + dependencies: + configstore "^5.0.0" + +cspell-dict-java@^1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/cspell-dict-java/-/cspell-dict-java-1.0.12.tgz#d0220153984a0ccf6bbd69617f324ab11ce4a3fe" + integrity sha512-9pg5IrCEZGlWLgv8qGjxzzca19egfBYrbnuiWhJNLbBGBOTWrwYjFqbLQtMJReXUtWikWLY0KCzRZlCGusr7bw== + dependencies: + configstore "^5.0.0" + +cspell-dict-latex@^1.0.13: + version "1.0.13" + resolved "https://registry.yarnpkg.com/cspell-dict-latex/-/cspell-dict-latex-1.0.13.tgz#cdbbc2ebda7b82d44a3574d53b6f5b9a6d0644bb" + integrity sha512-UZqGJQ82mkzseqdF7kWXIrA07VD91W7rWx16DCThDBMohOsFdvCymUUgr0pM90FuqmldSiD+Gi1FayDSyPdNtQ== + dependencies: + configstore "^5.0.0" + +cspell-dict-lorem-ipsum@^1.0.10: + version "1.0.10" + resolved "https://registry.yarnpkg.com/cspell-dict-lorem-ipsum/-/cspell-dict-lorem-ipsum-1.0.10.tgz#3828f43b4df35b258d5d31e4e539c2f6d3f3ce14" + integrity sha512-UlboQ3xH+D3l+hemLO4J5yz8EM60SH91f1dJIy2s94AeePZXtwYh1hTFM5dEsXI2CAQkfTu3ZdPWflLsInPfrA== + dependencies: + configstore "^5.0.0" + +cspell-dict-php@^1.0.13: + version "1.0.13" + resolved "https://registry.yarnpkg.com/cspell-dict-php/-/cspell-dict-php-1.0.13.tgz#83cdab21e52d036303b321bf9bca27a9820661a6" + integrity sha512-RP5XST+hWEqWxlLISS3sXxsQa2YXOWx8X5LcxQHvEGdb1hMNypXxw9V53th7S+hfUTPKJrbUIzckYZp4j8TS4A== + dependencies: + configstore "^5.0.0" + +cspell-dict-powershell@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/cspell-dict-powershell/-/cspell-dict-powershell-1.0.6.tgz#2cd32028fb2c7894f4eb7ff202eeec02a8138825" + integrity sha512-rwxt/fG3Nr7tQaV7e38ilz8qWfXrf5Ie+MQC6Mw/ddjT4wLOkGvruUqtJA/USoDE9PFG12KoarFsWlVXv/nwPA== + dependencies: + configstore "^5.0.0" + +cspell-dict-python@^1.0.20: + version "1.0.20" + resolved "https://registry.yarnpkg.com/cspell-dict-python/-/cspell-dict-python-1.0.20.tgz#39509b4cbaf5cbe9b5ceab9440eeeb42c04f6323" + integrity sha512-BiV8LnH9YNxvkUbVwTyDpZhOuRjPr8cE+nxpuPDbCHmVJmlLsDlg8MXTcJH8I+OFjoz6YdBX6yqK1bi55Aioow== + dependencies: + configstore "^5.0.0" + +cspell-dict-ruby@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/cspell-dict-ruby/-/cspell-dict-ruby-1.0.3.tgz#bbda30306af9c9274b8848005d9f73f1d3513651" + integrity sha512-uFxUyGj9SRASfnd75lcpkoNvMYHNWmqkFmS9ZruL61M1RmFx9eekuEY74nK11qsb/E4o6yPtGAQH4SrotF9SwQ== + dependencies: + configstore "^5.0.0" + +cspell-dict-rust@^1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/cspell-dict-rust/-/cspell-dict-rust-1.0.12.tgz#323eedd0137d8019df08f02d9c1956d9778d0baa" + integrity sha512-bMt70/aQL2OcadZRtWfPIF/mHWX9JNOGq92UUU2ka+9C3OPBP/TuyYiHhUWt67y/CoIyEQ7/5uAtjX8paLf14w== + dependencies: + configstore "^5.0.0" + +cspell-dict-scala@^1.0.11: + version "1.0.11" + resolved "https://registry.yarnpkg.com/cspell-dict-scala/-/cspell-dict-scala-1.0.11.tgz#42533b2c850fe6eb64946708fd19e66824b842a7" + integrity sha512-bmAQjapvcceJaiwGTkBd9n2L9GaqpmFDKe5S19WQDsWqjFiDwQ+r47td3TU7yWjOLPqp72h9X/XGzDJFvQEPcg== + dependencies: + configstore "^5.0.0" + +cspell-dict-software-terms@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/cspell-dict-software-terms/-/cspell-dict-software-terms-1.0.6.tgz#ecbf6d1f0c8b3f987e69a60a77fca07ad5d7225c" + integrity sha512-W9ugGS5dNMWDV27gY5qC+RlckP340q5vzrf6xTzlJ9ikh4c3PymAHne23FH7WwjMbFW7eSbQFddIcRgjXcxbdA== + dependencies: + configstore "^5.0.0" + +cspell-dict-typescript@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/cspell-dict-typescript/-/cspell-dict-typescript-1.0.3.tgz#89d540fdca9c5e22416b42084f737ffe169eaf42" + integrity sha512-j6sVvLUuPCTw5Iqc1D1zB3mWJQTMNshEOmChJfz8vFeBMbu7oj61rLbnhnn2x8kXguKmWN5jhhKnsBIp++jRZA== + dependencies: + configstore "^5.0.0" + +cspell-glob@^0.1.17: + version "0.1.17" + resolved "https://registry.yarnpkg.com/cspell-glob/-/cspell-glob-0.1.17.tgz#e8dad6eedc23bc3e98175f2077df25e7e3212a8a" + integrity sha512-gAiKakWJbHay6cobcJnX1+XhNCFYqR7CJM5GPiEpRZ5RFXYR46fYbkVwTdg3sqbFLErJtghQj/0s5Xa0q9NJpQ== + dependencies: + micromatch "^4.0.2" + +cspell-io@^4.0.20: + version "4.0.20" + resolved "https://registry.yarnpkg.com/cspell-io/-/cspell-io-4.0.20.tgz#4aecc054852c712e96e075eb270dbbbc4482fca1" + integrity sha512-fomz1P308XgyyxaOEKdNbh82Ac4AKaz26p4JszV7YkJrGDsXMoByTQjVqdDloNN8FchogSEpLPeQoIg648exBA== + dependencies: + iconv-lite "^0.4.24" + iterable-to-stream "^1.0.1" + +cspell-lib@^4.1.21: + version "4.1.21" + resolved "https://registry.yarnpkg.com/cspell-lib/-/cspell-lib-4.1.21.tgz#7321652e5bb8d5a1b0a1372d42d125dc275f4161" + integrity sha512-mcbYQRO9GeLjUU3fTrJEwD17pF/t4YlgYoEqVQkLgR0kCQ5exMFlj8II4UQHgNevx8GMJGpqQ9+fM6ZhCYKIzQ== + dependencies: + comment-json "^1.1.3" + configstore "^5.0.1" + cspell-dict-bash "^1.0.3" + cspell-dict-companies "^1.0.20" + cspell-dict-cpp "^1.1.26" + cspell-dict-django "^1.0.15" + cspell-dict-dotnet "^1.0.14" + cspell-dict-elixir "^1.0.13" + cspell-dict-en-gb "^1.1.16" + cspell-dict-en_us "^1.2.25" + cspell-dict-fonts "^1.0.5" + cspell-dict-fullstack "^1.0.22" + cspell-dict-golang "^1.1.14" + cspell-dict-haskell "^1.0.4" + cspell-dict-html-symbol-entities "^1.0.13" + cspell-dict-java "^1.0.12" + cspell-dict-latex "^1.0.13" + cspell-dict-lorem-ipsum "^1.0.10" + cspell-dict-php "^1.0.13" + cspell-dict-powershell "^1.0.6" + cspell-dict-python "^1.0.20" + cspell-dict-ruby "^1.0.3" + cspell-dict-rust "^1.0.12" + cspell-dict-scala "^1.0.11" + cspell-dict-software-terms "^1.0.6" + cspell-dict-typescript "^1.0.3" + cspell-io "^4.0.20" + cspell-trie-lib "^4.1.8" + cspell-util-bundle "^4.0.9" + fs-extra "^8.1.0" + gensequence "^3.0.3" + vscode-uri "^2.1.1" + +cspell-trie-lib@^4.1.8: + version "4.1.8" + resolved "https://registry.yarnpkg.com/cspell-trie-lib/-/cspell-trie-lib-4.1.8.tgz#cc40c863c8c03920c61e5330c3acfcaf9871e40f" + integrity sha512-G0Jpybwxyl7rG3c4tzrROEVmiKAsyIjaDdnGxkzOFkl4tjcZeCh7GIVrqLyyk3VWslrWMVvmQi1/eLDccagepw== + dependencies: + gensequence "^3.0.3" + +cspell-util-bundle@^4.0.9: + version "4.0.9" + resolved "https://registry.yarnpkg.com/cspell-util-bundle/-/cspell-util-bundle-4.0.9.tgz#9e6a7f3dcd4aef1b9c6743d33d09379cf94ecd08" + integrity sha512-+xhIGJAkPxD7aKl97S0E34B5dF+HSTSoEL6M2f6Y46tusFGc9VdhA/iIZQooZZx2RQy4WaHw/ABfsRfxtnFVLw== + +cspell@^4.0.55: + version "4.0.55" + resolved "https://registry.yarnpkg.com/cspell/-/cspell-4.0.55.tgz#4295b88c9cb7b1bf7290027212913203be5f3f9d" + integrity sha512-LmBk2VNrBSXFPOpmhJalqYGdDF1x68H4wI3c7RDMRLfG/zOaFoZUEuJUYOC07tFXDosczXMu38Qt9cnEVZmrAA== + dependencies: + chalk "^2.4.2" + commander "^2.20.3" + comment-json "^1.1.3" + cspell-glob "^0.1.17" + cspell-lib "^4.1.21" + fs-extra "^8.1.0" + gensequence "^3.0.3" + get-stdin "^7.0.0" + glob "^7.1.6" + minimatch "^3.0.4" + css-loader@^3.2.0: version "3.4.2" resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-3.4.2.tgz#d3fdb3358b43f233b78501c5ed7b1c6da6133202" @@ -1793,6 +2066,13 @@ domexception@^1.0.1: dependencies: webidl-conversions "^4.0.2" +dot-prop@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.2.0.tgz#c34ecc29556dc45f1f4c22697b6f4904e0cc4fcb" + integrity sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A== + dependencies: + is-obj "^2.0.0" + ecc-jsbn@~0.1.1: version "0.1.2" resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" @@ -2087,7 +2367,7 @@ espree@^6.1.2: acorn-jsx "^5.1.0" eslint-visitor-keys "^1.1.0" -esprima@2.7.x, esprima@^2.7.1: +esprima@2.7.x, esprima@^2.7.0, esprima@^2.7.1: version "2.7.3" resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" integrity sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE= @@ -2453,6 +2733,15 @@ fragment-cache@^0.2.1: dependencies: map-cache "^0.2.2" +fs-extra@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + fs-minipass@^1.2.5: version "1.2.7" resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7" @@ -2524,6 +2813,11 @@ gauge@~2.7.3: strip-ansi "^3.0.1" wide-align "^1.1.0" +gensequence@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/gensequence/-/gensequence-3.0.3.tgz#5e76326bb893147e80d6f2ae495c7e9a2795f7cc" + integrity sha512-KM4L8AfWAfjIvdnBhl7erj35iBNf75pP0+8Ww3BKssVEBv95Dqu40cG62kAyVXtuLplb96wh/GUr+GhM6YG9gQ== + gensync@^1.0.0-beta.1: version "1.0.0-beta.1" resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.1.tgz#58f4361ff987e5ff6e1e7a210827aa371eaac269" @@ -2630,7 +2924,7 @@ globals@^12.1.0: dependencies: type-fest "^0.8.1" -graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.2.0, graceful-fs@^4.2.2, graceful-fs@^4.2.3: +graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2, graceful-fs@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423" integrity sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ== @@ -3071,6 +3365,11 @@ is-obj@^1.0.1: resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8= +is-obj@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" + integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== + is-observable@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-observable/-/is-observable-1.1.0.tgz#b3e986c8f44de950867cab5403f5a3465005975e" @@ -3235,6 +3534,11 @@ istanbul@^0.4.5: which "^1.1.1" wordwrap "^1.0.0" +iterable-to-stream@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/iterable-to-stream/-/iterable-to-stream-1.0.1.tgz#37e86baacf6b1a0e9233dad4eb526d0423d08bf3" + integrity sha512-O62gD5ADMUGtJoOoM9U6LQ7i4byPXUNoHJ6mqsmkQJcom331ZJGDApWgDESWyBMEHEJRjtHozgIiTzYo9RU4UA== + jest-changed-files@^25.1.0: version "25.1.0" resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-25.1.0.tgz#73dae9a7d9949fdfa5c278438ce8f2ff3ec78131" @@ -3691,6 +3995,13 @@ json-parse-better-errors@^1.0.1, json-parse-better-errors@^1.0.2: resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== +json-parser@^1.0.0: + version "1.1.5" + resolved "https://registry.yarnpkg.com/json-parser/-/json-parser-1.1.5.tgz#e62ec5261d1a6a5fc20e812a320740c6d9005677" + integrity sha1-5i7FJh0aal/CDoEqMgdAxtkAVnc= + dependencies: + esprima "^2.7.0" + json-schema-ref-parser@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/json-schema-ref-parser/-/json-schema-ref-parser-6.1.0.tgz#30af34aeab5bee0431da805dac0eb21b574bf63d" @@ -3751,6 +4062,13 @@ json5@^2.1.0, json5@^2.1.1: dependencies: minimist "^1.2.0" +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss= + optionalDependencies: + graceful-fs "^4.1.6" + jsprim@^1.2.2: version "1.4.1" resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" @@ -6456,6 +6774,18 @@ unique-slug@^2.0.0: dependencies: imurmurhash "^0.1.4" +unique-string@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-2.0.0.tgz#39c6451f81afb2749de2b233e3f7c5e8843bd89d" + integrity sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg== + dependencies: + crypto-random-string "^2.0.0" + +universalify@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + unset-value@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" @@ -6554,6 +6884,11 @@ void-elements@^2.0.1: resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-2.0.1.tgz#c066afb582bb1cb4128d60ea92392e94d5e9dbec" integrity sha1-wGavtYK7HLQSjWDqkjkulNXp2+w= +vscode-uri@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-2.1.1.tgz#5aa1803391b6ebdd17d047f51365cf62c38f6e90" + integrity sha512-eY9jmGoEnVf8VE8xr5znSah7Qt1P/xsCdErz+g8HYZtJ7bZqKH5E3d+6oVNm1AC/c6IHUDokbmVXKOi4qPAC9A== + w3c-hr-time@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045" @@ -6767,6 +7102,11 @@ ws@^7.0.0: resolved "https://registry.yarnpkg.com/ws/-/ws-7.2.1.tgz#03ed52423cd744084b2cf42ed197c8b65a936b8e" integrity sha512-sucePNSafamSKoOqoNfBd8V0StlkzJKL2ZAhGQinCfNQ+oacw+Pk7lcdAElecBF2VkLNZRiIb5Oi1Q5lVUVt2A== +xdg-basedir@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13" + integrity sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q== + xml-name-validator@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a"