diff --git a/README.md b/README.md index 1e02a12..fb28b45 100644 --- a/README.md +++ b/README.md @@ -1 +1,10 @@ esm import cjs repro + +```bash +git clone https://github.com/iambumblehead/esm-import-cjs-repro.git +cd esm-import-cjs-repro +npm install +npm run test:node # pass +npm run test:tsx # pass +npm run test:swc # fail +``` diff --git a/package.json b/package.json index dbc7e86..5ba3255 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ }, "dependencies": { "babelGeneratedDoubleDefault": "file:./babelGeneratedDoubleDefault", + "typescript": "^5.5.3", "@swc-node/register": "1.10.2", + "@swc/core": "^1.6.13", "tsx": "^4.15.5" }, "scripts": {