Skip to content

Commit

Permalink
fix(plugin-tikz): externalize esm-env
Browse files Browse the repository at this point in the history
  • Loading branch information
BearToCode committed Jun 25, 2024
1 parent 7ad2b54 commit 432eb05
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-tikz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@types/hast": "^3.0.4",
"@types/md5": "^2.3.2",
"carta-md": "workspace:*",
"esm-env": "^1.0.0",
"typescript": "^5.0.4",
"unified": "^11.0.4",
"vite": "^5.1.6",
Expand Down Expand Up @@ -50,7 +51,6 @@
"katex"
],
"dependencies": {
"esm-env": "^1.0.0",
"hast-util-from-dom": "^5.0.0",
"md5": "^2.3.0",
"node-tikzjax": "^1.0.3",
Expand Down
6 changes: 4 additions & 2 deletions packages/plugin-tikz/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export default defineConfig({
'unist-util-visit',
'hast-util-from-dom',
'md5',
'rehype-parse'
'rehype-parse',
'esm-env'
],
output: {
globals: {
Expand All @@ -27,7 +28,8 @@ export default defineConfig({
'unist-util-visit': 'unistUtilVisit',
'hast-util-from-dom': 'hastUtilFromDom',
md5: 'md5',
'rehype-parse': 'rehypeParse'
'rehype-parse': 'rehypeParse',
'esm-env': 'esm-env'
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 432eb05

Please sign in to comment.