@wesleyalmd/pwa-studio-product-unavailable
v0.1.0
Published
Product Unavailable extension for PWA Studio.
Downloads
2
Readme
PWA Studio Product Unavailable Extension
Install
1. Adding dependency
yarn add @wesleyalmd/pwa-studio-product-unavailable
2. Wrap module in your local-intercept.js
const { Targetables } = require('@magento/pwa-buildpack');
module.exports = targets => {
const targetables = Targetables.using(targets);
const peregrineTargets = targets.of('@magento/peregrine');
const talonsTarget = peregrineTargets.talons;
/* Product Unavailable */
const {
wrapProductUnavailableModule
} = require('@wesleyalmd/pwa-studio-product-unavailable/targets');
wrapProductUnavailableModule(targetables, talonsTarget);
};