这是indexloc提供的服务,不要输入任何密码
Skip to content

tsup-node should not mark module alias as external #409

@egoist

Description

@egoist

If you have a path alias like @app/* configured in tsconfig.json and run tsup-node against your files, @app will be accidentally marked as external, it needs to be fixed here:

if (skipNodeModulesBundle) {
build.onResolve({ filter: NON_NODE_MODULE_RE }, (args) => ({
path: args.path,
external: true,
}))
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions