mirror of https://github.com/webpack/webpack.git
ci: fix
This commit is contained in:
parent
ddc3782298
commit
8ac130a2c8
|
@ -14,6 +14,7 @@ jobs:
|
||||||
- name: "Dependency Review"
|
- name: "Dependency Review"
|
||||||
uses: actions/dependency-review-action@v4
|
uses: actions/dependency-review-action@v4
|
||||||
with:
|
with:
|
||||||
|
allow-dependencies-licenses: "pkg:npm/@cspell/dict-en-common-misspellings, pkg:npm/flatted, pkg:npm/parse-imports, pkg:npm/prettier"
|
||||||
allow-licenses: |
|
allow-licenses: |
|
||||||
0BSD,
|
0BSD,
|
||||||
AFL-1.1,
|
AFL-1.1,
|
||||||
|
|
|
@ -265,7 +265,11 @@ module.exports = [
|
||||||
"n/no-unsupported-features/node-builtins": [
|
"n/no-unsupported-features/node-builtins": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
ignores: ["zlib.createBrotliCompress", "zlib.createBrotliDecompress"]
|
ignores: [
|
||||||
|
"zlib.createBrotliCompress",
|
||||||
|
"zlib.createBrotliDecompress",
|
||||||
|
"EventSource"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"n/exports-style": "error"
|
"n/exports-style": "error"
|
||||||
|
|
|
@ -104,7 +104,7 @@
|
||||||
"toml": "^3.0.0",
|
"toml": "^3.0.0",
|
||||||
"tooling": "webpack/tooling#v1.23.5",
|
"tooling": "webpack/tooling#v1.23.5",
|
||||||
"ts-loader": "^9.5.1",
|
"ts-loader": "^9.5.1",
|
||||||
"typescript": "^5.6.2",
|
"typescript": "^5.7.3",
|
||||||
"url-loader": "^4.1.0",
|
"url-loader": "^4.1.0",
|
||||||
"wast-loader": "^1.12.1",
|
"wast-loader": "^1.12.1",
|
||||||
"webassembly-feature": "1.3.0",
|
"webassembly-feature": "1.3.0",
|
||||||
|
|
|
@ -1748,19 +1748,7 @@ webpack x.x.x compiled successfully in X ms"
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`StatsTestCases should print correct stats for module-not-found-error 1`] = `
|
exports[`StatsTestCases should print correct stats for module-not-found-error 1`] = `
|
||||||
"ERROR in ./index.js 1:0-17
|
"ERROR in ./index.js 2:0-13
|
||||||
Module not found: Error: Can't resolve 'buffer' in 'Xdir/module-not-found-error'
|
|
||||||
|
|
||||||
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
|
|
||||||
This is no longer the case. Verify if you need this module and configure a polyfill for it.
|
|
||||||
|
|
||||||
If you want to include a polyfill, you need to:
|
|
||||||
- add a fallback 'resolve.fallback: { \\"buffer\\": require.resolve(\\"buffer/\\") }'
|
|
||||||
- install 'buffer'
|
|
||||||
If you don't want to include a polyfill, you can use an empty module like this:
|
|
||||||
resolve.fallback: { \\"buffer\\": false }
|
|
||||||
|
|
||||||
ERROR in ./index.js 2:0-13
|
|
||||||
Module not found: Error: Can't resolve 'os' in 'Xdir/module-not-found-error'
|
Module not found: Error: Can't resolve 'os' in 'Xdir/module-not-found-error'
|
||||||
|
|
||||||
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
|
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
|
||||||
|
@ -1772,7 +1760,7 @@ If you want to include a polyfill, you need to:
|
||||||
If you don't want to include a polyfill, you can use an empty module like this:
|
If you don't want to include a polyfill, you can use an empty module like this:
|
||||||
resolve.fallback: { \\"os\\": false }
|
resolve.fallback: { \\"os\\": false }
|
||||||
|
|
||||||
webpack compiled with 2 errors"
|
webpack compiled with 1 error"
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`StatsTestCases should print correct stats for module-reasons 1`] = `
|
exports[`StatsTestCases should print correct stats for module-reasons 1`] = `
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"lib": ["esnext", "dom"],
|
"lib": ["es2017", "dom"],
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"checkJs": true,
|
"checkJs": true,
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
|
|
|
@ -248,19 +248,20 @@ declare interface ArgumentConfig {
|
||||||
type: "string" | "number" | "boolean" | "path" | "enum" | "RegExp" | "reset";
|
type: "string" | "number" | "boolean" | "path" | "enum" | "RegExp" | "reset";
|
||||||
values?: any[];
|
values?: any[];
|
||||||
}
|
}
|
||||||
|
type ArrayBufferLike = ArrayBuffer | SharedArrayBuffer;
|
||||||
type ArrayBufferView =
|
type ArrayBufferView =
|
||||||
| Uint8Array
|
| Uint8Array<ArrayBufferLike>
|
||||||
| Uint8ClampedArray
|
| Uint8ClampedArray<ArrayBufferLike>
|
||||||
| Uint16Array
|
| Uint16Array<ArrayBufferLike>
|
||||||
| Uint32Array
|
| Uint32Array<ArrayBufferLike>
|
||||||
| Int8Array
|
| Int8Array<ArrayBufferLike>
|
||||||
| Int16Array
|
| Int16Array<ArrayBufferLike>
|
||||||
| Int32Array
|
| Int32Array<ArrayBufferLike>
|
||||||
| BigUint64Array
|
| BigUint64Array<ArrayBufferLike>
|
||||||
| BigInt64Array
|
| BigInt64Array<ArrayBufferLike>
|
||||||
| Float32Array
|
| Float32Array<ArrayBufferLike>
|
||||||
| Float64Array
|
| Float64Array<ArrayBufferLike>
|
||||||
| DataView;
|
| DataView<ArrayBufferLike>;
|
||||||
declare interface Asset {
|
declare interface Asset {
|
||||||
/**
|
/**
|
||||||
* the filename of the asset
|
* the filename of the asset
|
||||||
|
@ -15464,6 +15465,7 @@ declare class WebpackError extends Error {
|
||||||
* Creates an instance of WebpackError.
|
* Creates an instance of WebpackError.
|
||||||
*/
|
*/
|
||||||
constructor(message?: string);
|
constructor(message?: string);
|
||||||
|
[index: number]: () => string;
|
||||||
details?: string;
|
details?: string;
|
||||||
module?: null | Module;
|
module?: null | Module;
|
||||||
loc?: SyntheticDependencyLocation | RealDependencyLocation;
|
loc?: SyntheticDependencyLocation | RealDependencyLocation;
|
||||||
|
@ -15755,18 +15757,18 @@ declare interface WriteFile {
|
||||||
file: PathOrFileDescriptorFs,
|
file: PathOrFileDescriptorFs,
|
||||||
data:
|
data:
|
||||||
| string
|
| string
|
||||||
| Uint8Array
|
| Uint8Array<ArrayBufferLike>
|
||||||
| Uint8ClampedArray
|
| Uint8ClampedArray<ArrayBufferLike>
|
||||||
| Uint16Array
|
| Uint16Array<ArrayBufferLike>
|
||||||
| Uint32Array
|
| Uint32Array<ArrayBufferLike>
|
||||||
| Int8Array
|
| Int8Array<ArrayBufferLike>
|
||||||
| Int16Array
|
| Int16Array<ArrayBufferLike>
|
||||||
| Int32Array
|
| Int32Array<ArrayBufferLike>
|
||||||
| BigUint64Array
|
| BigUint64Array<ArrayBufferLike>
|
||||||
| BigInt64Array
|
| BigInt64Array<ArrayBufferLike>
|
||||||
| Float32Array
|
| Float32Array<ArrayBufferLike>
|
||||||
| Float64Array
|
| Float64Array<ArrayBufferLike>
|
||||||
| DataView,
|
| DataView<ArrayBufferLike>,
|
||||||
options: WriteFileOptions,
|
options: WriteFileOptions,
|
||||||
callback: (arg0: null | NodeJS.ErrnoException) => void
|
callback: (arg0: null | NodeJS.ErrnoException) => void
|
||||||
): void;
|
): void;
|
||||||
|
@ -15774,18 +15776,18 @@ declare interface WriteFile {
|
||||||
file: PathOrFileDescriptorFs,
|
file: PathOrFileDescriptorFs,
|
||||||
data:
|
data:
|
||||||
| string
|
| string
|
||||||
| Uint8Array
|
| Uint8Array<ArrayBufferLike>
|
||||||
| Uint8ClampedArray
|
| Uint8ClampedArray<ArrayBufferLike>
|
||||||
| Uint16Array
|
| Uint16Array<ArrayBufferLike>
|
||||||
| Uint32Array
|
| Uint32Array<ArrayBufferLike>
|
||||||
| Int8Array
|
| Int8Array<ArrayBufferLike>
|
||||||
| Int16Array
|
| Int16Array<ArrayBufferLike>
|
||||||
| Int32Array
|
| Int32Array<ArrayBufferLike>
|
||||||
| BigUint64Array
|
| BigUint64Array<ArrayBufferLike>
|
||||||
| BigInt64Array
|
| BigInt64Array<ArrayBufferLike>
|
||||||
| Float32Array
|
| Float32Array<ArrayBufferLike>
|
||||||
| Float64Array
|
| Float64Array<ArrayBufferLike>
|
||||||
| DataView,
|
| DataView<ArrayBufferLike>,
|
||||||
callback: (arg0: null | NodeJS.ErrnoException) => void
|
callback: (arg0: null | NodeJS.ErrnoException) => void
|
||||||
): void;
|
): void;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue