Open clovis1122 opened 4 years ago
I think @wordpress/compose
also presents the same issue. @ahmadawais would it be possible to make it so that when something is imported from @wordpress/whatever
, it is accessed as wp[camelCaseDash(whatever)]
?
Bug Report
Expected Behavior
I'm trying to use the
import ... from @wordpress/...
syntax. Writingimport domReady from @wordpress/dom-ready
should build successfully, and it should refer towp.domReady
.Actual Behavior
I receive the "module not found" error. .
I think this is very easy to fix by adding "dom-ready" here: https://github.com/ahmadawais/create-guten-block/blob/bdc40192fc7fa30519d821e2aa835b2aa6ef7534/packages/cgb-scripts/config/externals.js#L20. Let me know if this is correct.