Skip to content

Adds removal notice to view.js.mustache#54105

Merged
mburridge merged 2 commits intoWordPress:trunkfrom
mburridge:update/add-removal-notice-to-viewjs
Sep 1, 2023
Merged

Adds removal notice to view.js.mustache#54105
mburridge merged 2 commits intoWordPress:trunkfrom
mburridge:update/add-removal-notice-to-viewjs

Conversation

@mburridge
Copy link
Copy Markdown
Contributor

What?

Adds a line to view.js.mustache in the create-block package stating that it's safe to remove the file if no JavaScript is running in the front end.

Why?

Because the file is not needed if no JavaScript is going to run in the front end.

@mburridge mburridge added [Tool] Create Block /packages/create-block Developer Experience Ideas about improving block and theme developer experience labels Sep 1, 2023
@mburridge mburridge added the [Type] Enhancement A suggestion for improvement. label Sep 1, 2023
Copy link
Copy Markdown
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

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

Great addition, thank you for clarifying that since we don't want sites to load JS files that only log to the console 😄

@mburridge mburridge requested a review from gziolo September 1, 2023 10:27
@mburridge mburridge merged commit 959c9c1 into WordPress:trunk Sep 1, 2023
@mburridge mburridge deleted the update/add-removal-notice-to-viewjs branch September 1, 2023 11:19
@github-actions github-actions bot added this to the Gutenberg 16.7 milestone Sep 1, 2023
@bph bph added [Type] Code Quality Issues or PRs that relate to code quality and removed [Type] Enhancement A suggestion for improvement. labels Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Developer Experience Ideas about improving block and theme developer experience [Tool] Create Block /packages/create-block [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants