- Issue created by @jlain
- Status changed to Needs review
about 1 month ago 1:54pm 24 May 2024 - π΅πΉPortugal marcofernandes
No, you're not going it wrong and it's possible to do it the right way π
Take a look at the shinny new example blocks sub-module at 3.x branch:
https://git.drupalcode.org/project/gutenberg/-/tree/3.x/modules/example_...It's using wp-scripts package and it deals with wp packages imports, it won't add them to the bundle and it'll change those imports to global objects.
Check it out and let me know if you need more help.
- πΊπΈUnited States jlain
Thats exactly what I was looking for! Thank you @marcofernandes
- Status changed to Closed: works as designed
about 1 month ago 1:06pm 27 May 2024