Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
32ac758
chore: remove unused babel devDependencies
johnnyreilly Nov 7, 2026
dfe31f6
chore: remove lint-staged
johnnyreilly Nov 7, 2026
eca9f30
chore: restore babel-polyfill and babel-preset-es2016
johnnyreilly Nov 7, 2026
f3c7848
chore: replace semver with a small version-compare helper
johnnyreilly Nov 7, 2026
64a4623
chore: replace glob with a recursive readdir helper
johnnyreilly Nov 7, 2026
9a429d3
chore: remove markdown-toc
johnnyreilly Nov 7, 2026
a72fa95
chore: upgrade mocha from 6 to 12
johnnyreilly Nov 7, 2026
5b79d3a
chore: remove webpack-cli
johnnyreilly Nov 7, 2026
948430e
chore: remove the Dockerfile and docker scripts
johnnyreilly Nov 7, 2026
055fc14
chore: remove stale devcontainer
johnnyreilly Nov 7, 2026
e858f3a
chore: address review feedback on the test helpers
johnnyreilly Nov 7, 2026
fb97b91
chore: drop the .devcontainer entry from .npmignore
johnnyreilly Nov 7, 2026
9d7b0bd
chore: respect the config's stats setting in run-webpack.js
johnnyreilly Nov 7, 2026
ff1d8a8
chore: remove the unused --extra-option test argument
johnnyreilly Nov 7, 2026
74d8dbd
chore: var to const
johnnyreilly Nov 7, 2026
58ccbcd
chore: use --test-to-run=<name> in the allowed mocha commands
johnnyreilly Nov 7, 2026
39b155c
chore: use arrow functions for callbacks in create-and-execute-test.js
johnnyreilly Nov 7, 2026
00bab3b
chore: add type-check scripts for the test harnesses
johnnyreilly Nov 7, 2026
0f2b2b5
ci: type-check the test harnesses in the lint workflow
johnnyreilly Nov 7, 2026
01d4201
chore: build src with module node20
johnnyreilly Nov 7, 2026
1374066
chore: share a tsconfig base between the test harness checks
johnnyreilly Nov 7, 2026
a5b6c73
ci: type-check the benchmark tests
johnnyreilly Nov 7, 2026
e9587b9
chore: remove @ts-ignore comments from the comparison test harness
johnnyreilly Nov 7, 2026
87a8d08
chore: upgrade deps
johnnyreilly Nov 7, 2026
f1877c3
fix: harden the comparison test harness after review
johnnyreilly Nov 7, 2026
1ab6c32
fix: resolve configs in run-webpack.js the way webpack-cli does
johnnyreilly Nov 7, 2026
d05b6d8
docs: list the check: scripts in AGENTS.md
johnnyreilly Nov 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"Bash(grep *)",
"Read(//usr/local/lib/node_modules/**)",
"Bash(rm -rf .test)",
"Bash(FORCE_COLOR=1 node node_modules/mocha/bin/_mocha test/comparison-tests/create-and-execute-test.js --reporter spec --test-to-run * --timeout 25000)",
"Bash(node node_modules/mocha/bin/_mocha test/comparison-tests/create-and-execute-test.js --reporter spec --test-to-run * --timeout 25000)",
"Bash(FORCE_COLOR=1 node node_modules/mocha/bin/mocha.js test/comparison-tests/create-and-execute-test.js --reporter spec --test-to-run=* --timeout 25000)",
"Bash(node node_modules/mocha/bin/mocha.js test/comparison-tests/create-and-execute-test.js --reporter spec --test-to-run=* --timeout 25000)",
"Bash(echo \"PID $!\")"
]
}
Expand Down
40 changes: 0 additions & 40 deletions .devcontainer/Dockerfile

This file was deleted.

32 changes: 0 additions & 32 deletions .devcontainer/devcontainer.json

This file was deleted.

6 changes: 0 additions & 6 deletions .dockerignore

This file was deleted.

9 changes: 9 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ jobs:

- name: lint
run: npm run lint

- name: type-check comparison test harness
run: npm run check:comparison-tests

- name: type-check execution test harness
run: npm run check:execution-tests

- name: type-check benchmark tests
run: npm run check:benchmark-tests
3 changes: 0 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
.devcontainer
.vscode
.test
examples
test
src
.pnpm-store
.github
.dockerignore
.gitattributes
.travis.yml
appveyor.yml
CONTRIBUTING.md
Dockerfile
HISTORY.md
RELEASING.md
*.js.map
17 changes: 11 additions & 6 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ Keep comments in `src/` sparse: only the non-obvious _why_ (a Windows-only path
Note: test scripts clean test directories first using `git clean -xfd`.

```bash
npm run build # compile src/ → dist/ (tsc --project "./src")
npm run lint # type-check + oxlint (no separate typecheck script)
npm test # full test suite (comparison + execution tests)
npm run comparison-tests # fast subset: compare webpack output against snapshots
npm run execution-tests # run compiled code via Karma/Jasmine
npm run benchmark # compare this build's compile speed against another ts-loader checkout
npm run build # compile src/ → dist/ (tsc --project "./src")
npm run lint # type-check src/ + oxlint
npm run check:comparison-tests # type-check the comparison test harness scripts
npm run check:execution-tests # type-check the execution test harness scripts (and test/run-tests.js)
npm run check:benchmark-tests # type-check the benchmark scripts
npm test # full test suite (comparison + execution tests)
npm run comparison-tests # fast subset: compare webpack output against snapshots
npm run execution-tests # run compiled code via Karma/Jasmine
npm run benchmark # compare this build's compile speed against another ts-loader checkout
```

The lint workflow runs `npm run lint` and all three `check:` scripts.

To run a single test:

```bash
Expand Down
41 changes: 0 additions & 41 deletions Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
- [Configuration](#configuration)
- [`devtool` / sourcemaps](#devtool--sourcemaps)
- [Code Splitting and Loading Other Resources](#code-splitting-and-loading-other-resources)
- [Declarations (.d.ts)](#declaration-files-dts)
- [Declaration Files (.d.ts)](#declaration-files-dts)
- [Failing the build on TypeScript compilation error](#failing-the-build-on-typescript-compilation-error)
- [`paths` module resolution](#paths-module-resolution)
- [Options](#options)
Expand Down
6 changes: 1 addition & 5 deletions knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,20 @@
"src/**/*.ts"
],
"ignoreDependencies": [
"babel",
"babel-core",
"babel-loader",
"babel-polyfill",
"babel-preset-es2015",
"babel-preset-es2016",
"babel-preset-react",
"glob",
"jasmine-core",
"karma",
"karma-chrome-launcher",
"karma-jasmine",
"karma-mocha-reporter",
"karma-sourcemap-loader",
"karma-webpack",
"lint-staged",
"loader-utils",
"mocha",
"webpack-cli"
"mocha"
]
}
Loading
Loading