Skip to content

filter内指定node_modules部分包没生效 #68

@xiaoyao96

Description

@xiaoyao96

vite版本: v6.3.5
vite-plugin-commonjs版本:0.10.4

通过测试发现,esbuild处理的路径,项目中直接引入npm包解析为正斜线/,npm包内引入的包路径被vite处理成了\反斜线,导致部分包没命中

Image

目前暂时这么解决了:

Image

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