Skip to content

bug: import external libs does not add 'js' extension for esm #130

@Lonli-Lokli

Description

@Lonli-Lokli

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

So I've tried to add this to my fork with tsup and external imports are not processed

Steps To Reproduce

  1. clone https://github.com/Lonli-Lokli/react-mosaic/tree/esm
  2. add plugin
  3. run 'yarn build'

Expected behavior

import countBy from "lodash-es/countBy";
transformed into
import countBy from "lodash-es/countBy.js";

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions