Skip to content

Unable to set swc option for automatic react runtime #1800

Description

@ShravanSunder

Search Terms

swc options, swc runtime, react automatic

Expected Behavior

There is no way to set swc to use automatic run time in react:
Its not part of the transpiler configs thats passed into swc

Actual Behavior

Steps to reproduce the problem

Minimal reproduction

Specifications

  • ts-node version: latest
  • node version: 16
  • TypeScript version: 4.7
  • tsconfig.json, if you're using one:
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"esModuleInterop": true
},
"files": ["hardhat.config.ts"],
"ts-node": {
"swc": true,
"compilerOptions": {
"module": "CommonJS"
},
"moduleTypes": {
"**/*": "cjs"
}
}
}
  • package.json:
{}
  • Operating system and version: mac, latest
  • If Windows, are you using WSL or WSL2?:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions