Skip to content

Commit

Permalink
defensive check
Browse files Browse the repository at this point in the history
  • Loading branch information
tbo47 committed Nov 28, 2024
1 parent f634472 commit 9491fbd
Show file tree
Hide file tree
Showing 11 changed files with 727 additions and 1,217 deletions.
5 changes: 3 additions & 2 deletions bundle.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
rm -rf dist
OUTFILE=dist/dagre-d3.7.0.11.js
OUTFILE=dist/dagre-d3-es.7.0.12-beta14.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
sed -i '' 's|from "lodash-es"|from "https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"|' $OUTFILE
cp $OUTFILE ../tbo47.github.io/
Loading

0 comments on commit 9491fbd

Please sign in to comment.