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

add svelte support to webpack encore #781

Merged
merged 7 commits into from
Oct 10, 2022

Conversation

zairigimad
Copy link
Contributor

@zairigimad zairigimad commented May 29, 2020

Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue do the bulk of their work in the browser, Svelte shifts that work into a compile step that happens when you build your app. https://svelte.dev/

The goal of this PR is to add support of Svelte to Webpack Encore.

@@ -399,6 +399,17 @@ class ConfigGenerator {
}));
}

if (this.webpackConfig.useSvelte) {
rules.push(applyRuleConfigurationCallback('svelte', {
Copy link
Contributor

@Kocal Kocal May 29, 2020

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes after the merge :)

@zairigimad zairigimad marked this pull request as ready for review May 30, 2020 00:17
@Rodrigo001-dev

This comment has been minimized.

@weaverryan weaverryan changed the base branch from master to main November 18, 2020 18:19
@Volubyl
Copy link

Volubyl commented Dec 21, 2020

Hey @zairigimad!

Do you need a hand with that PR?

It would be great to have Svelte's support in webpack encore.

If I can help in any way, let me know!

@zairigimad
Copy link
Contributor Author

@Volubyl yes it will be great if you can help :)

@Volubyl
Copy link

Volubyl commented Dec 22, 2020

@Volubyl yes it will be great if you can help :)

Nice!

Can you tell me what remains to be done with this PR and how I can help?

@zairigimad
Copy link
Contributor Author

@Volubyl yes it will be great if you can help :)

Nice!

Can you tell me what remains to be done with this PR and how I can help?

when I've added this, it was working, maybe if you can test it and see if something missing or if you have and idea you can add it :)

Copy link
Member

@weaverryan weaverryan left a comment

Choose a reason for hiding this comment

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

Sorry for letting this sit for SO long without any attention :/.

The only thing I can see that this is missing is a test in functional.js. It would probably include adding a "hello world" type of svelte file into the fixtures, then booting up an Encore setup, executing Encore and asserting that the result works. We have plenty of examples of that sort of thing in that functional.js file - React or Vue might be especially good examples to pull from.

Cheers!

@zairigimad
Copy link
Contributor Author

Sorry for letting this sit for SO long without any attention :/.

The only thing I can see that this is missing is a test in functional.js. It would probably include adding a "hello world" type of svelte file into the fixtures, then booting up an Encore setup, executing Encore and asserting that the result works. We have plenty of examples of that sort of thing in that functional.js file - React or Vue might be especially good examples to pull from.

Cheers!

no problem, I will make the test ASAP.

@zairigimad
Copy link
Contributor Author

Hey @weaverryan I've added the functional test for svelte :)

Copy link

@AbdelilahJabri AbdelilahJabri left a comment

Choose a reason for hiding this comment

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

Nicely done, thank you for this beautiful support

@CrazyHackGUT
Copy link

Any chances to be merged in near future?

@weaverryan
Copy link
Member

Thank you @zairigimad! I'm so sorry - and embarrassed by how much this fell off my radar. Apologies for the insane delay, but this is excellent work!

@weaverryan weaverryan merged commit f26aa6d into symfony:main Oct 10, 2022
@zairigimad
Copy link
Contributor Author

Thank you @zairigimad! I'm so sorry - and embarrassed by how much this fell off my radar. Apologies for the insane delay, but this is excellent work!

No problem you are doing an incredible work maintaining lot of things in Symfony ecosystem, thanks to you. I’m very happy that it’s finally merged 🎉

javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Oct 17, 2022
…rryan)

This PR was submitted for the 6.1 branch but it was merged into the 4.4 branch instead.

Discussion
----------

Mentioning svelte as a valid loader override type

Hi!

Minor tweak for symfony/webpack-encore#781

We could also document svelte itself, though there is also a proposed UX svelte component which, if merged, would be an even better option (and it would leverage this new feature in Encore).

Cheers!

Commits
-------

7f3a21d Mentioning svelte as aa valid loader override type
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.

None yet

7 participants