Open JEbertPrime opened 11 months ago
Example usage found in the file: https://github.com/JEbertPrime/wordpress-reproduction-webpack/blob/c94338a5e37f8fd6a02e37d4950f2899a29645a9/copyright-date-block/src/edit.js#L7
What's the reason for importing from @wordpress/block-editor/build/components
? It should be @wordpress/block-editor
as it exposes all publicly available components that can be correctly externalized and consumed directly from WordPress core.
There's no practical reason - but it happens because the official plugin for JS autocompletions in VS Code tries to import it from that folder instead of the root of the package, so I'm assuming others have run into the same issue (or will). But I think this should probably just be a linting rule, just so long as there's something in the process that can catch a mistake like this
What problem does this address?
This might be a unique problem to my team, but occasionally in the block development process, a bug slips through like this:
Again, maybe this is a unique problem to my team's setup, and possibly the solution is in the linting step.
What is your proposed solution?
I see one of two solutions: