diff --git a/cspell.json b/cspell.json new file mode 100644 index 000000000..0b25fab37 --- /dev/null +++ b/cspell.json @@ -0,0 +1,215 @@ +{ + "version": "0.1", + "language": "en", + "words": [ + "webpack", + "webpack's", + "entrypoint", + "entrypoints", + "splitted", + "dedupe", + "deduplication", + "deduplicating", + "unoptimized", + "prefetch", + "prefetching", + "prefetched", + "preload", + "preloading", + "preloaded", + "gzipping", + "submodule", + "submodules", + "typeof", + "devtool", + "wasm", + "webassembly", + "IIFE", + "IIFE's", + "bigint", + "unexception", + "etag", + "builtins", + "uncacheable", + "cacheable", + "mergeable", + "devtools", + "transpiled", + "mixins", + "subdir", + "errored", + "eval", + "multiplicator", + "finalizer", + "promisify", + "absolutify", + "camelcase", + "filebase", + "moduleid", + "modulehash", + "chunkfilename", + "chunkname", + "chunkhash", + "fullhash", + "contenthash", + "hashable", + "hotupdatechunk", + "middleware", + "middlewares", + "serializer", + "serializers", + "deserialization", + "referenceable", + "polyfilled", + "transpiling", + "transpile", + "transpiles", + "snapshotting", + "sourcemap", + "nosources", + "filepath", + "subpath", + "pathinfo", + "undelayed", + "microtask", + "microtasks", + "deopt", + "deopts", + "sandboxed", + "mangleable", + "passthrough", + "prioritise", + "booleanized", + "serializables", + "unreviewed", + "unshifted", + "nonrecursive", + "symlinked", + "subfolder", + "prettierrc", + "templated", + "templating", + "kibibytes", + "mebibytes", + "gibibytes", + "typechecker", + "recurse", + "preparsed", + "autocrlf", + "lcov", + "lcovonly", + "gcov", + "lintunit", + "instanceof", + "loglevel", + "runtime", + "runtimes", + "mimetype", + "testvalue", + "unusedkey", + "unusedvalue", + "performant", + "watchings", + "jsons", + "exitance", + "ident", + "idents", + "globstar", + "inversed", + "concated", + "RBDT", + "opensource", + "bugfix", + "bugfixes", + "declarators", + "rrrlll", + "undefine", + "finializer", + "quasis", + "hashs", + "functype", + "funcindex", + "Descr", + "valtype", + "informations", + "reexecuted", + "global's", + "unsplittable", + "chainable", + "metacharacters", + "Xarray", + "Xfactory", + "Xmodule", + "Xexports", + "moji", + "bitfield", + "precompute", + "toplevel", + "modulos", + "untaint", + "ufeff", + "timestamping", + "loadername", + "laof", + + "syntetic", + "quotemeta", + "paramized", + "existance", + + "cofounder", + "hashchange", + "popstate", + "hotpink", + "navigations", + "compat", + "noimport", + "tmpl", + "csvg", + "repo", + "repos", + "triaging", + "valign", + "returnfalse", + "return'development", + + "webassemblyjs", + "fsevents", + "watchpack", + "tapable", + "junit", + "memfs", + "rimraf", + "estree", + "posthtml", + "MCEP", + "traceur", + "atlaskit", + "xxhashjs", + "systemjs", + + "sokra", + "Koppers", + "Junya", + "Eoksni", + "Ewald", + "Larkin", + "Kees", + "Kluskens", + "Phoscur", + "defunctzombie", + "shama", + "jhnns", + "substack", + "MONEI", + "medikoo", + "webmake", + "jrburke", + "gitter", + "codecov", + "opencollective", + "dependabot" + ], + "ignoreRegExpList": ["/Author.+/", "/data:.*/", "/\"mappings\":\".+\"/"], + "ignorePaths": ["**/dist/**"] +} diff --git a/lib/HotModuleReplacementPlugin.js b/lib/HotModuleReplacementPlugin.js index a39e1ab2e..24b017a65 100644 --- a/lib/HotModuleReplacementPlugin.js +++ b/lib/HotModuleReplacementPlugin.js @@ -256,15 +256,15 @@ class HotModuleReplacementPlugin { } if (!records.hash) initialPass = true; const preHash = records.preHash || "x"; - const prepreHash = records.prepreHash || "x"; + const prePreHash = records.prePreHash || "x"; if (preHash === compilation.hash) { recompilation = true; - compilation.modifyHash(prepreHash); + compilation.modifyHash(prePreHash); return; } - records.prepreHash = records.hash || "x"; + records.prePreHash = records.hash || "x"; records.preHash = compilation.hash; - compilation.modifyHash(records.prepreHash); + compilation.modifyHash(records.prePreHash); }); compilation.hooks.shouldGenerateChunkAssets.tap( "HotModuleReplacementPlugin", diff --git a/package.json b/package.json index ad342e7c0..1abb213c2 100644 --- a/package.json +++ b/package.json @@ -156,6 +156,9 @@ "lint-staged": { "*.js|{lib,setup,bin,hot,tooling,schemas}/**/*.js|test/*.js|{test,examples}/**/webpack.config.js}": [ "eslint --cache" + ], + "*.md|{.github,benchmark,bin,examples,hot,lib,schemas,setup,tooling}/**/*.{md,yml,yaml,js,json}": [ + "cspell" ] }, "jest": {