Replace const dependencies with import dependencies that point to local NPM packages present in WP Scripts for the Rich Text Demo block.
Also, I noticed that package bundle size did increase very slightly when using importing.
Note: Engineers can still determine how they include dependencies using either destructuring or importing as long as the file is present in the NPM package.
Steps to verify the solution
Checkout this branch
Verify that the block works after building files
Check for any abnormal console entries. Your console should look like the following:
Other
[ NA ] Is this issue accessible? (Section 508/WCAG 2.1AA)
[ NA ] Does this pass CrossBrowserTesting.com? (Edge, Safari, Chrome, Firefox)
Remove const dependencies and re-add as imports that point to local packages.
Closes #28
Description
Replace
const
dependencies withimport
dependencies that point to local NPM packages present in WP Scripts for the Rich Text Demo block.Also, I noticed that package bundle size did increase very slightly when using importing.
Note: Engineers can still determine how they include dependencies using either destructuring or importing as long as the file is present in the NPM package.
Steps to verify the solution
Other