Skip to content

Commit 29c8323

Browse files
chore: update documentation to reflect changes in --experimental-strip-types
1 parent 896bd90 commit 29c8323

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ It is possible to use Amaro as an external loader to execute TypeScript files.
3232
This allows the installed Amaro to override the Amaro version used by Node.js.
3333
In order to use Amaro as an external loader, type stripping needs to be enabled.
3434

35-
In node v23 and later you can omit the `--experimental-strip-types` flag, as it is enabled by default.
36-
3735
```bash
38-
node --experimental-strip-types --import="amaro/strip" file.ts
36+
node --import="amaro/strip" file.ts
3937
```
4038

39+
> In node v22.18.0 and later you can omit the `--experimental-strip-types` flag, as it is enabled by default.
40+
4141
Enabling TypeScript feature transformation:
4242

4343
```bash

test/loader.test.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const { match, doesNotMatch, strictEqual } = require("node:assert");
44

55
test("should work as a loader", async () => {
66
const result = await spawnPromisified(process.execPath, [
7-
"--experimental-strip-types",
87
"--no-warnings",
98
"--import=./dist/register-strip.mjs",
109
fixturesPath("hello.ts"),
@@ -17,7 +16,6 @@ test("should work as a loader", async () => {
1716

1817
test("should not work with enums", async (t) => {
1918
const result = await spawnPromisified(process.execPath, [
20-
"--experimental-strip-types",
2119
"--no-warnings",
2220
"--import=./dist/register-strip.mjs",
2321
fixturesPath("enum.ts"),
@@ -31,7 +29,6 @@ test("should not work with enums", async (t) => {
3129

3230
test("should work with enums", async () => {
3331
const result = await spawnPromisified(process.execPath, [
34-
"--experimental-strip-types",
3532
"--no-warnings",
3633
"--import=./dist/register-transform.mjs",
3734
fixturesPath("enum.ts"),
@@ -44,7 +41,6 @@ test("should work with enums", async () => {
4441

4542
test("should warn and inaccurate stracktrace", async () => {
4643
const result = await spawnPromisified(process.execPath, [
47-
"--experimental-strip-types",
4844
"--import=./dist/register-transform.mjs",
4945
fixturesPath("stacktrace.ts"),
5046
]);
@@ -57,7 +53,6 @@ test("should warn and inaccurate stracktrace", async () => {
5753

5854
test("should not warn and accurate stracktrace", async () => {
5955
const result = await spawnPromisified(process.execPath, [
60-
"--experimental-strip-types",
6156
"--enable-source-maps",
6257
"--import=./dist/register-transform.mjs",
6358
fixturesPath("stacktrace.ts"),
@@ -71,7 +66,6 @@ test("should not warn and accurate stracktrace", async () => {
7166

7267
test("should call nextLoader for non-typescript files for striping", async () => {
7368
const result = await spawnPromisified(process.execPath, [
74-
"--experimental-strip-types",
7569
"--no-warnings",
7670
"--import=./dist/register-strip.mjs",
7771
fixturesPath("hello.js"),
@@ -84,7 +78,6 @@ test("should call nextLoader for non-typescript files for striping", async () =>
8478

8579
test("should call nextLoader for non-typescript files for transform", async () => {
8680
const result = await spawnPromisified(process.execPath, [
87-
"--experimental-strip-types",
8881
"--no-warnings",
8982
"--import=./dist/register-transform.mjs",
9083
fixturesPath("hello.js"),
@@ -97,7 +90,6 @@ test("should call nextLoader for non-typescript files for transform", async () =
9790

9891
test("should throw syntax error for invalid typescript", async (t) => {
9992
const result = await spawnPromisified(process.execPath, [
100-
"--experimental-strip-types",
10193
"--no-warnings",
10294
"--import=./dist/register-strip.mjs",
10395
fixturesPath("invalid-syntax.ts"),

0 commit comments

Comments
 (0)