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

[On Hold] Demonstrate usage of SWC loader #30

Closed
wants to merge 9 commits into from

Conversation

tomdracz
Copy link

@tomdracz tomdracz commented Jan 26, 2022

For more info, see shakacode/shakapacker#29

Demonstrates switching existing Shakapacker/Webpacker app to use SWC loader instead of babel loader.

All that is needed:

  • Use correct version of Shakapacker (currently pointed at my fork)
  • Install @swc/core and swc-loader to package.json dependencies
  • Add webpack_loader: swc to webpacker.yml configuration
  • Add custom config/swc.config.js to enable fast refresh (not enabled by default in Shakapacker)

This change is Reviewable

@tomdracz tomdracz mentioned this pull request Jan 27, 2022
7 tasks
Copy link
Member

@justin808 justin808 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll merge this once we ship a version!

@@ -15,6 +15,8 @@ default: &default
# Reload manifest.json on all requests so we reload latest compiled packs
cache_manifest: false

webpack_loader: swc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@justin808
Copy link
Member

We should update this PR to check that SWC still works with Shakapacker v7.

@ahangarha @tomdracz

@ahangarha
Copy link
Contributor

@justin808
Please check #56

@ahangarha ahangarha changed the title Demonstrate usage of SWC loader [On Hold] Demonstrate usage of SWC loader Jun 18, 2023
@ahangarha ahangarha closed this Jun 28, 2023
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

Successfully merging this pull request may close these issues.

3 participants