Skip to content

Error: Cannot find module '@swc/helpers/_/_interop_require_default' #10893

@alexis-letexier

Description

@alexis-letexier

Describe the bug

Since v1.12.14 I've got Error: Cannot find module '@swc/helpers/_/_interop_require_default' at runtime. It seems that the swc helpers are not inline anymore by default.

Input code

Config

{
  "$schema": "https://swc.rs/schema.json",
  "jsc": {
    "parser": {
      "syntax": "typescript"
    },
    "target": "es2022"
  },
  "module": {
    "type": "commonjs",
    "lazy": true
  },
  "sourceMaps": true
}

Link to the code that reproduces this issue

No link

SWC Info output

No response

Expected behavior

Inline @swc/helpers

Actual behavior

No response

Version

1.12.14

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions