/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/hotCases/esm-output/css-modules/index.js
30 строк
759 B
Alexander Akait
feat: improve localIdentName hashing
26 ноя 2025, 14:08
Не верифицирован
26 ноя 2025, 14:08
1b5084e
Код
Авторство
О чём код?
import * as styles from "./style.module.css"; import update from "../../update.esm"; import.meta.webpackHot.accept(["./style.module.css", "./style2.module.css"]) it("should work", async function (done) { expect(styles).toMatchObject({ class: "style_module_css-class" }); const styles2 = await import("./style2.module.css"); expect(styles2).toMatchObject({ foo: "style2_module_css-foo" }); NEXT(update(done, true, () => { Promise.all([ import("./style.module.css"), import("./style2.module.css") ]) .then(([styles, styles2]) => { expect(styles).toMatchObject({ "class-other": "style_module_css-class-other" }); expect(styles2).toMatchObject({ "bar": "style2_module_css-bar" }); done(); }).catch(done); })); });