swc-project / swc-node

Faster ts-node without typecheck
MIT License
1.69k stars 69 forks source link

Mention --enable-source-maps in README.md for esm projects. #737

Closed Xinkai closed 5 months ago

Xinkai commented 8 months ago

@swc-node/sourcemap-support only works on cjs projects. The underlying library source-map-support is more than 2 years old and doesn't seem to work with native esm.

Ask people to use Node's built-in source map support. Although experimental, it works well in my very minimal setup.

Related issue: https://github.com/swc-project/swc-node/issues/719

CLAassistant commented 8 months ago

CLA assistant check
All committers have signed the CLA.

changeset-bot[bot] commented 5 months ago

⚠️ No Changeset found

Latest commit: 068e42a09472daad96f43eee5592bc3ee50a0c87

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR