antvis / antvis/data-set

vite打包下dagre里require的问题

Open
#110 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
251
Forks
49
PR merge metrics
No merged PRs in 30d

Description

vite打包情况下,dagre的引用还是会报错,因为dagre里面用了require,不知道何时能解决。

我看npmjs.com上有dagre-ts,不知是否可换一个引用。

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by reproducing the Vite build failure involving dagre's require usage, then compare the current dagre dependency with the suggested dagre-ts package. Done means the project builds successfully with Vite without the dagre require error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vite
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.