/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/container/module-federation/module.js
19 строк
687 B
Tobias Koppers
change Module Federation API to be more similar to exports field
20 май 2020, 21:13
20 май 2020, 21:13
264a171
Код
Авторство
О чём код?
import abc from "abc/system-hello-world"; import def, { module } from "def/system-hello-world"; import def2, { module as module2 } from "def/system-hello/other/world"; import other from "other/other"; import otherSelf from "other/self"; import self from "self/self"; import selfOther from "self/other"; export function test() { expect(abc).toBe("abc ./system-hello-world"); expect(def).toBe("def"); expect(def2).toBe("def"); expect(module).toBe("./system-hello-world"); expect(module2).toBe("./system-hello/other/world"); expect(other).toBe("other and dep"); expect(otherSelf).toBe("self and dep"); expect(self).toBe("self and dep"); expect(selfOther).toBe("other and dep"); }