mirror of https://github.com/webpack/webpack.git
chore: update cSpell globs and fix typos
This commit is contained in:
parent
c854e30df7
commit
a19d7991c3
482
cspell.json
482
cspell.json
|
|
@ -1,241 +1,295 @@
|
||||||
{
|
{
|
||||||
"version": "0.1",
|
"version": "0.2",
|
||||||
"language": "en",
|
"language": "en",
|
||||||
"words": [
|
"words": [
|
||||||
"webpack",
|
|
||||||
"webpack's",
|
|
||||||
"endregion",
|
|
||||||
"entrypoint",
|
|
||||||
"entrypoints",
|
|
||||||
"splitted",
|
|
||||||
"dedupe",
|
|
||||||
"deduplication",
|
|
||||||
"deduplicating",
|
|
||||||
"unoptimized",
|
|
||||||
"prefetch",
|
|
||||||
"prefetching",
|
|
||||||
"prefetched",
|
|
||||||
"preload",
|
|
||||||
"preloading",
|
|
||||||
"preloaded",
|
|
||||||
"gzipping",
|
|
||||||
"brotli",
|
|
||||||
"submodule",
|
|
||||||
"submodules",
|
|
||||||
"typeof",
|
|
||||||
"devtool",
|
|
||||||
"wasi",
|
|
||||||
"wasm",
|
|
||||||
"webassembly",
|
|
||||||
"IIFE",
|
|
||||||
"IIFE's",
|
|
||||||
"bigint",
|
|
||||||
"unexception",
|
|
||||||
"etag",
|
|
||||||
"builtins",
|
|
||||||
"uncacheable",
|
|
||||||
"cacheable",
|
|
||||||
"mergeable",
|
|
||||||
"devtools",
|
|
||||||
"transpiled",
|
|
||||||
"mixins",
|
|
||||||
"subdir",
|
|
||||||
"errored",
|
|
||||||
"eval",
|
|
||||||
"multiplicator",
|
|
||||||
"finalizer",
|
|
||||||
"promisify",
|
|
||||||
"absolutify",
|
"absolutify",
|
||||||
"camelcase",
|
"acircular",
|
||||||
"filebase",
|
"amdmodule",
|
||||||
"moduleid",
|
"assemblyscript",
|
||||||
"modulehash",
|
"asyncloader",
|
||||||
"chunkfilename",
|
"atlaskit",
|
||||||
"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",
|
"autocrlf",
|
||||||
"lcov",
|
"babeljs",
|
||||||
"lcovonly",
|
"backport",
|
||||||
"gcov",
|
"backported",
|
||||||
"lintunit",
|
"bigint",
|
||||||
"instanceof",
|
"Biró",
|
||||||
"loglevel",
|
"bitfield",
|
||||||
"runtime",
|
"bomfile",
|
||||||
"runtimes",
|
"booleanized",
|
||||||
"mimetype",
|
"boolish",
|
||||||
"testvalue",
|
"brotli",
|
||||||
"unusedkey",
|
"browserified",
|
||||||
"unusedvalue",
|
"browserslist",
|
||||||
"performant",
|
"browserslistrc",
|
||||||
"watchings",
|
"Brumme",
|
||||||
"jsons",
|
|
||||||
"exitance",
|
|
||||||
"ident",
|
|
||||||
"idents",
|
|
||||||
"globstar",
|
|
||||||
"inversed",
|
|
||||||
"concated",
|
|
||||||
"RBDT",
|
|
||||||
"opensource",
|
|
||||||
"bugfix",
|
"bugfix",
|
||||||
"bugfixes",
|
"bugfixes",
|
||||||
"declarators",
|
"builtins",
|
||||||
"rrrlll",
|
"cacheable",
|
||||||
"undefine",
|
"callme",
|
||||||
"finializer",
|
"camelcase",
|
||||||
"quasis",
|
|
||||||
"hashs",
|
|
||||||
"functype",
|
|
||||||
"funcindex",
|
|
||||||
"Descr",
|
|
||||||
"valtype",
|
|
||||||
"informations",
|
|
||||||
"reexecuted",
|
|
||||||
"global's",
|
|
||||||
"unsplittable",
|
|
||||||
"chainable",
|
"chainable",
|
||||||
"metacharacters",
|
"chunkfilename",
|
||||||
"Xarray",
|
"chunkhash",
|
||||||
"Xfactory",
|
"chunkname",
|
||||||
"Xmodule",
|
"cmodule",
|
||||||
"Xexports",
|
"codecov",
|
||||||
"moji",
|
|
||||||
"bitfield",
|
|
||||||
"precompute",
|
|
||||||
"toplevel",
|
|
||||||
"modulos",
|
|
||||||
"untaint",
|
|
||||||
"ufeff",
|
|
||||||
"timestamping",
|
|
||||||
"loadername",
|
|
||||||
"laof",
|
|
||||||
"cofounder",
|
"cofounder",
|
||||||
"hashchange",
|
"Collet's",
|
||||||
"popstate",
|
|
||||||
"hotpink",
|
|
||||||
"navigations",
|
|
||||||
"compat",
|
"compat",
|
||||||
"noimport",
|
"concated",
|
||||||
"tmpl",
|
"contenthash",
|
||||||
|
"contextifies",
|
||||||
|
"crossorigin",
|
||||||
"csvg",
|
"csvg",
|
||||||
"repo",
|
"cujojs",
|
||||||
"repos",
|
"Dani",
|
||||||
"triaging",
|
|
||||||
"valign",
|
|
||||||
"returnfalse",
|
|
||||||
"return'development",
|
|
||||||
"datastructures",
|
|
||||||
"prewalking",
|
|
||||||
"overridables",
|
|
||||||
"overridable",
|
|
||||||
"darkblue",
|
"darkblue",
|
||||||
"darkgreen",
|
"darkgreen",
|
||||||
"darkred",
|
"darkred",
|
||||||
"eqeqeq",
|
"datastructures",
|
||||||
"boolish",
|
"declarators",
|
||||||
"analysing",
|
"dedupe",
|
||||||
"etags",
|
"deduplicating",
|
||||||
|
"deduplication",
|
||||||
|
"defunctzombie",
|
||||||
|
"deopt",
|
||||||
|
"deopts",
|
||||||
|
"dependabot",
|
||||||
|
"Descr",
|
||||||
|
"deserialization",
|
||||||
"destructure",
|
"destructure",
|
||||||
"onconnect",
|
"devtool",
|
||||||
"nwjs",
|
"devtools",
|
||||||
"redeclaration",
|
"donotcallme",
|
||||||
"kaios",
|
"endregion",
|
||||||
"parallelism",
|
"entrypoint",
|
||||||
"gitattributes",
|
"entrypoints",
|
||||||
"hashbang",
|
"Eoksni",
|
||||||
|
"eqeqeq",
|
||||||
"webassemblyjs",
|
"errored",
|
||||||
"assemblyscript",
|
"esmodule",
|
||||||
"fsevents",
|
|
||||||
"watchpack",
|
|
||||||
"tapable",
|
|
||||||
"junit",
|
|
||||||
"memfs",
|
|
||||||
"rimraf",
|
|
||||||
"estree",
|
"estree",
|
||||||
"posthtml",
|
"etag",
|
||||||
|
"etags",
|
||||||
|
"eval",
|
||||||
|
"Ewald",
|
||||||
|
"exitance",
|
||||||
|
"filebase",
|
||||||
|
"fileoverview",
|
||||||
|
"filepath",
|
||||||
|
"finalizer",
|
||||||
|
"finializer",
|
||||||
|
"fsevents",
|
||||||
|
"fullhash",
|
||||||
|
"funcindex",
|
||||||
|
"functype",
|
||||||
|
"gcov",
|
||||||
|
"gibibytes",
|
||||||
|
"gitattributes",
|
||||||
|
"gitter",
|
||||||
|
"global's",
|
||||||
|
"globstar",
|
||||||
|
"gzipping",
|
||||||
|
"hashable",
|
||||||
|
"hashbang",
|
||||||
|
"hashchange",
|
||||||
|
"hashs",
|
||||||
|
"hotpink",
|
||||||
|
"hotupdatechunk",
|
||||||
|
"ident",
|
||||||
|
"idents",
|
||||||
|
"IIFE's",
|
||||||
|
"IIFE",
|
||||||
|
"informations",
|
||||||
|
"instanceof",
|
||||||
|
"inversed",
|
||||||
|
"jhnns",
|
||||||
|
"jrburke",
|
||||||
|
"jsfile",
|
||||||
|
"jsons",
|
||||||
|
"junit",
|
||||||
|
"Junya",
|
||||||
|
"kaios",
|
||||||
|
"Kees",
|
||||||
|
"kibibytes",
|
||||||
|
"Kluskens",
|
||||||
|
"Koppers",
|
||||||
|
"laof",
|
||||||
|
"Larkin",
|
||||||
|
"lcov",
|
||||||
|
"lcovonly",
|
||||||
|
"lintunit",
|
||||||
|
"loadername",
|
||||||
|
"loglevel",
|
||||||
|
"longnameforexport",
|
||||||
|
"mangleable",
|
||||||
"MCEP",
|
"MCEP",
|
||||||
|
"mebibytes",
|
||||||
|
"medikoo",
|
||||||
|
"membertest",
|
||||||
|
"memfs",
|
||||||
|
"mergeable",
|
||||||
|
"metacharacters",
|
||||||
|
"microtask",
|
||||||
|
"microtasks",
|
||||||
|
"middleware",
|
||||||
|
"middlewares",
|
||||||
|
"mimetype",
|
||||||
|
"mixins",
|
||||||
|
"modulehash",
|
||||||
|
"moduleid",
|
||||||
|
"modulos",
|
||||||
|
"moji",
|
||||||
|
"MONEI",
|
||||||
|
"mult",
|
||||||
|
"multiplicator",
|
||||||
|
"mylibrary",
|
||||||
|
"mynamespace",
|
||||||
|
"navigations",
|
||||||
|
"nmodule",
|
||||||
|
"noimport",
|
||||||
|
"nonexistentfile",
|
||||||
|
"nonrecursive",
|
||||||
|
"nosource",
|
||||||
|
"nosources",
|
||||||
|
"nwjs",
|
||||||
|
"onconnect",
|
||||||
|
"opencollective",
|
||||||
|
"opensource",
|
||||||
|
"opuuus",
|
||||||
|
"overridable",
|
||||||
|
"overridables",
|
||||||
|
"parallelism",
|
||||||
|
"passthrough",
|
||||||
|
"pathinfo",
|
||||||
|
"performant",
|
||||||
|
"Phoscur",
|
||||||
|
"pmodule",
|
||||||
|
"pnpm",
|
||||||
|
"polyfilled",
|
||||||
|
"popstate",
|
||||||
|
"posthtml",
|
||||||
|
"precompute",
|
||||||
|
"prefetch",
|
||||||
|
"prefetched",
|
||||||
|
"prefetching",
|
||||||
|
"preload",
|
||||||
|
"preloaded",
|
||||||
|
"preloading",
|
||||||
|
"preparsed",
|
||||||
|
"prettierrc",
|
||||||
|
"prewalking",
|
||||||
|
"prioritise",
|
||||||
|
"promisify",
|
||||||
|
"quasis",
|
||||||
|
"queryloader",
|
||||||
|
"querystrings",
|
||||||
|
"RBDT",
|
||||||
|
"recurse",
|
||||||
|
"redeclaration",
|
||||||
|
"reexecuted",
|
||||||
|
"referenceable",
|
||||||
|
"referencer",
|
||||||
|
"repo",
|
||||||
|
"repos",
|
||||||
|
"return'development",
|
||||||
|
"returnfalse",
|
||||||
|
"revparse",
|
||||||
|
"rimraf",
|
||||||
|
"Rivest",
|
||||||
|
"rrrlll",
|
||||||
|
"runtime",
|
||||||
|
"runtimes",
|
||||||
|
"samsunginternet",
|
||||||
|
"sandboxed",
|
||||||
|
"serializables",
|
||||||
|
"serializer",
|
||||||
|
"serializers",
|
||||||
|
"shama",
|
||||||
|
"skypack",
|
||||||
|
"snapshotting",
|
||||||
|
"sokra",
|
||||||
|
"somepackage",
|
||||||
|
"somepath",
|
||||||
|
"sourcemap",
|
||||||
|
"sourcemapped",
|
||||||
|
"splitted",
|
||||||
|
"stylesheet",
|
||||||
|
"subdir",
|
||||||
|
"subfolder",
|
||||||
|
"submodule",
|
||||||
|
"submodules",
|
||||||
|
"subpath",
|
||||||
|
"substack",
|
||||||
|
"symlinked",
|
||||||
|
"syncloader",
|
||||||
|
"systemjs",
|
||||||
|
"tapable",
|
||||||
|
"templated",
|
||||||
|
"templating",
|
||||||
|
"testcase",
|
||||||
|
"testlink",
|
||||||
|
"testloader",
|
||||||
|
"testvalue",
|
||||||
|
"timestamping",
|
||||||
|
"tmpl",
|
||||||
|
"toplevel",
|
||||||
"traceur",
|
"traceur",
|
||||||
"atlaskit",
|
"transpile",
|
||||||
|
"transpiled",
|
||||||
|
"transpiles",
|
||||||
|
"transpiling",
|
||||||
|
"triaging",
|
||||||
|
"Tshs",
|
||||||
|
"typechecker",
|
||||||
|
"typeof",
|
||||||
|
"ufeff",
|
||||||
|
"uncacheable",
|
||||||
|
"undefine",
|
||||||
|
"undelayed",
|
||||||
|
"unexception",
|
||||||
|
"unoptimized",
|
||||||
|
"unreviewed",
|
||||||
|
"unshifted",
|
||||||
|
"unsplittable",
|
||||||
|
"untaint",
|
||||||
|
"unusedkey",
|
||||||
|
"unusedvalue",
|
||||||
|
"url's",
|
||||||
|
"valign",
|
||||||
|
"valtype",
|
||||||
|
"wasi",
|
||||||
|
"wasm",
|
||||||
|
"watchings",
|
||||||
|
"watchpack",
|
||||||
|
"webassembly",
|
||||||
|
"webassemblyjs",
|
||||||
|
"webmake",
|
||||||
|
"webpack's",
|
||||||
|
"webpack",
|
||||||
|
"Xarray",
|
||||||
|
"Xexports",
|
||||||
|
"Xfactory",
|
||||||
|
"Xmodule",
|
||||||
"xxhash",
|
"xxhash",
|
||||||
"xxhashjs",
|
"xxhashjs",
|
||||||
"systemjs",
|
"Yann"
|
||||||
"skypack",
|
|
||||||
|
|
||||||
"sokra",
|
|
||||||
"Koppers",
|
|
||||||
"Junya",
|
|
||||||
"Eoksni",
|
|
||||||
"Ewald",
|
|
||||||
"Larkin",
|
|
||||||
"Kees",
|
|
||||||
"Kluskens",
|
|
||||||
"Phoscur",
|
|
||||||
"defunctzombie",
|
|
||||||
"shama",
|
|
||||||
"jhnns",
|
|
||||||
"substack",
|
|
||||||
"MONEI",
|
|
||||||
"medikoo",
|
|
||||||
"webmake",
|
|
||||||
"jrburke",
|
|
||||||
"gitter",
|
|
||||||
"codecov",
|
|
||||||
"opencollective",
|
|
||||||
"dependabot",
|
|
||||||
"browserslist",
|
|
||||||
"samsunginternet",
|
|
||||||
"pnpm"
|
|
||||||
],
|
],
|
||||||
"ignoreRegExpList": ["/Author.+/", "/data:.*/", "/\"mappings\":\".+\"/"],
|
"ignoreRegExpList": ["/Author.+/", "/data:.*/", "/\"mappings\":\".+\"/"],
|
||||||
"ignorePaths": [
|
"ignorePaths": [
|
||||||
"**/dist/**",
|
"**/dist/**",
|
||||||
"examples/**/README.md",
|
"examples/**/README.md",
|
||||||
"**/webpack.lock.data/**"
|
"**/webpack.lock.data/**",
|
||||||
|
"package.json",
|
||||||
|
"yarn.lock",
|
||||||
|
"types.d.ts",
|
||||||
|
"**/**/*.snap",
|
||||||
|
"test/cases/json/weird-properties/globals.json",
|
||||||
|
"**/*.svg",
|
||||||
|
"**/*.wasm",
|
||||||
|
"test/**/module.js",
|
||||||
|
"test/**"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -204,7 +204,7 @@ declare module "@webassemblyjs/ast" {
|
||||||
raw?: string
|
raw?: string
|
||||||
): FloatLiteral;
|
): FloatLiteral;
|
||||||
export function global(globalType: string, nodes: Node[]): Global;
|
export function global(globalType: string, nodes: Node[]): Global;
|
||||||
export function identifier(indentifier: string): Identifier;
|
export function identifier(identifier: string): Identifier;
|
||||||
export function funcParam(valType: string, id: Identifier): FuncParam;
|
export function funcParam(valType: string, id: Identifier): FuncParam;
|
||||||
export function instruction(inst: string, args?: Node[]): Instruction;
|
export function instruction(inst: string, args?: Node[]): Instruction;
|
||||||
export function callInstruction(funcIndex: Index): CallInstruction;
|
export function callInstruction(funcIndex: Index): CallInstruction;
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@
|
||||||
<!-- A spinner -->
|
<!-- A spinner -->
|
||||||
<div class="spinner"></div>
|
<div class="spinner"></div>
|
||||||
|
|
||||||
<!-- This script only contains boostrapping logic -->
|
<!-- This script only contains bootstrapping logic -->
|
||||||
<!-- It will load all other scripts if necessary -->
|
<!-- It will load all other scripts if necessary -->
|
||||||
<script src="/dist/aaa/app.js" async></script>
|
<script src="/dist/aaa/app.js" async></script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1702,7 +1702,7 @@ ${defineGetters}`
|
||||||
info.globalScope = globalScope;
|
info.globalScope = globalScope;
|
||||||
info.moduleScope = moduleScope;
|
info.moduleScope = moduleScope;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
err.message += `\nwhile analysing module ${m.identifier()} for concatenation`;
|
err.message += `\nwhile analyzing module ${m.identifier()} for concatenation`;
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -159,7 +159,7 @@
|
||||||
"type-lint": "tsc",
|
"type-lint": "tsc",
|
||||||
"typings-test": "tsc -p tsconfig.types.test.json",
|
"typings-test": "tsc -p tsconfig.types.test.json",
|
||||||
"module-typings-test": "tsc -p tsconfig.module.test.json",
|
"module-typings-test": "tsc -p tsconfig.module.test.json",
|
||||||
"spellcheck": "cspell \"{.github,benchmark,bin,examples,hot,lib,schemas,setup,tooling}/**/*.{md,yml,yaml,js,json}\" \"*.md\"",
|
"spellcheck": "cspell \"**/*\"",
|
||||||
"special-lint": "node node_modules/tooling/lockfile-lint && node node_modules/tooling/schemas-lint && node node_modules/tooling/inherit-types && node node_modules/tooling/format-schemas && node tooling/generate-runtime-code.js && node tooling/generate-wasm-code.js && node node_modules/tooling/format-file-header && node node_modules/tooling/compile-to-definitions && node node_modules/tooling/precompile-schemas && node node_modules/tooling/generate-types --no-template-literals",
|
"special-lint": "node node_modules/tooling/lockfile-lint && node node_modules/tooling/schemas-lint && node node_modules/tooling/inherit-types && node node_modules/tooling/format-schemas && node tooling/generate-runtime-code.js && node tooling/generate-wasm-code.js && node node_modules/tooling/format-file-header && node node_modules/tooling/compile-to-definitions && node node_modules/tooling/precompile-schemas && node node_modules/tooling/generate-types --no-template-literals",
|
||||||
"special-lint-fix": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/format-schemas --write && node tooling/generate-runtime-code.js --write && node tooling/generate-wasm-code.js --write && node node_modules/tooling/format-file-header --write && node node_modules/tooling/compile-to-definitions --write && node node_modules/tooling/precompile-schemas --write && node node_modules/tooling/generate-types --no-template-literals --write",
|
"special-lint-fix": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/format-schemas --write && node tooling/generate-runtime-code.js --write && node tooling/generate-wasm-code.js --write && node node_modules/tooling/format-file-header --write && node node_modules/tooling/compile-to-definitions --write && node node_modules/tooling/precompile-schemas --write && node node_modules/tooling/generate-types --no-template-literals --write",
|
||||||
"fix": "yarn code-lint --fix && yarn special-lint-fix && yarn pretty-lint-fix",
|
"fix": "yarn code-lint --fix && yarn special-lint-fix && yarn pretty-lint-fix",
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ describe("BuildDependencies", () => {
|
||||||
"export default 0;"
|
"export default 0;"
|
||||||
);
|
);
|
||||||
await exec("0", {
|
await exec("0", {
|
||||||
invalidBuildDepdencies: true,
|
invalidBuildDependencies: true,
|
||||||
buildTwice: true,
|
buildTwice: true,
|
||||||
warnings: [/Can't resolve 'should-fail-resolving'/]
|
warnings: [/Can't resolve 'should-fail-resolving'/]
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -264,6 +264,7 @@ describe("Cli", () => {
|
||||||
`)
|
`)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// cspell:ignore filsystem
|
||||||
test(
|
test(
|
||||||
"errors",
|
"errors",
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ async function compile(options) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// capture sync throwm errors
|
// capture sync thrown errors
|
||||||
reject(err);
|
reject(err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -644,6 +644,7 @@ describe("loaders", () => {
|
||||||
`);
|
`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// cspell:ignore doesnt
|
||||||
it("should emit error for doesnt-exist-loader", async () => {
|
it("should emit error for doesnt-exist-loader", async () => {
|
||||||
await expect(compile({ entry: "./doesnt-exist-loader!./entry-point.js" }))
|
await expect(compile({ entry: "./doesnt-exist-loader!./entry-point.js" }))
|
||||||
.resolves.toMatchInlineSnapshot(`
|
.resolves.toMatchInlineSnapshot(`
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ describe("ProgressPlugin", function () {
|
||||||
nanTest(createMultiCompiler)
|
nanTest(createMultiCompiler)
|
||||||
);
|
);
|
||||||
it(
|
it(
|
||||||
"should not contain NaN as a percentage when it is applied to MultiCompiler (paralellism: 1)",
|
"should not contain NaN as a percentage when it is applied to MultiCompiler (parallelism: 1)",
|
||||||
nanTest(() => createMultiCompiler(undefined, { parallelism: 1 }))
|
nanTest(() => createMultiCompiler(undefined, { parallelism: 1 }))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -404,6 +404,7 @@ describe("Validation", () => {
|
||||||
`)
|
`)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// cspell:Ignore protuction
|
||||||
createTestCase(
|
createTestCase(
|
||||||
"invalid mode",
|
"invalid mode",
|
||||||
{
|
{
|
||||||
|
|
@ -603,7 +604,7 @@ describe("Validation", () => {
|
||||||
`)
|
`)
|
||||||
);
|
);
|
||||||
createTestCase(
|
createTestCase(
|
||||||
"opimization.moduleIds",
|
"optimization.moduleIds",
|
||||||
{
|
{
|
||||||
optimization: {
|
optimization: {
|
||||||
hashedModuleIds: true
|
hashedModuleIds: true
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ for (const name of Object.keys(wasmHashes)) {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const uncodeRangeTest = (name, start, end) => {
|
const unicodeRangeTest = (name, start, end) => {
|
||||||
const codePoints = [];
|
const codePoints = [];
|
||||||
for (let i = start; i <= end; i++) {
|
for (let i = start; i <= end; i++) {
|
||||||
codePoints.push(i);
|
codePoints.push(i);
|
||||||
|
|
@ -139,11 +139,11 @@ for (const name of Object.keys(wasmHashes)) {
|
||||||
unicodeTest(name, codePoints);
|
unicodeTest(name, codePoints);
|
||||||
};
|
};
|
||||||
|
|
||||||
uncodeRangeTest("Latin-1 Supplement", 0xa0, 0xff);
|
unicodeRangeTest("Latin-1 Supplement", 0xa0, 0xff);
|
||||||
uncodeRangeTest("Latin Extended", 0x100, 0x24f);
|
unicodeRangeTest("Latin Extended", 0x100, 0x24f);
|
||||||
uncodeRangeTest("Thaana", 0x780, 0x7bf);
|
unicodeRangeTest("Thaana", 0x780, 0x7bf);
|
||||||
uncodeRangeTest("Devanagari", 0x900, 0x97f);
|
unicodeRangeTest("Devanagari", 0x900, 0x97f);
|
||||||
uncodeRangeTest("Emoticons", 0x1f600, 0x1f64f);
|
unicodeRangeTest("Emoticons", 0x1f600, 0x1f64f);
|
||||||
|
|
||||||
unicodeTest("with zero char", "abc\0💩");
|
unicodeTest("with zero char", "abc\0💩");
|
||||||
unicodeTest("weird code point after long code point", [1497, 243248]);
|
unicodeTest("weird code point after long code point", [1497, 243248]);
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ it("should be able to combine chunks by name", function () {
|
||||||
case "d":
|
case "d":
|
||||||
return import(/* webpackChunkName: "name-3" */ "./dir7/d");
|
return import(/* webpackChunkName: "name-3" */ "./dir7/d");
|
||||||
default:
|
default:
|
||||||
throw new Error("Unexcepted test data");
|
throw new Error("Unexpected test data");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return testChunkLoading(load, false, true);
|
return testChunkLoading(load, false, true);
|
||||||
|
|
@ -86,7 +86,7 @@ it("should be able to use weak mode (without context)", function () {
|
||||||
case "c":
|
case "c":
|
||||||
return import(/* webpackMode: "weak" */ "./dir9/c");
|
return import(/* webpackMode: "weak" */ "./dir9/c");
|
||||||
default:
|
default:
|
||||||
throw new Error("Unexcepted test data");
|
throw new Error("Unexpected test data");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
require("./dir9/a"); // chunks served manually by the user
|
require("./dir9/a"); // chunks served manually by the user
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,7 @@ it("should be able to use named chunks in import()", function(done) {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should be able to use named chunk in context import()", function(done) {
|
it("should be able to use named chunk in context import()", function(done) {
|
||||||
|
// cspell:ignore mpty
|
||||||
var mpty = "mpty";
|
var mpty = "mpty";
|
||||||
var sync = false;
|
var sync = false;
|
||||||
import("./e" + mpty + "2" /* webpackChunkName: "context-named-chunk" */).then(function(result) {
|
import("./e" + mpty + "2" /* webpackChunkName: "context-named-chunk" */).then(function(result) {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
it("should replace Object.defineProperty correctly with brakets", () => {
|
it("should replace Object.defineProperty correctly with brackets", () => {
|
||||||
expect(require("./module").test).toBe(true);
|
expect(require("./module").test).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
module.exports = [
|
module.exports = [
|
||||||
[
|
[
|
||||||
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analysable-module\.js'/
|
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analyzable-module\.js'/
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analysable-module\.js'/
|
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analyzable-module\.js'/
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import * as m1 from "./analysable-module.js";
|
import * as m1 from "./analyzable-module.js";
|
||||||
import * as m2 from "./weird-module.js";
|
import * as m2 from "./weird-module.js";
|
||||||
import * as m3 from "./esModule.js";
|
import * as m3 from "./esModule.js";
|
||||||
import d1 from "./analysable-module.js";
|
import d1 from "./analyzable-module.js";
|
||||||
import d2 from "./weird-module.js";
|
import d2 from "./weird-module.js";
|
||||||
import d3 from "./esModule.js";
|
import d3 from "./esModule.js";
|
||||||
|
|
||||||
|
|
@ -22,7 +22,7 @@ it("should include non-enumerable properties (non-mjs)", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should include non-enumerable properties (non-mjs, promise)", () =>
|
it("should include non-enumerable properties (non-mjs, promise)", () =>
|
||||||
import("./analysable-module").then(m1 => {
|
import("./analyzable-module").then(m1 => {
|
||||||
const ns = m1;
|
const ns = m1;
|
||||||
|
|
||||||
expect(m1.prop).toBe(true);
|
expect(m1.prop).toBe(true);
|
||||||
|
|
@ -108,7 +108,7 @@ it("should include non-enumerable properties with __esModule (non-mjs)", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should include non-enumerable properties with __esModule (non-mjs, promise)", () =>
|
it("should include non-enumerable properties with __esModule (non-mjs, promise)", () =>
|
||||||
import("./analysable-module").then(m3 => {
|
import("./analyzable-module").then(m3 => {
|
||||||
const ns = m3;
|
const ns = m3;
|
||||||
|
|
||||||
expect(m3.prop).toBe(true);
|
expect(m3.prop).toBe(true);
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
import * as m1 from "./analysable-module.js";
|
import * as m1 from "./analyzable-module.js";
|
||||||
import * as m2 from "./weird-module.js";
|
import * as m2 from "./weird-module.js";
|
||||||
import * as m3 from "./esModule.js";
|
import * as m3 from "./esModule.js";
|
||||||
import d1 from "./analysable-module.js";
|
import d1 from "./analyzable-module.js";
|
||||||
import d2 from "./weird-module.js";
|
import d2 from "./weird-module.js";
|
||||||
import d3 from "./esModule.js";
|
import d3 from "./esModule.js";
|
||||||
|
|
||||||
it("should include non-enumable properties (mjs)", () => {
|
it("should include non-enumerable properties (mjs)", () => {
|
||||||
const ns = m1;
|
const ns = m1;
|
||||||
|
|
||||||
expect(m1.prop).toBe(true);
|
expect(m1.prop).toBe(true);
|
||||||
|
|
@ -21,8 +21,8 @@ it("should include non-enumable properties (mjs)", () => {
|
||||||
expect(ns.__esModule).toBe(true);
|
expect(ns.__esModule).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should include non-enumable properties (mjs, promise)", () =>
|
it("should include non-enumerable properties (mjs, promise)", () =>
|
||||||
import("./analysable-module.js").then(m1 => {
|
import("./analyzable-module.js").then(m1 => {
|
||||||
const ns = m1;
|
const ns = m1;
|
||||||
|
|
||||||
expect(m1.prop).toBe(true);
|
expect(m1.prop).toBe(true);
|
||||||
|
|
@ -91,7 +91,7 @@ it("should not include prototype properties and symbols (mjs, promise)", () =>
|
||||||
expect(ns.__esModule).toBe(true);
|
expect(ns.__esModule).toBe(true);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it("should include non-enumable properties with __esModule (non-mjs)", () => {
|
it("should include non-enumerable properties with __esModule (non-mjs)", () => {
|
||||||
const ns = m3;
|
const ns = m3;
|
||||||
|
|
||||||
expect(m3.prop).toBe(true);
|
expect(m3.prop).toBe(true);
|
||||||
|
|
@ -107,8 +107,8 @@ it("should include non-enumable properties with __esModule (non-mjs)", () => {
|
||||||
expect(ns.__esModule).toBe(true);
|
expect(ns.__esModule).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should include non-enumable properties with __esModule (non-mjs, promise)", () =>
|
it("should include non-enumerable properties with __esModule (non-mjs, promise)", () =>
|
||||||
import("./analysable-module.js").then(m3 => {
|
import("./analyzable-module.js").then(m3 => {
|
||||||
const ns = m3;
|
const ns = m3;
|
||||||
|
|
||||||
expect(m3.prop).toBe(true);
|
expect(m3.prop).toBe(true);
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
module.exports = [
|
module.exports = [
|
||||||
[
|
[
|
||||||
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analysable-module\.js'/
|
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analyzable-module\.js'/
|
||||||
],
|
],
|
||||||
[/export 'default' \(imported as 'm3'\) was not found in '\.\/esModule\.js'/],
|
[/export 'default' \(imported as 'm3'\) was not found in '\.\/esModule\.js'/],
|
||||||
[/export 'default' \(imported as 'd3'\) was not found in '\.\/esModule\.js'/],
|
[/export 'default' \(imported as 'd3'\) was not found in '\.\/esModule\.js'/],
|
||||||
[
|
[
|
||||||
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analysable-module\.js'/
|
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analyzable-module\.js'/
|
||||||
],
|
],
|
||||||
[/export 'default' \(imported as 'm3'\) was not found in '\.\/esModule\.js'/],
|
[/export 'default' \(imported as 'm3'\) was not found in '\.\/esModule\.js'/],
|
||||||
[/export 'default' \(imported as 'd3'\) was not found in '\.\/esModule\.js'/]
|
[/export 'default' \(imported as 'd3'\) was not found in '\.\/esModule\.js'/]
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,6 @@ expect(function() {
|
||||||
export default 1234;
|
export default 1234;
|
||||||
|
|
||||||
if(eval("typeof exports !== \"undefined\"")) {
|
if(eval("typeof exports !== \"undefined\"")) {
|
||||||
// exports is node.js exports and not webpacks
|
// exports is node.js exports and not webpack's
|
||||||
expect(Object.keys(exports)).toEqual([]);
|
expect(Object.keys(exports)).toEqual([]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ import {
|
||||||
named6 as snamed6
|
named6 as snamed6
|
||||||
} from "./named-with-namespace-no-side";
|
} from "./named-with-namespace-no-side";
|
||||||
|
|
||||||
it("should point out conflicts from named to namespace (without sideeffects)", () => {
|
it("should point out conflicts from named to namespace (without side effects)", () => {
|
||||||
expect(snamed1).toBe(1);
|
expect(snamed1).toBe(1);
|
||||||
expect(snamed2).toBe(2);
|
expect(snamed2).toBe(2);
|
||||||
expect(snamed3).toBe(2);
|
expect(snamed3).toBe(2);
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ it("should allow to import a variable named define (call)", () => {
|
||||||
expect(define()).toBe("ok");
|
expect(define()).toBe("ok");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should allow to import a variable named define (expresion)", () => {
|
it("should allow to import a variable named define (expression)", () => {
|
||||||
const d = i(define);
|
const d = i(define);
|
||||||
expect(d()).toBe("ok");
|
expect(d()).toBe("ok");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import array from "./tracker";
|
import array from "./tracker";
|
||||||
import { b } from "./module";
|
import { b } from "./module";
|
||||||
|
|
||||||
it("should evaulate modules in the correct order", () => {
|
it("should evaluate modules in the correct order", () => {
|
||||||
expect(b).toEqual("b");
|
expect(b).toEqual("b");
|
||||||
expect(array).toEqual(["b", "a"]);
|
expect(array).toEqual(["b", "a"]);
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
it("should ignore missing modules as entries", function() {
|
it("should ignore missing modules as entries", function() {
|
||||||
// a.js and b.js should be evaulated correctly
|
// a.js and b.js should be evaluated correctly
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should use WebpackMissingModule when evaluating missing modules", function() {
|
it("should use WebpackMissingModule when evaluating missing modules", function() {
|
||||||
|
|
|
||||||
|
|
@ -1438,7 +1438,7 @@ async function _createFormWidget(positionTypeId, headerPK, contentId = null) {
|
||||||
_isNewDataset
|
_isNewDataset
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
const renderFormInConainter = contentId ? contentId : _getFormSelector();
|
const renderFormInContainer = contentId ? contentId : _getFormSelector();
|
||||||
await form.initForm(
|
await form.initForm(
|
||||||
_getModuleName(),
|
_getModuleName(),
|
||||||
positionTypeId,
|
positionTypeId,
|
||||||
|
|
@ -1447,7 +1447,7 @@ async function _createFormWidget(positionTypeId, headerPK, contentId = null) {
|
||||||
_formData,
|
_formData,
|
||||||
_staticData,
|
_staticData,
|
||||||
_isNewDataset,
|
_isNewDataset,
|
||||||
renderFormInConainter,
|
renderFormInContainer,
|
||||||
headerPK
|
headerPK
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
it("should ignore case insenstive chars when generating maxSize filenames", () =>
|
it("should ignore case insensitive chars when generating maxSize filenames", () =>
|
||||||
import(/* webpackChunkName: "chunk" */ "./chunk").then(
|
import(/* webpackChunkName: "chunk" */ "./chunk").then(
|
||||||
({ default: value }) => {
|
({ default: value }) => {
|
||||||
expect(value).toContain("a111");
|
expect(value).toContain("a111");
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ function run({ default: value2, asyncDep: value3 }) {
|
||||||
__filename,
|
__filename,
|
||||||
path.resolve(__dirname, "../../../node_modules/.yarn-integrity")
|
path.resolve(__dirname, "../../../node_modules/.yarn-integrity")
|
||||||
].concat(esm ? ["../../fixtures/buildDependencies/esm.mjs"] : []),
|
].concat(esm ? ["../../fixtures/buildDependencies/esm.mjs"] : []),
|
||||||
invalid: options.invalidBuildDepdencies
|
invalid: options.invalidBuildDependencies
|
||||||
? ["should-fail-resolving"]
|
? ["should-fail-resolving"]
|
||||||
: [],
|
: [],
|
||||||
optionalDepsTest: [
|
optionalDepsTest: [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue