-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tbo47
committed
Oct 2, 2024
1 parent
6e16d1b
commit 242bf61
Showing
4 changed files
with
579 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
rm -rf dist | ||
OUTFILE=dist/dagre-d3.7.0.11.js | ||
npx esbuild src/index.js --bundle --platform=neutral --packages=external --outfile=$OUTFILE | ||
sed -i '' 's|from "d3";|from "https://cdn.jsdelivr.net/npm/[email protected]/+esm";|' $OUTFILE | ||
sed -i '' 's|from "lodash-es"|from "https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"|' $OUTFILE |
Oops, something went wrong.