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

当使用框架时,例如koa会出现问题,而原生node不会 #11

Open
SeaWaveW opened this issue Jul 7, 2023 · 2 comments
Open

Comments

@SeaWaveW
Copy link

SeaWaveW commented Jul 7, 2023

例如添加了 assert
但是打包还是会报警告:
[plugin:vite:resolve] Module "assert" has been externalized for browser compatibility, imported by "E:/koa-ts/node_modules/koa/lib/application.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details
进而导致打出来的包无法使用,是否能考虑下支持框架?

@xiaoxiangmoe
Copy link
Owner

xiaoxiangmoe commented Jul 7, 2023

有例子吗?给我一个最小可复现问题的仓库?

@SeaWaveW
Copy link
Author

SeaWaveW commented Jul 7, 2023

有例子吗?给我一个最小可复现问题的仓库?

https://github.com/SeaWaveW/issuse.git 这个仓库

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

No branches or pull requests

2 participants