styled-jsx icon indicating copy to clipboard operation
styled-jsx copied to clipboard

Support ESM import syntax for plugins

Open theoludwig opened this issue 4 years ago • 0 comments

What is the current behavior?

Currently, styled-jsx plugins can't be written with ESM imports syntax because it requires the import instead of using dynamic import syntax.

The problematic line of code is: https://github.com/vercel/styled-jsx/blob/e41c6fe488b7c25ddc2a8033106f1df424986ccc/src/_utils.js#L530

What is the expected behavior?

styled-jsx should be able to work with plugins written with ESM.

Related: https://github.com/Thream/styled-jsx-plugin-sass/issues/68

theoludwig avatar Aug 16 '21 16:08 theoludwig