Skip to content

Update README deprecated "webpackMode" in favor of "fetch" #65

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

Merged
merged 1 commit into from
Mar 15, 2021
Merged

Update README deprecated "webpackMode" in favor of "fetch" #65

merged 1 commit into from
Mar 15, 2021

Conversation

kl3sk
Copy link
Contributor

@kl3sk kl3sk commented Mar 2, 2021

After @weaverryan symfony/stimulus-bridge#15 PR

Encore complains:
The "webpackMode" config key is deprecated in controllers.json. Use "fetch" instead, set to either "eager" or "lazy".

Q A
Bug fix? no
New feature? no
Tickets Fix #...
License MIT

After @weaverryan symfony/stimulus-bridge#15 PR

Encore complains:
`The "webpackMode" config key is deprecated in controllers.json. Use "fetch" instead, set to either "eager" or "lazy".`
@@ -61,7 +61,7 @@ the `@symfony/ux-dropzone/src/style.css` autoimport to `false`:
"@symfony/ux-dropzone": {
"dropzone": {
"enabled": true,
"webpackMode": "eager",
"fetch": "eager",
Copy link
Member

Choose a reason for hiding this comment

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

For clarification to others, the package.json files themselves in this repo still have "webpackMode": "eager". However, that is just for backwards-compat with stimulus-bridge 1. symfony/flex 1.12.0 (thanks to symfony/flex#735) will read the webpackMode but actually put fetch into your controllers.json file.

tl;dr - this fix is correct

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But the Readme stay confusing because don't tell anything about this.

Maybe a note could be added at least to clarify this.

@weaverryan
Copy link
Member

Thank you @kl3sk!

@weaverryan weaverryan merged commit 06521ce into symfony:main Mar 15, 2021
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