When I tried to build my subscription app extension, I got this error.
Error: Error compiling: asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
main.js (291 KiB),entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
main (291 KiB)
So I changed my code to use React.lazy and dynamic import, but now I get the error below.
TypeError: importScripts is not a function
at async Promise.all (index 0)
I know this is a niche issue but I would appreciate it if someone could provide information about how to deal with this.
And please tell me if I need to provide more information. Thanks.