Closed DVitaliy closed 11 months ago
I think I'd label this as "Working as intended". Dynamic imports make little sense inside of UMD and would need to be translated into another form, hence why Rollup does not support doing this out-of-the-box.
There are some Babel plugins that will transform this, just depends on what your targets are. I don't think this is something we should handle, personally.
I'm getting error:
if inside method of class has
import
The source code here https://codesandbox.io/s/focused-sun-igsymq
PS: If change output format (for ex.
esm
orcjs
) then OK