fix: make aztec.js bundleable by vite#10744
fix: make aztec.js bundleable by vite#10744olehmisar wants to merge 2 commits intoAztecProtocol:masterfrom
Conversation
|
Hi! This is going to be addressed by #10704, which also starts a bigger refactor and code split that will make our libraries way more browser friendly. Hopefully I can get that one in today to unblock you! |
|
@Thunkar please close this PR, if it was addressed in yours |
|
I merged master and see that |
@olehmisar |
|
IDK. Vite just fails because it can’t destructure sep from path. Not destructuring fixes the issue for some reason. Idk why but it worked for me |
|
@olehmisar have you tried the polyfills package I used here? |
|
I'll try your plugin with our vite box tomorrow and try to debug. The polyfill should support destructuring. |
|
I feel like too much of your time is being wasted on such a simple fix? |
|
Hi @olehmisar, I've finally had time to test. It's not just the simple fix, but understanding why it happens (the codebase is going to keep evolving and there's many destructured imports all over, and some other that might come and break your flow in the future, even if we try our hardest to avoid browser-incompatible or polyfilled imports). I am not able to reproduce this after the recent changes, and #10877 should further improve things. I'm not gonna close this until you get a chance to test it in the upcoming 0.68.0 release (hopefully today, early next week at worst) |
|
it was fixed |
Fixes #6073