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/import-module/stylesheet.js | test/configCases/css/import-module/stylesheet.js | import { green, red } from './colors.js';
export default `body { background: ${red}; color: ${green}; }`;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import-module/colors.js | test/configCases/css/import-module/colors.js | export const red = '#f00';
export const green = '#0f0'; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import-module/a-pitching-loader.js | test/configCases/css/import-module/a-pitching-loader.js | /** @type {import("../../../../").PitchLoaderDefinitionFunction} */
exports.pitch = async function (remaining) {
const result = await this.importModule(
this.resourcePath + '.webpack[javascript/auto]' + '!=!' + remaining, {
publicPath: ''
});
return result.default || result;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import-module/index.js | test/configCases/css/import-module/index.js | import stylesheet from './stylesheet.js';
it("should compile", () => {
expect(stylesheet).toBe("body { background: #f00; color: #0f0; }");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import-module/webpack.config.js | test/configCases/css/import-module/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [new webpack.HotModuleReplacementPlugin()],
target: "web",
mode: "development",
module: {
rules: [
{
test: /stylesheet\.js$/i,
use: ["./a-pitching-loader.js"],
ty... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/escape-unescape/index.js | test/configCases/css/escape-unescape/index.js | import * as styles from "./style.modules.css";
it(`should work with URLs in CSS`, 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('css');
exp... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/escape-unescape/test.config.js | test/configCases/css/escape-unescape/test.config.js | "use strict";
module.exports = {
findBundle() {
return ["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/escape-unescape/webpack.config.js | test/configCases/css/escape-unescape/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
target: "web",
mode: "development",
experiments: {
css: true
}
},
{
target: "web",
mode: "production",
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-reexport/index.js | test/configCases/css/css-order-reexport/index.js | import { component, dependency, dependency2 } from "./component";
component(dependency, dependency2);
// 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... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order-reexport/component.js | test/configCases/css/css-order-reexport/component.js | export { dependency, dependency2 } from "./dependency";
export function component(...args) {
return args;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order-reexport/webpack.config.js | test/configCases/css/css-order-reexport/webpack.config.js | "use strict";
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
/** @type {import("../../../../types").Configuration} */
module.exports = {
devtool: false,
target: "web",
entry: "./index.js",
mode: "development",
optimization: {
concatenateModules: false
},
module: {
rules: [
{
test: ... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order-reexport/dependency/dependency.js | test/configCases/css/css-order-reexport/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-order-reexport/dependency/index.js | test/configCases/css/css-order-reexport/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-order-reexport/dependency/dependency2.js | test/configCases/css/css-order-reexport/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/runtime-document-head-get-computed-style/index.js | test/configCases/css/runtime-document-head-get-computed-style/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-document-head-get-computed-style/test.config.js | test/configCases/css/runtime-document-head-get-computed-style/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/runtime-document-head-get-computed-style/webpack.config.js | test/configCases/css/runtime-document-head-get-computed-style/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/contenthash/index.js | test/configCases/css/contenthash/index.js | import * as style from "./style.css";
it("should work with js", done => {
import('./async.js').then(x => {
expect(x.name).toBe("async")
done();
}, done);
});
it("should work with css", done => {
expect(style).toEqual({});
const computedStyle = getComputedStyle(document.body);
expect(computedStyle.getProper... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/contenthash/test.config.js | test/configCases/css/contenthash/test.config.js | "use strict";
const findOutputFiles = require("../../../helpers/findOutputFiles");
module.exports = {
findBundle(i, options) {
const async1 = findOutputFiles(options, /^async.async_js.+.js/)[0];
const async2 = findOutputFiles(options, /^async.async_css.+.js/)[0];
const bundle = findOutputFiles(options, /^bundl... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/contenthash/async.js | test/configCases/css/contenthash/async.js | export const name = 'async';
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/contenthash/webpack.config.js | test/configCases/css/contenthash/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web",
mode: "development",
output: {
filename: "bundle.[name].[contenthash].js",
cssFilename: "bundle.[name].[contenthash].css",
chunkFilename: "async.[name].[contenthash].js",
cssChunkFilename: "async.[name].[cont... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/prefer-relative/index.js | test/configCases/css/prefer-relative/index.js | import * as styles1 from "./style.css";
import * as styles2 from "./style.modules.css";
it("should prefer relative", () => {
expect(styles1).toEqual({});
expect(styles2).toEqual(nsObj({
"style-module": "style_modules_css-style-module",
}));
const style = getComputedStyle(document.body);
expect(style.getProper... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/prefer-relative/test.config.js | test/configCases/css/prefer-relative/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/prefer-relative/webpack.config.js | test/configCases/css/prefer-relative/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/build-http/index.js | test/configCases/css/build-http/index.js | import "./style.css";
it(`should work with URLs in CSS`, 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/build-http/test.config.js | test/configCases/css/build-http/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/build-http/webpack.config.js | test/configCases/css/build-http/webpack.config.js | "use strict";
const path = require("path");
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web",
mode: "development",
experiments: {
buildHttp: {
allowedUris: [() => true],
lockfileLocation: path.resolve(__dirname, "./lock-files/lock.json"),
cacheLocation: path.resolve(_... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-types/index.js | test/configCases/css/css-types/index.js | import './style.css';
import * as style1 from './style1.local.css'
import * as style2 from './style2.global.css'
import './style3.auto.css';
import * as style3 from './style4.modules.css'
it("should not parse css modules in type: css", () => {
const style = getComputedStyle(document.body);
expect(style.getProp... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-types/test.config.js | test/configCases/css/css-types/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/css-types/webpack.config.js | test/configCases/css/css-types/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web",
mode: "development",
module: {
rules: [
{
test: /\.css$/i,
type: "css"
},
{
test: /\.local\.css$/i,
type: "css/module"
},
{
test: /\.global\.css$/i,
type: "css/global"
},
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/large/index.js | test/configCases/css/large/index.js | const prod = process.env.NODE_ENV === "production";
it("should allow to create css modules", done => {
prod
? __non_webpack_require__("./961.bundle1.js")
: __non_webpack_require__("./use-style_js.bundle0.js");
import("./use-style.js").then(({ default: x }) => {
try {
expect(x).toMatchSnapshot(prod ? "prod" ... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/large/webpack.config.js | test/configCases/css/large/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
target: "web",
mode: "development",
output: {
uniqueName: "my-app"
},
experiments: {
css: true
}
},
{
target: "web",
mode: "production",
performance: false,
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/large/use-style.js | test/configCases/css/large/use-style.js | import * as style from "./tailwind.module.css";
export default {
placeholder: style["placeholder-gray-700"]
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import-at-middle/warnings.js | test/configCases/css/import-at-middle/warnings.js | "use strict";
module.exports = [
/Any '@import' rules must precede all other rules/,
/Any '@import' rules must precede all other rules/,
/Any '@import' rules must precede all other rules/,
/Any '@import' rules must precede all other rules/
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import-at-middle/index.js | test/configCases/css/import-at-middle/index.js | import "./style.css";
it("should compile with warnings", done => {
const style = getComputedStyle(document.body);
expect(style.getPropertyValue("background")).toBe(" blue");
expect(style.getPropertyValue("color")).toBe(" green");
done();
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import-at-middle/test.config.js | test/configCases/css/import-at-middle/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/import-at-middle/webpack.config.js | test/configCases/css/import-at-middle/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/import-css-stylesheet/index.js | test/configCases/css/import-css-stylesheet/index.js | import sheet from "./basic.css" with { type: "css" };
import sheetAssert from "./basic.css" assert { type: "css" };
it("should import CSS as CSSStyleSheet with 'with' syntax", () => {
expect(sheet).toBeInstanceOf(CSSStyleSheet);
expect(sheet.cssRules.length).toBeGreaterThan(0);
// Check that the CSS content is co... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import-css-stylesheet/webpack.config.js | test/configCases/css/import-css-stylesheet/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
devtool: false,
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/url-and-asset-module-filename/index.js | test/configCases/css/url-and-asset-module-filename/index.js | it(`should generate correct url public path with css filename`, done => {
const h1 = document.createElement('h1');
document.body.appendChild(h1);
const h2 = document.createElement('h2');
document.body.appendChild(h1);
const h3 = document.createElement('h3');
document.body.appendChild(h1);
import("./index.css").t... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/url-and-asset-module-filename/test.config.js | test/configCases/css/url-and-asset-module-filename/test.config.js | "use strict";
module.exports = {
findBundle(i) {
return [`index_css.bundle${i}.js`, `bundle${i}.js`];
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/url-and-asset-module-filename/webpack.config.js | test/configCases/css/url-and-asset-module-filename/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
const common = {
target: "web",
mode: "development",
devtool: false,
experiments: {
css: true
}
};
/** @type {import("../../../../").Configuration} */
module.exports = [
{
...common,
output: {
publicPath: "auto",
cssChunkFilename: "bu... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/webpack-ignore/warnings.js | test/configCases/css/webpack-ignore/warnings.js | "use strict";
module.exports = [
/Compilation error while processing magic comment\(-s\): \/\*\*\*\*webpackIgnore: false\*\*\*\//,
/Compilation error while processing magic comment\(-s\): \/\* {3}\* {3}\* {3}\* {3}webpackIgnore: {3}false {3}\* {3}\* {3}\*\//,
/`webpackIgnore` expected a boolean, but received: 1\./,... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/webpack-ignore/index.js | test/configCases/css/webpack-ignore/index.js | import "./style.css";
it("should compile", done => {
const links = document.getElementsByTagName("link");
const css = links[1].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/webpack-ignore/test.config.js | test/configCases/css/webpack-ignore/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/webpack-ignore/webpack.config.js | test/configCases/css/webpack-ignore/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/pathinfo/index.js | test/configCases/css/pathinfo/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/pathinfo/test.config.js | test/configCases/css/pathinfo/test.config.js | "use strict";
const fs = require("fs");
const path = require("path");
module.exports = {
moduleScope(scope) {
const link = scope.window.document.createElement("link");
link.rel = "stylesheet";
link.href = "bundle0.css";
scope.window.document.head.appendChild(link);
},
findBundle(i, options) {
const sourc... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/pathinfo/webpack.config.js | test/configCases/css/pathinfo/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web",
mode: "development",
devtool: false,
output: {
pathinfo: true,
cssChunkFilename: "[name].[chunkhash].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/no-extra-runtime-only-initial/index.js | test/configCases/css/no-extra-runtime-only-initial/index.js | import { exportName } from "./style.modules.css";
import { div } from "./module.js";
it("should don't generate extra runtime modules", () => {
expect(exportName).toBeDefined();
expect(div(2, 2)).toBe(1);
expect(__STATS__.modules.length).toBe(5);
});
| 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-only-initial/webpack.config.js | test/configCases/css/no-extra-runtime-only-initial/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
devtool: false,
mode: "production",
target: "web",
optimization: {
minimize: false
},
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/no-extra-runtime-only-initial/module.js | test/configCases/css/no-extra-runtime-only-initial/module.js | export function div(a, b) {
return a / b;
}
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/named-exports-parser-options/index.js | test/configCases/css/named-exports-parser-options/index.js | import * as style1 from "./style.module.css"
import style2 from "./style.module.css?default"
import * as style3 from "./style.module.css?named"
it("should able to import with different namedExports", () => {
expect(style1).toEqual(nsObj({ class: 'style_module_css-class' }));
expect(style2).toEqual(nsObj({ class: 'st... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/named-exports-parser-options/webpack.config.js | test/configCases/css/named-exports-parser-options/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "node",
mode: "development",
module: {
rules: [
{
resourceQuery: /\?default/,
parser: {
namedExports: false
},
type: "css/module"
},
{
resourceQuery: /\?named/,
parser: {
namedEx... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/prefer-relative-css-import/index.js | test/configCases/css/prefer-relative-css-import/index.js | import * as styles1 from "./style.less";
import * as styles2 from "./style.modules.less";
it("should prefer relative", () => {
expect(styles1).toEqual({});
expect(styles2).toEqual(nsObj({
"style-module": "style_modules_less-style-module",
}));
const style = getComputedStyle(document.body);
expect(style.getPro... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/prefer-relative-css-import/test.config.js | test/configCases/css/prefer-relative-css-import/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/prefer-relative-css-import/webpack.config.js | test/configCases/css/prefer-relative-css-import/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web",
mode: "development",
module: {
rules: [
{
test: /\.less$/,
use: "less-loader",
type: "css/auto"
}
]
},
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-auto/colors.js | test/configCases/css/css-auto/colors.js | export const red = '#f00';
export const green = '#0f0'; | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-auto/index.js | test/configCases/css/css-auto/index.js | import "./global.less";
import * as style1 from "./style1.module.less";
import * as style2 from "./style2.modules.less";
import * as style3 from "./style3.module.less!=!./loader.js!./style3.module.js";
import * as style4 from "./style4.module.less!=!./loader.js!./style4.js";
import * as style5 from "./style5.module.css... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-auto/loader.js | test/configCases/css/css-auto/loader.js | /** @type {import("../../../../").PitchLoaderDefinitionFunction} */
exports.pitch = async function (remaining) {
const result = await this.importModule(
this.resourcePath + '.webpack[javascript/auto]' + '!=!' + remaining, {
publicPath: ''
});
return result.default || result;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-auto/test.config.js | test/configCases/css/css-auto/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/css-auto/webpack.config.js | test/configCases/css/css-auto/webpack.config.js | "use strict";
/** @type {import("../../../../types").Configuration} */
module.exports = {
target: "web",
mode: "development",
experiments: {
css: true
},
module: {
rules: [
{
test: /\.less$/,
use: "less-loader",
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-auto/style4.js | test/configCases/css/css-auto/style4.js | import { green, red } from './colors.js';
export default `
.class { color: ${green}; }
body { background: ${red}; }
`;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-auto/style3.module.js | test/configCases/css/css-auto/style3.module.js | import { green, red } from './colors.js';
export default `
.class { color: ${green}; }
body { background: ${red}; }
`;
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import/warnings.js | test/configCases/css/import/warnings.js | "use strict";
module.exports = [
/Expected URL in '@import nourl\(test\.css\);'/,
/Expected URL in '@import ;'/,
/Expected URL in '@import foo-bar;'/,
/Expected URL in '@import layer\(super\.foo\) "\.\/style2\.css\?warning=1" supports\(display: flex\) screen and \(min-width: 400px\);'/,
/Expected URL in '@import ... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import/index.js | test/configCases/css/import/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/import/test.config.js | test/configCases/css/import/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/import/some-file.js | test/configCases/css/import/some-file.js | function doNotImportCss() {
return 'doNotImportCss';
} | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import/webpack.config.js | test/configCases/css/import/webpack.config.js | "use strict";
const webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = [
{
target: "web",
mode: "development",
experiments: {
css: true
},
resolve: {
alias: {
"/alias.css": false
},
byDependency: {
"css-import": {
conditionNames:... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import/string-loader.js | test/configCases/css/import/string-loader.js | /** @type {import("../../../../").LoaderDefinition} */
module.exports = function loader(content) {
return content + `.using-loader { color: red; }`;
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import/errors.js | test/configCases/css/import/errors.js | "use strict";
module.exports = [
/Can't resolve 'non-exported-css'/,
/Can't resolve '\.\/directory'/,
/Can't resolve 'condition-names-subpath\/non-valid\.css'/,
/Can't resolve '\.\/no-extension-in-request'/
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import/node_modules/condition-names-subpath-extra/custom.js | test/configCases/css/import/node_modules/condition-names-subpath-extra/custom.js | export default "should not be used";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import/node_modules/condition-names-subpath/custom.js | test/configCases/css/import/node_modules/condition-names-subpath/custom.js | export default "should not be used";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import/node_modules/package-with-exports/index.js | test/configCases/css/import/node_modules/package-with-exports/index.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import/node_modules/js-import/index.js | test/configCases/css/import/node_modules/js-import/index.js | function someCode() {
console.log('some code');
} | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import/node_modules/condition-names-webpack-js/webpack.js | test/configCases/css/import/node_modules/condition-names-webpack-js/webpack.js | export default "webpack";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/pseudo-export/index.js | test/configCases/css/pseudo-export/index.js | it("should allow to dynamic import a css module", done => {
__non_webpack_require__("./style_module_css.bundle0.js");
import("./style.module.css").then(x => {
try {
expect(x).toEqual(
nsObj({
a: "a",
abc: "a b c",
comments: "abc/****/ /* hello world *//****/ def",
whitespace: "abc\n\t... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/pseudo-export/imported.js | test/configCases/css/pseudo-export/imported.js | import * as style from "./style.module.css?imported";
export default Object(style);
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/pseudo-export/reexported.js | test/configCases/css/pseudo-export/reexported.js | export * from "./style.module.css?reexported";
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/pseudo-export/webpack.config.js | test/configCases/css/pseudo-export/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/import-different-case/index.js | test/configCases/css/import-different-case/index.js | import * as style from "./style.css";
it("should compile and load style on demand", () => {
expect(style).toEqual({});
const computedStyle = getComputedStyle(document.body);
expect(computedStyle.getPropertyValue("background")).toBe(" red");
expect(computedStyle.getPropertyValue("margin")).toBe(" 10px");
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/import-different-case/test.config.js | test/configCases/css/import-different-case/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/import-different-case/webpack.config.js | test/configCases/css/import-different-case/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-order2/index.js | test/configCases/css/css-order2/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-order2/component.js | test/configCases/css/css-order2/component.js | import { dependency, dependency2 } from "./dependency";
export function component() {
dependency();
dependency2();
} | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/css/css-order2/webpack.config.js | test/configCases/css/css-order2/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-order2/dependency/dependency.js | test/configCases/css/css-order2/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-order2/dependency/index.js | test/configCases/css/css-order2/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-order2/dependency/dependency2.js | test/configCases/css/css-order2/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/compiletime/warn-not-found/stub.js | test/configCases/compiletime/warn-not-found/stub.js | const foo = 'bar'
export default foo
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/compiletime/warn-not-found/warnings.js | test/configCases/compiletime/warn-not-found/warnings.js | "use strict";
module.exports = [/not found/];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/compiletime/warn-not-found/index.js | test/configCases/compiletime/warn-not-found/index.js | import { NotHere } from './stub'
it('should do nothing', function() {
if (typeof NotHere !== 'undefined') {
throw new Error('This shouldn\'t be here!');
}
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/compiletime/warn-not-found/webpack.config.js | test/configCases/compiletime/warn-not-found/webpack.config.js | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false | |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/compiletime/error-not-found/stub.js | test/configCases/compiletime/error-not-found/stub.js | const foo = 'bar'
export default foo
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/compiletime/error-not-found/index.js | test/configCases/compiletime/error-not-found/index.js | import { NotHere } from './stub'
it('should do nothing', function() {
if (typeof NotHere !== 'undefined') {
throw new Error('This shouldn\'t be here!');
}
});
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/compiletime/error-not-found/webpack.config.js | test/configCases/compiletime/error-not-found/webpack.config.js | "use strict";
/** @type {import("../../../../").Configuration} */
module.exports = {
module: {
strictExportPresence: true
}
};
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/compiletime/error-not-found/errors.js | test/configCases/compiletime/error-not-found/errors.js | "use strict";
module.exports = [/not found/];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/compiletime/exports-presence/stub.js | test/configCases/compiletime/exports-presence/stub.js | const foo = 'bar'
export default foo
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/compiletime/exports-presence/warnings.js | test/configCases/compiletime/exports-presence/warnings.js | "use strict";
module.exports = [
{
moduleName: /bbb/,
message: /NotHere.+not found/
},
{
moduleName: /bbb/,
message: /NoNo.+not found/
},
{
moduleName: /ddd/,
message: /NoNo.+not found/
}
];
| javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
webpack/webpack | https://github.com/webpack/webpack/blob/d2a124db548cad6e84dffd93b502a4e74bfe2b6a/test/configCases/compiletime/exports-presence/index.js | test/configCases/compiletime/exports-presence/index.js | import { NotHere as aaa } from "./aaa/index.js";
import { NotHere as bbb } from "./bbb/index.js";
import { NotHere as ccc } from "./ccc/index.js";
import { NotHere as ddd } from "./ddd/index.js";
it("should do nothing", () => {
expect(aaa).toBe(undefined);
expect(bbb).toBe(undefined);
expect(ccc).toBe(undefined);
... | javascript | MIT | d2a124db548cad6e84dffd93b502a4e74bfe2b6a | 2026-01-04T14:56:49.698101Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.