no-build-tools-no-problems
no-build-tools-no-problems copied to clipboard
Experiment building a WordPress-centric React app without any build tools (ES6 + HTM).
68c28c6 added an example of testing a standard function, which is useful. It's important to also have a way to test React functions/components though. [Testing Library](https://testing-library.com/) looks neat ([examples](https://testing-library.com/docs/example-codesandbox/)). [I...
[Core no longer supports IE11](https://make.wordpress.org/core/2021/04/22/ie-11-support-phase-out-plan/), so we can remove anything that was added just for it. That might simplify some things. related #8
This would allow us to change imports like this: `const { Card } = wp.components;` ...to the ES6 standard: `import { Card } from '@wordpress/element';` Background: https://dev.to/open-wc/on-the-bleeding-edge-3cb8 Shim: https://www.npmjs.com/package/es-module-shims
HMR would be a nice devex enhancement for those who do want some light `watch` tooling. I don't _think_ it'd be possible to do it solely w/ a script running...
How does this compare to the traditional approach? Is it good enough for small-medium projects? - [ ] Look for any perf bottlenecks, missing best practices, etc. Probably best to...
https://make.wordpress.org/core/2024/03/04/script-modules-in-6-5/