Skip to content

[Bug]: The import path points to node_modules incorrectly #616

@NexxLuo

Description

@NexxLuo

Version

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
    Memory: 14.88 GB / 31.22 GB
  Browsers:
    Edge: Chromium (128.0.2739.67)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    @rslib/core: ^0.2.0 => 0.2.0

Details

When importing a package, the import path in the generated file is incorrect, and the path points to node_modules incorrectly.

  1. source file

Image

  1. after compilation

Image

Reproduce link

https://github.com/NexxLuo/rslib-demo.git

Reproduce Steps

  1. execute yarn install in root dir
  2. execute npm run build in package-b
  3. check the file after compilation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions