/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/css/css-order3/index.js
14 строк
483 B
Natsu Xiao
fix: dependency without the sourceOrder attribute must keep their original index (#19700)
14 июл 2025, 19:49
Не верифицирован
14 июл 2025, 19:49
fdb0c4e
Код
Авторство
О чём код?
const { component } = require("./component"); component() // https://github.com/webpack/webpack/issues/18961 // https://github.com/jantimon/reproduction-webpack-css-order it("keep consistent css order", function() { const fs = __non_webpack_require__("fs"); let source = fs.readFileSync(__dirname + "/main.css", "utf-8"); expect(removeComments(source)).toMatchSnapshot() }); function removeComments(source) { return source.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\n/g, ""); }