Jon Surrell

Results 66 comments of Jon Surrell

This was caused by a problem in @swc/core that was [fixed in version 1.3.72](https://github.com/swc-project/swc/blob/main/CHANGELOG.md#1372---2023-07-28). Issue: https://github.com/swc-project/swc/pull/7702 If you're using SWC, make sure you're on a recent version of @swc/core with...

The ability to use existing WordPress Scripts from Script Modules is one of the most impactful things we can work on for the Interactivity API. Anything built with the Interactivity...

> How would I `import { store, getContext } from "@wordpress/interactivity"; ` within a context of php template or a traditional script.js file in the theme though? @ermincelikovic The `@wordpress/interactivity`...

I've added https://github.com/WordPress/wordpress-develop/pull/6394 for server-side derived state. It's ready for review.

I've just added 3 items related to `data-wp-ignore` directive. - It needs to be documented, [it's not in the API Reference right now](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-interactivity/packages-interactivity-api-reference/#wp-each). - #60744 - https://github.com/WordPress/wordpress-develop/pull/6405 I think there's...

I've created this ticket to handle property access on PHP objects in interactivity state, only arrays are well handled at the moment: https://core.trac.wordpress.org/ticket/61039

One important note for the workaround, if you start to use private methods you'll also need to include `@babel/plugin-transform-private-methods`. There seems to be a dependency where `@babel/plugin-proposal-class-properties` requires `@babel/plugin-transform-private-methods`. (This...

@james0r this line is calling `defaultConfig.entry()` like a function: ``` ...defaultConfig.entry(), ``` Will you try replacing it with this: ``` ...defaultConfig.entry, ```

I ran into this recently. I was able to build Volta from source on a Raspberry PI. The only difficulty I had was that the `os_info` dependency would not build....

I don't think it's viable to use a closure over the `$state` variable. That's effectively a snapshot of the state, but I think we should have access to the full...