-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Block supports: value changes on block.json not reflected in block store after watch task runs #33993
Comments
It seems like this regressed in the last day, because initially I tested using a slightly outdated version of trunk (7479921), and it works ok with that commit. #33818 is the only change to the build process since then. To describe how watch works, my understanding is that there are the following steps that make up the watch task:
In the console, it looks like webpack triggers ok, so it definitely gets through to that final stage. |
I wouldn't be surprised if webpack v5 impacted that. I tested JS and CSS and watch mode but I forgot about I did a quick test and I think that I know where the issue is. I added the following line to "attributes": {
+ "foo": "bar",
"tagName": { JavaScript file gets correctly updated by webpack: However, the The issue is with |
Seems like it has to do with Currently all files in Created a PR (#34024) to only ignore files handled by the build script. |
Currently when making changes individual blocks metadata in block.json, the change is picked up by the dev watch process, and the change can be seen if logged out in the blocks index.js file at the point the block is being registered, but the change doesn't get reflected in the
core/blocks
store unless the dev watch process is restarted.This means that changes to the block.json support settings can't be easily tested without restarting the dev task after each change.
To replicate
npm run dev
process and run plugin in local dev envExpected behaviour
Changes to block.json support settings are reflected in the local dev env after watch process has detected the change
The text was updated successfully, but these errors were encountered: