Skip to content

Commit c5efdff

Browse files
ci: debug
1 parent b2ee7d1 commit c5efdff

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/webpack-cli/src/webpack-cli.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,6 +2199,11 @@ class WebpackCLI {
21992199
throw err;
22002200
}
22012201

2202+
if (process.env.WEBPACK_DEBUG_CONFIGURATION_LOADING) {
2203+
this.logger.error(loadingError);
2204+
this.logger.error(err);
2205+
}
2206+
22022207
throw new ConfigurationLoadingError([loadingError, err]);
22032208
}
22042209
}

test/build/config-format/typescript-cjs/typescript.test.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,12 @@ describe("typescript commonjs configuration", () => {
7676
expect(existsSync(resolve(__dirname, "dist/foo.bundle.js"))).toBeTruthy();
7777
});
7878

79-
it("should support typescript commonjs configuration (using `interpret`)", async () => {
79+
it.only("should support typescript commonjs configuration (using `interpret`)", async () => {
8080
const [major] = process.versions.node.split(".").map(Number);
8181
const { exitCode, stderr, stdout } = await run(__dirname, ["-c", "./webpack.config.ts"], {
82+
env: {
83+
WEBPACK_DEBUG_CONFIGURATION_LOADING: true,
84+
},
8285
nodeOptions: [
8386
// Disable typescript strip types for tests
8487
...(major >= 22 ? ["--no-experimental-strip-types"] : []),

0 commit comments

Comments
 (0)