Skip to content

Commit 4eb0089

Browse files
authored
chore: remove stale ts-node config remnants (#13698)
1 parent f29c8da commit 4eb0089

7 files changed

Lines changed: 2 additions & 87 deletions

File tree

packages/rspack-cli/tests/build/config/config.test.ts

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -337,46 +337,4 @@ describe('rspack cli', () => {
337337
).resolves.toMatch(/Main monorepo file/);
338338
});
339339
});
340-
341-
describe('should keep builtin config loader semantics', () => {
342-
const cwd = resolve(__dirname, './ts-node-register');
343-
it("builtin config loader can't handle declare const enum", async () => {
344-
const { exitCode, stdout, stderr } = await run(
345-
cwd,
346-
['-c', 'rspack.config.ts'],
347-
{
348-
nodeOptions: [],
349-
},
350-
);
351-
expect(stdout).toBeFalsy();
352-
expect(stderr).toBeTruthy();
353-
expect(stderr).toMatch(/ReferenceError: JSB is not defined/);
354-
expect(exitCode).toBe(1);
355-
});
356-
});
357-
358-
// describe("loose-unrecognized-keys (default)", () => {
359-
// const cwd = resolve(__dirname, "./loose-unrecognized-keys");
360-
// it.concurrent("should report unrecognized keys", async () => {
361-
// const { stderr, exitCode } = await run(cwd, []);
362-
// expect(stderr).toMatchInlineSnapshot(`
363-
// "Configuration error:
364-
// - Unrecognized key(s) in object: '_additionalProperty'"
365-
// `);
366-
// expect(stderr).not.toMatch("ValidationError");
367-
// expect(exitCode).toBe(0);
368-
// });
369-
// });
370-
371-
// describe("loose-unrecognized-keys 2 (default)", () => {
372-
// const cwd = resolve(__dirname, "./loose-unrecognized-keys-other-error");
373-
// it.concurrent("should fail on other error", async () => {
374-
// const { stderr, exitCode } = await run(cwd, []);
375-
// expect(stderr).toMatch("ValidationError");
376-
// expect(stderr).toMatch(
377-
// `The provided value "./context" must be an absolute path. at \"context"`
378-
// );
379-
// expect(exitCode).toBe(1);
380-
// });
381-
// });
382340
});

packages/rspack-cli/tests/build/config/ts-node-register/main.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/rspack-cli/tests/build/config/ts-node-register/rspack.config.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/rspack-cli/tests/build/config/ts-node-register/tsconfig.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/rspack/tsconfig.browser.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,5 @@
1212
"declarationMap": false
1313
},
1414
"include": ["src", "src/**/*.json"],
15-
"exclude": ["src/container/default.runtime.js"],
16-
"ts-node": {
17-
"transpileOnly": true
18-
}
15+
"exclude": ["src/container/default.runtime.js"]
1916
}

tests/bench/fixtures/ts-react/tsconfig.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,5 @@
1111
"useDefineForClassFields": true,
1212
"allowImportingTsExtensions": true
1313
},
14-
"include": ["src"],
15-
"ts-node": {
16-
"compilerOptions": {
17-
"module": "CommonJS"
18-
}
19-
}
14+
"include": ["src"]
2015
}

tests/e2e/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,5 @@
88
"@/*": ["./*"]
99
},
1010
"checkJs": false
11-
},
12-
"ts-node": {
13-
"transpileOnly": true
1411
}
1512
}

0 commit comments

Comments
 (0)