/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/split-chunks/runtime-chunk/a.js
10 строк
319 B
Tobias Koppers
use - instead of ~ as default for better compat
07 дек 2018, 16:46
07 дек 2018, 16:46
fe80339
Код
Авторство
О чём код?
it("should be able to load the split chunk on demand", () => { const promise = import(/* webpackChunkName: "shared" */ "./shared"); const script = document.head._children[0]; expect(script.src).toBe("https://test.cases/path/dep-shared_js.js"); __non_webpack_require__("./dep-shared_js.js"); return promise; });