-
Notifications
You must be signed in to change notification settings - Fork 2k
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: defer scripts should wait until html loaded #2816
Conversation
kuitos
commented
Nov 16, 2023
•
edited
Loading
edited
- resolves Webpack5生成的项目有时候无法获取导出内容 #2802
🦋 Changeset detectedLatest commit: ede130c The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
这块 resolve是不应该放入事件监听的回调 listener 更加合理点? resolve后执行 .then 说明 script 代码一定是执行完了
|
用这个分支代码测试后发现还是有几率报错,错误跟原先一样没找到导出的 变量,改成这样后加载就不会报错了。 |
这没道理,我用 examples 测也是正常的。我再用 vue 的版本测试看看 |
@qiYuei 拉下新代码再看看 |
可以了 👍 |