repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/no-extra-runtime-css-modules/test.config.js
test/configCases/css/no-extra-runtime-css-modules/test.config.js
"use strict"; module.exports = { findBundle(i) { switch (i) { case 0: return ["test.js"]; case 1: return ["test.js", "1/main.js"]; case 2: return ["test.js", "2/main.js"]; } } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/no-extra-runtime-css-modules/main1.js
test/configCases/css/no-extra-runtime-css-modules/main1.js
import "./main.css" require("./a2.css") import("./a2.css").then(() => {})
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/no-extra-runtime-css-modules/webpack.config.js
test/configCases/css/no-extra-runtime-css-modules/webpack.config.js
"use strict"; const fs = require("fs"); const path = require("path"); const webpack = require("../../../../"); /** * @param {0 | 1 | 2} i index * @returns {{ main: string[] }} entry */ const entry = (i) => { switch (i) { case 0: return { main: ["./main.css"] }; case 1: return { main: ["./main...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/default-exports-parser-options/warnings.js
test/configCases/css/default-exports-parser-options/warnings.js
"use strict"; module.exports = [ /Should not import the named export 'foo'/, /Should not import the named export 'foo'/ ];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/default-exports-parser-options/index.js
test/configCases/css/default-exports-parser-options/index.js
import * as style1 from "./style.module.css?namespace"; import style2 from "./style.module.css?default"; import { foo } from "./style.module.css?named"; it("should able to import with default and named exports", () => { expect(style1.default).toEqual(nsObj({ foo: 'style_module_css_namespace-foo' })); // Named export...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/default-exports-parser-options/webpack.config.js
test/configCases/css/default-exports-parser-options/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "node", mode: "development", devtool: false, module: { rules: [ { test: /\.css/, parser: { namedExports: false }, type: "css/module" } ] }, experiments: { css: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/namespace/warnings.js
test/configCases/css/namespace/warnings.js
"use strict"; module.exports = [/'@namespace' is not supported in bundled CSS/];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/namespace/index.js
test/configCases/css/namespace/index.js
import "./style.css"; it("should compile with warning", done => { const style = getComputedStyle(document.body); expect(style.getPropertyValue("background")).toBe(" red"); done(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/namespace/test.config.js
test/configCases/css/namespace/test.config.js
"use strict"; module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); link.rel = "stylesheet"; link.href = "bundle0.css"; scope.window.document.head.appendChild(link); } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/namespace/webpack.config.js
test/configCases/css/namespace/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", mode: "development", experiments: { css: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/parsing/index.js
test/configCases/css/parsing/index.js
import "./style.css"; it("should compile and load style on demand", done => { const style = getComputedStyle(document.body); expect(style.getPropertyValue("background")).toBe(" red"); done(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/parsing/test.config.js
test/configCases/css/parsing/test.config.js
"use strict"; module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); link.rel = "stylesheet"; link.href = "bundle0.css"; scope.window.document.head.appendChild(link); } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/parsing/webpack.config.js
test/configCases/css/parsing/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", mode: "development", experiments: { css: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/universal/test.filter.js
test/configCases/css/universal/test.filter.js
"use strict"; const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker();
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/universal/index.js
test/configCases/css/universal/index.js
import * as pureStyle from "./style.css"; import * as styles from "./style.modules.css"; it("should work", done => { expect(pureStyle).toEqual({}); if (typeof document !== "undefined") { const style = getComputedStyle(document.body); expect(style.getPropertyValue("background")).toBe(" red"); } expect(styles...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/universal/test.config.js
test/configCases/css/universal/test.config.js
"use strict"; module.exports = { moduleScope(scope, options) { if (options.name.includes("node")) { delete scope.window; delete scope.document; delete scope.self; } else { const link = scope.window.document.createElement("link"); link.rel = "stylesheet"; link.href = "bundle0.css"; scope.windo...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/universal/worker.js
test/configCases/css/universal/worker.js
self.onmessage = async event => { const { foo } = await import("./style.modules.css"); const { bar } = await import("./style2.modules.css"); const { baz } = await import("./style3.modules.css"); postMessage(`data: ${foo} ${bar} ${baz}, thanks`); };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/universal/webpack.config.js
test/configCases/css/universal/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration[]} */ module.exports = [ { name: "web", target: ["web", "node"], devtool: false, mode: "development", experiments: { css: true, outputModule: true } }, { name: "node", target: ["web", "node"], devtool: false, mode: "development"...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/runtime-issue/asyncChunk2.js
test/configCases/css/runtime-issue/asyncChunk2.js
import * as style from "./styles.js"; export default style;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/runtime-issue/entry1.js
test/configCases/css/runtime-issue/entry1.js
const img = new URL("./img.png", import.meta.url); it("should allow to create css modules", done => { import("./asyncChunk").then(({ default: x }) => { try { expect(img.toString()).toBe("https://test.cases/path/img.png"); expect(x.default.class).toEqual("test_module_css-class"); } catch (e) { return done...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/runtime-issue/asyncChunk.js
test/configCases/css/runtime-issue/asyncChunk.js
import * as style from "./styles.js"; export default style;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/runtime-issue/share.js
test/configCases/css/runtime-issue/share.js
const foo = `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/runtime-issue/test.config.js
test/configCases/css/runtime-issue/test.config.js
"use strict"; module.exports = { moduleScope(scope) { const link1 = scope.window.document.createElement("link"); link1.rel = "stylesheet"; link1.href = "asyncChunk_js.css"; scope.window.document.head.appendChild(link1); const link2 = scope.window.document.createElement("link"); link2.rel = "stylesheet"; ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/runtime-issue/styles.js
test/configCases/css/runtime-issue/styles.js
import * as style from "./test.module.css"; export default style;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/runtime-issue/webpack.config.js
test/configCases/css/runtime-issue/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", mode: "development", experiments: { css: true }, entry: { main: { import: ["./share.js", "./entry1.js"] }, secondMain: { import: ["./share.js", "./entry2.js"] } }, optimization: { splitChunks: {...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/runtime-issue/entry2.js
test/configCases/css/runtime-issue/entry2.js
const img = new URL("./img.png", import.meta.url); it("should allow to create css modules", done => { import("./asyncChunk2").then(({ default: x }) => { try { expect(img.toString()).toBe("https://test.cases/path/img.png"); expect(x.default.class).toEqual("test_module_css-class"); } catch (e) { return don...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/postcss-modules-plugins/warnings.js
test/configCases/css/postcss-modules-plugins/warnings.js
"use strict"; module.exports = [ /Composition is only allowed when selector is single local class name not in "exportName19", "exportName19-nested", "exportName19-nested-nested"/, /Incorrect composition, expected global keyword or string value/, /Incorrect composition, expected class named/, /Composition is only a...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/postcss-modules-plugins/index.js
test/configCases/css/postcss-modules-plugins/index.js
import * as composes from "./postcss-modules-extract-imports.modules.css"; import * as local from "./postcss-modules-local-by-default.local.modules.css"; import * as global from "./postcss-modules-local-by-default.global.modules.css"; import * as pure from "./postcss-modules-local-by-default.pure.modules.css"; import *...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/postcss-modules-plugins/test.config.js
test/configCases/css/postcss-modules-plugins/test.config.js
"use strict"; module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); link.rel = "stylesheet"; link.href = "bundle0.css"; scope.window.document.head.appendChild(link); } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/postcss-modules-plugins/webpack.config.js
test/configCases/css/postcss-modules-plugins/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", mode: "development", experiments: { css: true }, module: { rules: [ { test: /postcss-modules-local-by-default\.global\.modules\.css$/, type: "css/global" }, { test: /postcss-modules-local-b...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order3/index.js
test/configCases/css/css-order3/index.js
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-...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order3/component.js
test/configCases/css/css-order3/component.js
const { dependency3 } = require("./dependency/dependency3"); import { dependency, dependency2 } from "./dependency"; export function component() { dependency(); dependency2(); dependency3(); }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order3/webpack.config.js
test/configCases/css/css-order3/webpack.config.js
"use strict"; const MiniCssExtractPlugin = require("mini-css-extract-plugin"); /** @type {import("../../../../").Configuration} */ module.exports = { devtool: false, target: "web", entry: "./index.js", mode: "development", optimization: { concatenateModules: false }, module: { rules: [ { test: /\.cs...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order3/dependency/dependency3.js
test/configCases/css/css-order3/dependency/dependency3.js
import styles from "./dependency3.css"; export function dependency3() { return styles !== undefined; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order3/dependency/dependency.js
test/configCases/css/css-order3/dependency/dependency.js
import styles from "./dependency.css"; export function dependency() { return styles !== undefined; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order3/dependency/index.js
test/configCases/css/css-order3/dependency/index.js
export * from "./dependency2"; export * from "./dependency";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order3/dependency/dependency2.js
test/configCases/css/css-order3/dependency/dependency2.js
import styles from "./dependency2.css"; export function dependency2() { return styles !== undefined; }
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/local-ident-name/index.js
test/configCases/css/local-ident-name/index.js
it("should have correct local ident for css export locals", (done) => { Promise.all([ import("./style.module.css"), import("./style.module.css?hash"), import("./style.module.css?hash-local"), import("./style.module.css?path-name-local"), import("./style.module.css?file-local"), import("./style.module.css?q...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/local-ident-name/test.config.js
test/configCases/css/local-ident-name/test.config.js
"use strict"; module.exports = { findBundle(i) { return [ `style_module_css.bundle${i}.js`, `style_module_css_hash.bundle${i}.js`, `style_module_css_hash-local.bundle${i}.js`, `style_module_css_path-name-local.bundle${i}.js`, `style_module_css_file-local.bundle${i}.js`, `style_module_css_q_f.bundl...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/local-ident-name/webpack.config.js
test/configCases/css/local-ident-name/webpack.config.js
"use strict"; const common = { mode: "development", devtool: false, module: { rules: [ { test: /\.less$/, type: "css/auto", use: ["less-loader"], generator: { localIdentName: "[path][name][ext]__[local]" } }, { test: /\.css$/, type: "css/auto", oneOf: [ { r...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/runtime-data-webpack/index.js
test/configCases/css/runtime-data-webpack/index.js
import "./style.css"; it("should work", () => { const computedStyle = getComputedStyle(document.body); expect(computedStyle.getPropertyValue("color")).toBe(" red"); expect(computedStyle.getPropertyValue("background")).toBe(" red"); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/runtime-data-webpack/test.config.js
test/configCases/css/runtime-data-webpack/test.config.js
"use strict"; module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); link.rel = "stylesheet"; link.href = "bundle0.css"; link.setAttribute("data-webpack", "test:chunk-main"); scope.window.document.head.appendChild(link); } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/runtime-data-webpack/webpack.config.js
test/configCases/css/runtime-data-webpack/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", mode: "development", output: { uniqueName: "test" }, plugins: [ { apply(compiler) { compiler.hooks.compilation.tap("Test", (compilation) => { compilation.hooks.processAssets.tap( { name...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/basic/index.js
test/configCases/css/basic/index.js
import * as style from "./style.css"; it("should compile and load style on demand", done => { expect(style).toEqual({}); import("./style2.css").then(x => { expect(x).toEqual({}); const style = getComputedStyle(document.body); expect(style.getPropertyValue("background")).toBe(" red"); expect(style.getProperty...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/basic/test.config.js
test/configCases/css/basic/test.config.js
"use strict"; module.exports = { findBundle() { return ["style2_css.bundle0.js", "bundle0.js"]; }, moduleScope(scope) { const link = scope.window.document.createElement("link"); link.rel = "stylesheet"; link.href = "bundle0.css"; scope.window.document.head.appendChild(link); } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/basic/webpack.config.js
test/configCases/css/basic/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", mode: "development", experiments: { css: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order/index.js
test/configCases/css/css-order/index.js
import { Teaser } from "./liba"; document.body.innerHTML = Teaser(); // 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...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order/webpack.config.js
test/configCases/css/css-order/webpack.config.js
"use strict"; const MiniCssExtractPlugin = require("mini-css-extract-plugin"); /** @type {import("../../../../").Configuration} */ module.exports = { devtool: false, target: "web", entry: "./index.js", mode: "development", optimization: { concatenateModules: false }, module: { rules: [ { test: /\.mo...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order/liba/index.js
test/configCases/css/css-order/liba/index.js
export * from './common';
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order/liba/common.js
test/configCases/css/css-order/liba/common.js
import { CarouselButton } from '../libb'; import styles from './teaser.module.css'; export const Teaser = () => { return ` <div class="${styles.teaser}"> <h2>Teaser Component</h2> ${CarouselButton({ className: styles.teaserCarouselButton, })} </div> `; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order/libb/index.js
test/configCases/css/css-order/libb/index.js
export * from './common';
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order/libb/common.js
test/configCases/css/css-order/libb/common.js
import styles from './button.module.css'; export const CarouselButton = ({ className = '', }) => { return `<button class="${styles.button + ( className ? ` ${className}` : '' )}">Carousel Button</button>`; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/basic-dynamic-only/index.js
test/configCases/css/basic-dynamic-only/index.js
it("should compile and load style on demand", (done) => { import("./style.css").then(x => { expect(x).toEqual({}); const style = getComputedStyle(document.body); expect(style.getPropertyValue("background")).toBe(" red"); expect(style.getPropertyValue("margin")).toBe(" 10px"); done(); }, done); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/basic-dynamic-only/test.config.js
test/configCases/css/basic-dynamic-only/test.config.js
"use strict"; module.exports = { findBundle() { return ["style_css.bundle0.js", "bundle0.js"]; } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/basic-dynamic-only/webpack.config.js
test/configCases/css/basic-dynamic-only/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", mode: "development", externalsPresets: { web: false, webAsync: true }, experiments: { css: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/prefetch-preload-module/webpack.config.js
test/configCases/css/prefetch-preload-module/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./index.mjs", experiments: { outputModule: true, css: true }, name: "esm", target: "web", output: { publicPath: "", module: true, filename: "bundle0.mjs", chunkFilename: "[name].mjs", crossOriginLoading: "a...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/exports-in-node/index.js
test/configCases/css/exports-in-node/index.js
import * as style from "../pseudo-export/style.module.css?ns"; import { a, abc } from "../pseudo-export/style.module.css?picked"; import def from "../pseudo-export/style.module.css?default"; it("should allow to import a css module", () => { expect(style).toEqual( nsObj({ a: "a", abc: "a b c", comments: "ab...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/exports-in-node/webpack.config.js
test/configCases/css/exports-in-node/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "node", mode: "development", experiments: { css: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/external-in-node/index.js
test/configCases/css/external-in-node/index.js
import * as style from "./style.module.css"; import * as style1 from "https://test.cases/external.css"; it("should import an external CSS inside CSS", () => { expect(style).toEqual( nsObj({ class: "_external-in-node_style_module_css-class" }) ); }); it("should work with an external URL", () => { const url =...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/external-in-node/infrastructure-log.js
test/configCases/css/external-in-node/infrastructure-log.js
"use strict"; module.exports = (options) => { if (options[0].cache && options[0].cache.type === "filesystem") { return [ /Pack got invalid because of write to/, /Pack got invalid because of write to/ ]; } return []; };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/external-in-node/webpack.config.js
test/configCases/css/external-in-node/webpack.config.js
"use strict"; const path = require("path"); /** @type {import("../../../../").Configuration} */ module.exports = [ { context: path.join(__dirname, "../external"), entry: "../external-in-node/index.js", target: "node", optimization: { chunkIds: "named", moduleIds: "named" }, experiments: { css: t...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/external-in-node/errors.js
test/configCases/css/external-in-node/errors.js
"use strict"; module.exports = [ [ /UnhandledSchemeError: Reading from "https:\/\/test\.cases\/url-external\.css"/ ], [/UnhandledSchemeError: Reading from "https:\/\/test\.cases\/external\.css"/], [ /UnhandledSchemeError: Reading from "https:\/\/test\.cases\/url-external\.css"/ ], [/UnhandledSchemeError: Rea...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/url/index.js
test/configCases/css/url/index.js
import "./style.css"; it(`should work with URLs in CSS`, () => { const links = document.getElementsByTagName("link"); const css = []; // Skip first because import it by default for (const link of links.slice(1)) { css.push(link.sheet.css); } expect(css).toMatchSnapshot(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/url/test.config.js
test/configCases/css/url/test.config.js
"use strict"; module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); link.rel = "stylesheet"; link.href = `bundle${scope.__STATS_I__}.css`; scope.window.document.head.appendChild(link); } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/url/webpack.config.js
test/configCases/css/url/webpack.config.js
"use strict"; const path = require("path"); const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ module.exports = [ { target: "web", mode: "development", devtool: false, experiments: { css: true }, output: { assetModuleFilename: "[name].[hash][ext][query][fra...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/url/errors.js
test/configCases/css/url/errors.js
"use strict"; module.exports = [/Can't resolve 'unresolved.png'/];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order-concatenate-modules/index.js
test/configCases/css/css-order-concatenate-modules/index.js
import { c, b, a } from "dep"; c() b() a() 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...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order-concatenate-modules/webpack.config.js
test/configCases/css/css-order-concatenate-modules/webpack.config.js
"use strict"; const MiniCssExtractPlugin = require("mini-css-extract-plugin"); /** @type {import("../../../../").Configuration} */ module.exports = { devtool: false, target: "web", entry: "./index.js", mode: "development", optimization: { concatenateModules: true }, module: { rules: [ { test: /\.css...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order-concatenate-modules/node_modules/dep/index.js
test/configCases/css/css-order-concatenate-modules/node_modules/dep/index.js
export * from "./a.js" export * from "./b.js" export * from "./c.js"
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order-concatenate-modules/node_modules/dep/b.js
test/configCases/css/css-order-concatenate-modules/node_modules/dep/b.js
import "./b.css" export function b() {}
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order-concatenate-modules/node_modules/dep/c.js
test/configCases/css/css-order-concatenate-modules/node_modules/dep/c.js
import "./c.css" export function c() {}
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order-concatenate-modules/node_modules/dep/a.js
test/configCases/css/css-order-concatenate-modules/node_modules/dep/a.js
import "./a.css" export function a() {}
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/basic-esm-target-web/index.js
test/configCases/css/basic-esm-target-web/index.js
import * as style from "./style.css"; it("should compile and load style on demand", done => { expect(style).toEqual({}); import("./style2.css").then(x => { expect(x).toEqual({}); const style = getComputedStyle(document.body); expect(style.getPropertyValue("background")).toBe(" red"); expect(style.getProperty...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/basic-esm-target-web/test.config.js
test/configCases/css/basic-esm-target-web/test.config.js
"use strict"; module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); link.rel = "stylesheet"; link.href = "bundle0.css"; scope.window.document.head.appendChild(link); } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/basic-esm-target-web/webpack.config.js
test/configCases/css/basic-esm-target-web/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", mode: "development", experiments: { outputModule: true, css: true }, output: { module: true, chunkFormat: "module" } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/prefetch-preload-module-only-css/webpack.config.js
test/configCases/css/prefetch-preload-module-only-css/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./index.mjs", experiments: { outputModule: true, css: true }, name: "esm", target: "web", output: { publicPath: "", module: true, filename: "bundle0.mjs", chunkFilename: "[name].mjs", crossOriginLoading: "a...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/exports-only-generator-options/index.js
test/configCases/css/exports-only-generator-options/index.js
it("should not have .css file", (done) => { __non_webpack_require__("./pseudo-export_style_module_css.bundle0.js"); __non_webpack_require__("./pseudo-export_style_module_css_exportsOnly.bundle0.js"); Promise.all([ import("../pseudo-export/style.module.css"), import("../pseudo-export/style.module.css?module"), ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/exports-only-generator-options/test.config.js
test/configCases/css/exports-only-generator-options/test.config.js
"use strict"; module.exports = { findBundle() { return [ "pseudo-export_style_module_css.bundle0.js", "pseudo-export_style_module_css_module.bundle0.js", "pseudo-export_style_module_css_exportsOnly.bundle0.js", "bundle0.js" ]; } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/exports-only-generator-options/webpack.config.js
test/configCases/css/exports-only-generator-options/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = [ { target: "web", mode: "development", module: { generator: { css: { exportsOnly: true }, "css/module": { exportsOnly: false } }, rules: [ { resourceQuery: /\?module/, type: "css/...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/async-chunk-node/index.js
test/configCases/css/async-chunk-node/index.js
it("should allow to dynamic import a css module", done => { import("../pseudo-export/style.module.css").then(x => { try { expect(x).toEqual( nsObj({ a: "a", abc: "a b c", comments: "abc/****/ /* hello world *//****/ def", whitespace: "abc\n\tdef", default: "default" }) ); ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/async-chunk-node/webpack.config.js
test/configCases/css/async-chunk-node/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "node", mode: "development", experiments: { css: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-modules/warnings.js
test/configCases/css/css-modules/warnings.js
"use strict"; module.exports = [ [/export 'global' \(imported as 'style'\) was not found/], [/export 'nested2' \(imported as 'style'\) was not found/], [/export 'global-color' \(imported as 'style'\) was not found/], [/export 'GLOBAL-COLOR' \(imported as 'style'\) was not found/], [/Missing whitespace after ':glo...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-modules/index.js
test/configCases/css/css-modules/index.js
const prod = process.env.NODE_ENV === "production"; it("should allow to create css modules", done => { import("./use-style.js").then(({ default: x }) => { try { expect(x).toMatchSnapshot(prod ? "prod" : "dev"); const fs = __non_webpack_require__("fs"); const path = __non_webpack_require__("path"); if ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-modules/index-global.js
test/configCases/css/css-modules/index-global.js
const prod = process.env.NODE_ENV === "production"; it("should allow to create css modules", done => { import("./use-style-global.js").then(({ default: x }) => { try { expect(x).toMatchSnapshot(prod ? "global prod" : "global dev"); const fs = __non_webpack_require__("fs"); const path = __non_webpack_requ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-modules/test.config.js
test/configCases/css/css-modules/test.config.js
"use strict"; module.exports = { findBundle(i) { if (i === 6) { return [`bundle${i}.js`]; } if (i === 4 || i === 5) { return [ i === 4 ? `./use-style-global_js.bundle${i}.js` : `638.bundle${i}.js`, `./bundle${i}.js` ]; } return [ i === 1 ? `./915.bundle${i}.js` : i === 3 ?...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-modules/use-style-global.js
test/configCases/css/css-modules/use-style-global.js
import * as style from "./style.module.css"; export default style;
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-modules/index-options.js
test/configCases/css/css-modules/index-options.js
import * as styles from "./style.module.css"; it("should allow to disable options", () => { expect(styles).toMatchSnapshot("options classes"); const fs = __non_webpack_require__("fs"); const path = __non_webpack_require__("path"); const cssOutputFilename = `bundle6.css`; const cssContent = fs.readFileSync( pa...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-modules/webpack.config.js
test/configCases/css/css-modules/webpack.config.js
"use strict"; const path = require("path"); const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ const base = { experiments: { css: true }, module: { rules: [ { test: /\.my-css$/i, type: "css/auto" }, { test: /\.invalid$/i, type: "css/auto" } ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-modules/use-style.js
test/configCases/css/css-modules/use-style.js
import * as style from "./style.module.css"; import { local1, local2, local3, local4, ident } from "./style.module.css"; import { myCssClass } from "./style.module.my-css"; import * as notACssModule from "./style.module.css.invalid"; import { UsedClassName } from "./identifiers.module.css"; // To prevent analysis expo...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/pure-css/index.js
test/configCases/css/pure-css/index.js
import "./style.css"; it("should compile", done => { const links = document.getElementsByTagName("link"); const css = []; // Skip first because import it by default for (const link of links.slice(1)) { css.push(link.sheet.css); } expect(css).toMatchSnapshot(); done(); });
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/pure-css/test.config.js
test/configCases/css/pure-css/test.config.js
"use strict"; module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); link.rel = "stylesheet"; link.href = "bundle0.css"; scope.window.document.head.appendChild(link); } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/pure-css/webpack.config.js
test/configCases/css/pure-css/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", mode: "development", module: { rules: [ { test: /\.css$/i, type: "css" } ] }, experiments: { css: true } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/cjs-module-syntax/index.js
test/configCases/css/cjs-module-syntax/index.js
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } it("should able to require the css module as commonjs", () => { const style = require("./style.module.css"); const interoperatedStyle = _interopRequireDefault(require("./style.module.css")); expect(style).toEqual({ foo:...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/cjs-module-syntax/test.config.js
test/configCases/css/cjs-module-syntax/test.config.js
"use strict"; module.exports = { moduleScope(scope) { if (scope.document) { const link = scope.document.createElement("link"); link.rel = "stylesheet"; link.href = "bundle0.css"; scope.document.head.appendChild(link); } } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/cjs-module-syntax/webpack.config.js
test/configCases/css/cjs-module-syntax/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = [ { target: "web", mode: "development", module: { generator: { "css/auto": { esModule: false } } }, experiments: { css: true } }, { target: "node", mode: "development", module: { generator: ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/conflicting-order/lazy4.js
test/configCases/css/conflicting-order/lazy4.js
import "./e.css"; import "./a.css";
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/conflicting-order/warnings.js
test/configCases/css/conflicting-order/warnings.js
"use strict"; module.exports = [ [/Conflicting order between css \.\/b\.css and css \.\/c\.css/] ];
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/conflicting-order/index.js
test/configCases/css/conflicting-order/index.js
import fs from "fs"; import path from "path"; it("should lead to conflicting order warning", done => { __non_webpack_require__("./lazy4_js.bundle0.js"); Promise.all([ import("./lazy1.css"), import("./lazy2.css"), import("./lazy3.css"), import("./lazy4.js") ]).then(() => { try { const matches = fs ....
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/conflicting-order/test.config.js
test/configCases/css/conflicting-order/test.config.js
"use strict"; module.exports = { findBundle() { return ["css.bundle0.js", "lazy4_js.bundle0.js", "bundle0.js"]; } };
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false
webpack/webpack
https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/conflicting-order/webpack.config.js
test/configCases/css/conflicting-order/webpack.config.js
"use strict"; /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", mode: "development", experiments: { css: true }, optimization: { splitChunks: { cacheGroups: { css: { type: "css/auto", enforce: true, name: "css" } } } }, externalsPresets: { ...
javascript
MIT
d2a124db548cad6e84dffd93b502a4e74bfe2b6a
2026-01-04T14:56:49.698101Z
false