@magento/venia-pwa-live-search 1.0.0-beta1 → 1.0.1-alpha11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@magento/venia-pwa-live-search",
3
- "version": "1.0.0-beta1",
4
- "description": "Live Search PWA Studio extension.",
5
- "main": "src/index.jsx",
3
+ "version": "1.0.1-alpha11",
6
4
  "publishConfig": {
7
5
  "access": "public"
8
6
  },
7
+ "description": "Live Search PWA Studio extension.",
8
+ "main": "src/index.jsx",
9
9
  "scripts": {
10
10
  "clean": " "
11
11
  },
@@ -333,4 +333,4 @@ const ProductsContextProvider = ({ children }) => {
333
333
 
334
334
  const useProducts = () => useContext(ProductsContext);
335
335
 
336
- export { ProductsContextProvider, useProducts };
336
+ export { ProductsContextProvider, useProducts };
@@ -1,16 +1,9 @@
1
1
  module.exports = targets => {
2
- const { specialFeatures } = targets.of('@magento/pwa-buildpack');
3
- specialFeatures.tap(flags => {
4
- /**
5
- * Wee need to activate esModules, GQL Queries and deactivate cssModules to allow build pack to load our extension
6
- * {@link https://magento.github.io/pwa-studio/pwa-buildpack/reference/configure-webpack/#special-flags}.
7
- */
8
- flags[targets.name] = {
9
- esModules: true,
10
- cssModules: false,
11
- graphqlQueries: true
12
- };
13
- });
2
+ const { Targetables } = require('@magento/pwa-buildpack');
3
+
4
+ const targetables = Targetables.using(targets);
5
+
6
+ targetables.setSpecialFeatures('esModules');
14
7
 
15
8
  targets.of('@magento/peregrine').talons.tap(talons => {
16
9
  talons.App.useApp.wrapWith(