-
-
Notifications
You must be signed in to change notification settings - Fork 393
Expand file tree
/
Copy pathRemoteToExternalDependency.ts
More file actions
37 lines (31 loc) · 933 Bytes
/
RemoteToExternalDependency.ts
File metadata and controls
37 lines (31 loc) · 933 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
37
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra, Zackary Jackson @ScriptedAlchemy
*/
'use strict';
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 RemoteToExternalDependency extends dependencies.ModuleDependency {
/**
* @param {string} request request
*/
constructor(request: string) {
super(request);
}
override get type() {
return 'remote to external';
}
override get category() {
return 'esm';
}
}
makeSerializable(
RemoteToExternalDependency,
'enhanced/lib/container/RemoteToExternalDependency',
);
export default RemoteToExternalDependency;