Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复 iframe 组件路径处理异常,初次执行报错 #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hairyf
Copy link
Contributor

@hairyf hairyf commented Mar 10, 2022

No description provided.

@@ -21,6 +21,12 @@ export default function demoIframe(): Plugin {
// console.log('接到 demo iframe 请求', demoName);
// 我不知道 markdown-it-plugin 怎么跟 vite-plugin 低成本取得联系,所以直接通过文件传参了。这个文件是 markdown-it-demo 生成的。
// 由于 vite 的特性,文件内容是 lazy 的,所以这里需要每次读取文件以确保可以正确访问到。
try {
accessSync(demosPath)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没看到 demosPath 在哪定义的啊

@bowencool
Copy link
Owner

你用的什么系统,我没能复现你说的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants