Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
strategy:
matrix:
node: [24, 22]
ts: [5.0.4, 5.1.3, 5.2.2, 5.3.3, 5.4.2, 5.5.3, 5.6.2, 5.7.2, 5.8.2, 5.9.2] # next excluded for now
ts: [5.0.4, 5.1.3, 5.2.2, 5.3.3, 5.4.2, 5.5.3, 5.6.2, 5.7.2, 5.8.2, 5.9.2, 6.0.2] # next excluded for now
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
Expand All @@ -76,7 +76,7 @@ jobs:
strategy:
matrix:
node: [24, 22]
ts: [5.0.4, 5.1.3, 5.2.2, 5.3.3, 5.4.2, 5.5.3, 5.6.2, 5.7.2, 5.8.2, 5.9.2] # next excluded for now
ts: [5.0.4, 5.1.3, 5.2.2, 5.3.3, 5.4.2, 5.5.3, 5.6.2, 5.7.2, 5.8.2, 5.9.2, 6.0.2] # next excluded for now
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ bundle.js
npm-debug.log
/.test/
/test/execution-tests/**/typings
!/test/**/expectedOutput-*/**
!/test/**/expectedOutput/**
!/test/**/expectedOutput-transpile/**
/**/node_modules
/dist
/test/execution-tests/**/dist
Expand Down
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"github.copilot.nextEditSuggestions.enabled": true,
"chat.tools.terminal.autoApprove": {
"git blame": true,
"sed": true,
"yarn": true,
}
}
}
14 changes: 0 additions & 14 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,6 @@ yarn comparison-tests -- --save-output --single-test <name> # regenerate o

> Note: test name casing must be exact when using `--single-test`.

### Seeding snapshots for a new TypeScript version

When adding support for a new TypeScript version, run:

```bash
yarn comparison-tests-generate
```

This does two things:
1. `git clean -xfd test/comparison-tests` — wipes all untracked/generated files in the test directory.
2. Runs `test/comparison-tests/stub-new-version.js`, which copies every `expectedOutput-{OLD}/` and `expectedOutput-transpile-{OLD}/` folder to the corresponding `expectedOutput-{NEW}/` counterpart across all test sub-directories.

The `OLD_VERSION` and `NEW_VERSION` constants at the top of `stub-new-version.js` must be updated manually before running this script each time a new TypeScript version is introduced. After running, review and commit the seeded snapshots, then use `--save-output` to correct any that differ from the new version's actual output.

## Execution tests (`test/execution-tests/`)

Each sub-directory is a mini webpack project with a Karma/Jasmine test suite. The harness compiles the project and **runs the compiled code** — useful for asserting correct runtime behaviour. These are matrix-tested in CI across Node 20/22 and TypeScript 5.x versions.
Expand Down
2 changes: 1 addition & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

`ts-loader` was started by [James Brantly](http://www.jbrantly.com/) back in January 2015. He created the initial codebase, wrote the comparison testpack and merrily maintained it until it reached v0.8.2.

At that point [John Reilly](https://blog.johnnyreilly.com/) started maintaining ts-loader. [On October 16th 2016 to be exact](https://twitter.com/jbrantly/status/785931975064444928). The full story of how that came to be can be read here: https://blog.johnnyreilly.com/2016/11/but-you-cant-die-i-love-you-ts-loader.html
At that point [John Reilly](https://johnnyreilly.com/) started maintaining ts-loader. [On October 16th 2016 to be exact](https://twitter.com/jbrantly/status/785931975064444928). The full story of how that came to be can be read here: https://johnnyreilly.com/but-you-cant-die-i-love-you-ts-loader

Since that time, John (who wrote this and finds it peculiar to refer to himself in the third person) has continued maintaining ts-loader. He appreciates any and all people that contribute. Who knows, maybe one day the mantle will be passed on again and someone else will step up and take ts-loader forwards. Who knows? It could be you ;-)
25 changes: 0 additions & 25 deletions RELEASING.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/fork-ts-checker-webpack-plugin/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "es6",
"lib": ["es6", "dom"],
"module": "esnext",
"moduleResolution": "node",
Expand Down
2 changes: 1 addition & 1 deletion examples/project-references-example/tsconfig-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"target": "es5",
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"build": "tsc --version && tsc --project \"./src\"",
"lint": "tsc --project \"./src\" --noEmit && eslint -c .eslintrc.js --ext .ts ./src",
"comparison-tests": "git clean -xfd test/comparison-tests && npm link --legacy-peer-deps ./test/comparison-tests/testLib && node test/comparison-tests/run-tests.js",
"comparison-tests-generate": "git clean -xfd test/comparison-tests && node test/comparison-tests/stub-new-version.js",
"execution-tests": "git clean -xfd test/execution-tests && node test/execution-tests/run-tests.js",
"test": "git clean -xfd test/comparison-tests && git clean -xfd test/execution-tests && node test/run-tests.js",
"clean": "git clean -xfd test/comparison-tests && git clean -xfd test/execution-tests",
Expand Down Expand Up @@ -94,7 +93,7 @@
"mocha": "^6.0.0",
"prettier": "^2.0.5",
"rimraf": "^2.6.2",
"typescript": "^5.9.2",
"typescript": "^6.0.2",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
},
Expand Down
3 changes: 2 additions & 1 deletion src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"compilerOptions": {
"lib": ["es2018"],
"types": ["node"],
"target": "es2018",
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strict": true,
"module": "commonjs",
"moduleResolution": "node",
"moduleResolution": "bundler",
"declaration": true,
"outDir": "../dist",
"declarationDir": "../dist",
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Chalk } from 'chalk';
import * as fs from 'fs';
import * as micromatch from 'micromatch';
import micromatch from 'micromatch';
import * as path from 'path';
import * as webpack from 'webpack';
import type * as typescript from 'typescript';
Expand Down
67 changes: 0 additions & 67 deletions test/comparison-tests/aliasResolution/expectedOutput-5.7/bundle.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading