---
date: 2025-04-04T16:39:00+00:00
modified: 2025-04-04T16:39:00+00:00
permalink: https://kaspars.net/note/mastodon-social-114281384545146907
post_type: note
author:
  name: Kaspars
  avatar: https://reverse.kaspars.net/gravatar/avatar/92bfcd3a8c3a21a033a6484d32c25a40b113ec6891f674336081513d5c98ef76?s=96&d=mm&r=g
---

# On April 4, 2025 at 19:39

I wish wp-scripts considered all JS files in the ./src directory as webpack entrypoints. The current behaviour is very unpredictable and broken:

1\. No way to specify individual JS files as entry points while keeping the blocks/\*/block.json parsing.

2\. Ignores src/index.js entrypoint if src/blocks/\*/blocks.json is present.