Last active
March 25, 2021 07:52
-
-
Save Frodigo/0bd8b10998e5c4b04a971d437aa989b7 to your computer and use it in GitHub Desktop.
PWA Studio local intercept
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Targetables } = require('@magento/pwa-buildpack'); | |
module.exports = targets => { | |
const targetables = Targetables.using(targets); | |
const ProductFullDetailComponent = targetables.reactComponent( | |
'@magento/venia-ui/lib/components/ProductFullDetail/productFullDetail.js' | |
); | |
ProductFullDetailComponent.insertBeforeJSX('<Button type="submit" />', '<span>Hello World! </span>'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment