-
-
Notifications
You must be signed in to change notification settings - Fork 395
Expand file tree
/
Copy pathFallbackItemDependency.ts
More file actions
36 lines (30 loc) · 914 Bytes
/
FallbackItemDependency.ts
File metadata and controls
36 lines (30 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra, Zackary Jackson @ScriptedAlchemy
*/
import { normalizeWebpackPath } from '@module-federation/sdk/normalize-webpack-path';
const makeSerializable = require(
normalizeWebpackPath('webpack/lib/util/makeSerializable'),
) as typeof import('webpack/lib/util/makeSerializable');
const { dependencies } = require(
normalizeWebpackPath('webpack'),
) as typeof import('webpack');
class FallbackItemDependency extends dependencies.ModuleDependency {
/**
* @param {string} request request
*/
constructor(request: string) {
super(request);
}
override get type(): string {
return 'fallback item';
}
override get category(): string {
return 'esm';
}
}
makeSerializable(
FallbackItemDependency,
'enhanced/lib/container/FallbackItemDependency',
);
export default FallbackItemDependency;