/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/source-map/source-map-with-profiling-plugin/index.js
8 строк
286 B
Tobias Koppers
emit a warning when require.include is used
22 окт 2019, 11:17
22 окт 2019, 11:17
46fec5e
Код
Авторство
О чём код?
it("bundle0 should include sourcemapped test.js", function() { var fs = require("fs"); var source = fs.readFileSync(__filename + ".map", "utf-8"); var map = JSON.parse(source); expect(map.sources).toContain("webpack:///./test.js"); }); if (Math.random() < 0) require("./test.js");