Closed JounQin closed 11 months ago
Workaround: I publish ESM-only plugin now.
Yes, I think let’s move to ESM as a requirement for Size Limit plugin.
It doesn’t look too complicated since we have only a few third-party plugins.
ESM is not required even when we use import()
directly, the current issue is we're preferring commonjs over ESM incorrectly for dual package.
The fix was released in 10.0.3.
https://github.com/ai/size-limit/blob/f2493379fefc00559af2a8c54fc52cedbbc9b0bd/packages/size-limit/load-plugins.js#L30-L34
This is unexpected for third-party plugins.