Skip to content

Change or add support to new version of SWC #98

@codermarcos

Description

@codermarcos

Problem

The package @swc/register is deprecated we should use @swc-node/register instead as they mention in the official repository swc-project/register which is archived since Feb 8, 2024.

Terminal output / screenshots

image

npm WARN deprecated @swc/register@0.1.10: Use @swc-node/register instead

Question

I would love contribute opening a pull request to this project but I'm not sure if this repository maintains some kind of compatibility with older versions!

For example, should I just replace the actual module with the new one?

'.ts': [
    ...
    {
-      module: '@swc/register',
+      module: '@swc-node/register',
       register: function (hook, config) { ... },
    },
]

Should the next version be 4.0.0?

Or just add the new one:

'.ts': [
    ...
    {
        module: '@swc/register',
        register: function (hook, config) { ... },
    },
+   {
+       module: '@swc-node/register',
+       register: function (hook, config) { ... },
+   },
]

Should the next version be 3.1.2 or 3.2.0 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions