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"
|
||||
uses: actions/dependency-review-action@v4
|
||||
with:
|
||||
allow-dependencies-licenses: "pkg:npm/@cspell/dict-en-common-misspellings, pkg:npm/flatted, pkg:npm/parse-imports, pkg:npm/prettier"
|
||||
allow-licenses: |
|
||||
0BSD,
|
||||
AFL-1.1,
|
||||
|
|
|
@ -265,7 +265,11 @@ module.exports = [
|
|||
"n/no-unsupported-features/node-builtins": [
|
||||
"error",
|
||||
{
|
||||
ignores: ["zlib.createBrotliCompress", "zlib.createBrotliDecompress"]
|
||||
ignores: [
|
||||
"zlib.createBrotliCompress",
|
||||
"zlib.createBrotliDecompress",
|
||||
"EventSource"
|
||||
]
|
||||
}
|
||||
],
|
||||
"n/exports-style": "error"
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
"toml": "^3.0.0",
|
||||
"tooling": "webpack/tooling#v1.23.5",
|
||||
"ts-loader": "^9.5.1",
|
||||
"typescript": "^5.6.2",
|
||||
"typescript": "^5.7.3",
|
||||
"url-loader": "^4.1.0",
|
||||
"wast-loader": "^1.12.1",
|
||||
"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`] = `
|
||||
"ERROR in ./index.js 1:0-17
|
||||
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
|
||||
"ERROR in ./index.js 2:0-13
|
||||
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.
|
||||
|
@ -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:
|
||||
resolve.fallback: { \\"os\\": false }
|
||||
|
||||
webpack compiled with 2 errors"
|
||||
webpack compiled with 1 error"
|
||||
`;
|
||||
|
||||
exports[`StatsTestCases should print correct stats for module-reasons 1`] = `
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"lib": ["esnext", "dom"],
|
||||
"lib": ["es2017", "dom"],
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"noEmit": true,
|
||||
|
|
|
@ -248,19 +248,20 @@ declare interface ArgumentConfig {
|
|||
type: "string" | "number" | "boolean" | "path" | "enum" | "RegExp" | "reset";
|
||||
values?: any[];
|
||||
}
|
||||
type ArrayBufferLike = ArrayBuffer | SharedArrayBuffer;
|
||||
type ArrayBufferView =
|
||||
| Uint8Array
|
||||
| Uint8ClampedArray
|
||||
| Uint16Array
|
||||
| Uint32Array
|
||||
| Int8Array
|
||||
| Int16Array
|
||||
| Int32Array
|
||||
| BigUint64Array
|
||||
| BigInt64Array
|
||||
| Float32Array
|
||||
| Float64Array
|
||||
| DataView;
|
||||
| Uint8Array<ArrayBufferLike>
|
||||
| Uint8ClampedArray<ArrayBufferLike>
|
||||
| Uint16Array<ArrayBufferLike>
|
||||
| Uint32Array<ArrayBufferLike>
|
||||
| Int8Array<ArrayBufferLike>
|
||||
| Int16Array<ArrayBufferLike>
|
||||
| Int32Array<ArrayBufferLike>
|
||||
| BigUint64Array<ArrayBufferLike>
|
||||
| BigInt64Array<ArrayBufferLike>
|
||||
| Float32Array<ArrayBufferLike>
|
||||
| Float64Array<ArrayBufferLike>
|
||||
| DataView<ArrayBufferLike>;
|
||||
declare interface Asset {
|
||||
/**
|
||||
* the filename of the asset
|
||||
|
@ -15464,6 +15465,7 @@ declare class WebpackError extends Error {
|
|||
* Creates an instance of WebpackError.
|
||||
*/
|
||||
constructor(message?: string);
|
||||
[index: number]: () => string;
|
||||
details?: string;
|
||||
module?: null | Module;
|
||||
loc?: SyntheticDependencyLocation | RealDependencyLocation;
|
||||
|
@ -15755,18 +15757,18 @@ declare interface WriteFile {
|
|||
file: PathOrFileDescriptorFs,
|
||||
data:
|
||||
| string
|
||||
| Uint8Array
|
||||
| Uint8ClampedArray
|
||||
| Uint16Array
|
||||
| Uint32Array
|
||||
| Int8Array
|
||||
| Int16Array
|
||||
| Int32Array
|
||||
| BigUint64Array
|
||||
| BigInt64Array
|
||||
| Float32Array
|
||||
| Float64Array
|
||||
| DataView,
|
||||
| Uint8Array<ArrayBufferLike>
|
||||
| Uint8ClampedArray<ArrayBufferLike>
|
||||
| Uint16Array<ArrayBufferLike>
|
||||
| Uint32Array<ArrayBufferLike>
|
||||
| Int8Array<ArrayBufferLike>
|
||||
| Int16Array<ArrayBufferLike>
|
||||
| Int32Array<ArrayBufferLike>
|
||||
| BigUint64Array<ArrayBufferLike>
|
||||
| BigInt64Array<ArrayBufferLike>
|
||||
| Float32Array<ArrayBufferLike>
|
||||
| Float64Array<ArrayBufferLike>
|
||||
| DataView<ArrayBufferLike>,
|
||||
options: WriteFileOptions,
|
||||
callback: (arg0: null | NodeJS.ErrnoException) => void
|
||||
): void;
|
||||
|
@ -15774,18 +15776,18 @@ declare interface WriteFile {
|
|||
file: PathOrFileDescriptorFs,
|
||||
data:
|
||||
| string
|
||||
| Uint8Array
|
||||
| Uint8ClampedArray
|
||||
| Uint16Array
|
||||
| Uint32Array
|
||||
| Int8Array
|
||||
| Int16Array
|
||||
| Int32Array
|
||||
| BigUint64Array
|
||||
| BigInt64Array
|
||||
| Float32Array
|
||||
| Float64Array
|
||||
| DataView,
|
||||
| Uint8Array<ArrayBufferLike>
|
||||
| Uint8ClampedArray<ArrayBufferLike>
|
||||
| Uint16Array<ArrayBufferLike>
|
||||
| Uint32Array<ArrayBufferLike>
|
||||
| Int8Array<ArrayBufferLike>
|
||||
| Int16Array<ArrayBufferLike>
|
||||
| Int32Array<ArrayBufferLike>
|
||||
| BigUint64Array<ArrayBufferLike>
|
||||
| BigInt64Array<ArrayBufferLike>
|
||||
| Float32Array<ArrayBufferLike>
|
||||
| Float64Array<ArrayBufferLike>
|
||||
| DataView<ArrayBufferLike>,
|
||||
callback: (arg0: null | NodeJS.ErrnoException) => void
|
||||
): void;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue