-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Reverting change to only package vue runtime loader #769
Reverting change to only package vue runtime loader #769
Conversation
591bb5d
to
1991f0b
Compare
Displaying the recommendation during prod builds only may be too late I think. If someone starts working on an app only using Couldn't we detect the error thrown by Vue and make it easier to understand instead (with an example of how to add the alias)? |
Also, the failing test looks like the one I had to fix recently when working on Webpack 5 : https://github.com/symfony/webpack-encore/pull/645/files#r422717443 |
I don't think so? You see the error at runtime. For example, in Vue 3 (this is the source .ts, but you get the general idea of how this looks in the final dist file), you get the error simply because the I don't think you can detect that at build time, well, at least not easily. We could move the "recommendation" to show on any build... I just thought it might be annoying... though being annoying is not the worst thing here. CSP is great, but it's not our main use-case as afaik, it's only a problem in environments like Chrome apps. |
1991f0b
to
1d959fd
Compare
Or any site where you deploy CSP. |
2271566
to
4aa0cc3
Compare
Ok, compromise time! With help from Stof:
That points to a docs PR I just made: https://github.com/symfony/symfony-docs/pull/13664/files
|
This makes it harder for beginners and it's hard to know the fix. As a compromise, this alerts that there is an option to choose a smaller build.
4aa0cc3
to
1b393eb
Compare
Co-authored-by: Vincent Le Biannic <850046+Lyrkan@users.noreply.github.com>
This PR was merged into the 5.0 branch. Discussion ---------- [WCM] Adding info about Vue build Docs for symfony/webpack-encore#769 Commits ------- e7bff3f adding info about Vue build
Using the runtime build by default makes it harder for beginners and it's hard to know the fix. Specifically, if you follow the "intro docs" to Vue, you will likely try this:
which will not work (and the error will be tough for beginners to spot). As a compromise, on a production build, we print a recommendation so that people can discover the option to use the smaller build.