/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/module/externals/index.js
13 строк
406 B
Ivan Kopeykin
add importMeta to JavascriptParserOptions:
27 янв 2022, 22:54
27 янв 2022, 22:54
c09e82f
Код
Авторство
О чём код?
import imported from "./imported.mjs"; import value from "./module"; import { metaUrl } from "./meta"; const localMetaUrl = import.meta.url; it("should allow to use externals in concatenated modules", () => { expect(imported).toBe(42); expect(value).toBe(40); }); it("all bundled files should have same url, when parser.javascript.importMeta === false", () => { expect(localMetaUrl).toBe(metaUrl) });