blob: ec15eb0bb8fc24c7752c62d897a33ff015cf860d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
export function resolve(specifier, { parentURL }, defaultResolve) {
if (specifier === 'test') {
return {
url: 'file://'
};
}
return defaultResolve(specifier, {parentURL}, defaultResolve);
}
export function getFormat(url, context, defaultGetFormat) {
if (url === 'file://') {
return {
format: 'dynamic'
}
}
return defaultGetFormat(url, context, defaultGetFormat);
}
|