Skip to content

Instantly share code, notes, and snippets.

@Frodigo
Last active March 25, 2021 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Frodigo/0bd8b10998e5c4b04a971d437aa989b7 to your computer and use it in GitHub Desktop.
Save Frodigo/0bd8b10998e5c4b04a971d437aa989b7 to your computer and use it in GitHub Desktop.
PWA Studio local intercept
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