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

Document @swc/plugin-loadable-components #909

Closed
kdy1 opened this issue Aug 21, 2022 · 5 comments
Closed

Document @swc/plugin-loadable-components #909

kdy1 opened this issue Aug 21, 2022 · 5 comments
Assignees
Labels

Comments

@kdy1
Copy link

kdy1 commented Aug 21, 2022

💬 Questions and Help

I searched for issues but there was only request for SWC plugins.
I implemented SWC plugin for @loadable/compoents and it's published as @swc/plugin-loadable-components

A thing to note is that SWC plugin API is still experimental.
Still, I'm lefting an issue so someone search for SWC plugin can find this issue.

Git repo: https://github.com/swc-project/plugins/tree/28ab1c04df68f7347d470ed3bac4e72d7f7befa9/packages/loadable-components
Npm: https://www.npmjs.com/package/@swc/plugin-loadable-components
Documentation: https://swc.rs/docs/configuration/compilation#jscexperimentalplugins

@theKashey theKashey self-assigned this Aug 21, 2022
@theKashey
Copy link
Collaborator

Amazing! A lot of people requesting swc based transformation and I am just happy to see how it moves forward

@stale
Copy link

stale bot commented Nov 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 2, 2022
@theKashey theKashey removed the wontfix label Nov 2, 2022
@stale
Copy link

stale bot commented Jan 7, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 7, 2023
@adbutterfield
Copy link

adbutterfield commented Mar 3, 2023

@kdy1 thanks for this!

I was wondering if you can point me to a working example? I'm trying to integrate this into a project of mine right now along with swc-loader, and I just get one giant chunk. I'm guessing something wrong with my setup...

Kinda figured it out. Need to have the options only in the webpack config, and not in the .swcrc. Need to dig in a bit more to fully figure it out...

Got it totally working, looks like I found a bug in swc-loader maybe. If anyone interested in seeing a minimalish example repo, I have one here: https://github.com/adbutterfield/fast-refresh-express/tree/loadable-components

@stale stale bot removed the wontfix label Mar 3, 2023
@stale
Copy link

stale bot commented Jun 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 18, 2023
@stale stale bot closed this as completed Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants