react-imported-component
react-imported-component copied to clipboard
Using react import component with swc compiler
When I try to use swc compiler, I get error like below. do we have plan to move from babel?
ERROR in ./node_modules/resolve/lib/sync.js 2:9-22
Module not found: Error: Can't resolve 'fs' in '...../node_modules/resolve/lib'
@ ./node_modules/resolve/index.js 4:13-34
@ ./node_modules/babel-plugin-macros/dist/index.js 11:16-34
@ ./node_modules/react-imported-component/dist/es2015/entrypoints/macro.js 2:0-50 78:15-26
@ ./react/containers/root/imported-chunk.js 2:0-74 10:25-49
@ ./react/containers/root/root.prod.js 15:0-26
Well, the first question is about your ability to use babel macros with swc
, that would be the first problem to solve.
Adding swc
plugin is a popular request right now (https://github.com/gregberge/loadable-components/issues/5290), but one needs to learn some Rush stuff first.