We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
描述:使用 react-player 仍会因 webpack ignore 触发编译错误 复现:https://codesandbox.io/p/devbox/mako-forked-4vg2pl
The text was updated successfully, but these errors were encountered:
@sorrycc look at context module analyze
Sorry, something went wrong.
排查了下。
1、修改 e2e/fixtures/magic-comments.ignore/src/index.ts,加入以下代码。
import(/* makoIgnore: true */ `${foo}`);
现在 webpackIgnore/makoIgnore 的实现是在 analyze_deps 里做的,而 context_module 是在 transform 阶段做的,transform 在 analyze_deps 之前,所以 resolve 的 ignore 无法拦截 context_modules 里已经做完的改动。
需要修改 context_module 的实现,不是在 transform 里做,而是放到 resolve 之后,多加一层虚拟模块层。
No branches or pull requests
描述:使用 react-player 仍会因 webpack ignore 触发编译错误
复现:https://codesandbox.io/p/devbox/mako-forked-4vg2pl
The text was updated successfully, but these errors were encountered: