# Compiling modules for Interactivity API

**URL:** https://discourse.roots.io/t/compiling-modules-for-interactivity-api/28023
**Category:** bud
**Created:** 2024-09-25T09:07:55Z
**Posts:** 3

## Post 1 by @rchrzan — 2024-09-25T09:07:55Z

Does bud js support module compilation in any way like wp-scripts ([@wordpress/scripts – Block Editor Handbook | Developer.WordPress.org](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/#build)) does? I want to add viewScriptModule to my block but it seems that bud does not support it in its standard configuration.

---

## Post 2 by @intelligence — 2024-09-25T09:11:36Z

Maybe [this](https://discourse.roots.io/t/building-blocks-based-on-block-json-using-roots-bud-instead-of-wordpress-scripts/25265/5) is helpful.

The enqueued `public.js` is loaded on the front-end.

---

## Post 3 by @rchrzan — 2024-09-25T09:19:35Z

I need something that wp-scripts has for interactivity. Wp-scripts has --experimental-modules flag
