Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using react import component with swc compiler #222

Open
intelcoder opened this issue Dec 10, 2021 · 1 comment
Open

Using react import component with swc compiler #222

intelcoder opened this issue Dec 10, 2021 · 1 comment

Comments

@intelcoder
Copy link

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
@theKashey
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants