From 62b124e7467218955f734cc5095281587b31a956 Mon Sep 17 00:00:00 2001 From: Aditya Thakral <9at8@users.noreply.github.com> Date: Fri, 11 Dec 2020 13:31:47 -0500 Subject: [PATCH] Transpile createAsyncQuery from alpaql (#1702) * Transpile createAsyncQuery from alpaql * Update CHANGELOG.md --- packages/async/CHANGELOG.md | 4 ++++ packages/async/src/babel-plugin.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/packages/async/CHANGELOG.md b/packages/async/CHANGELOG.md index 8770835d99..1cb443eb39 100644 --- a/packages/async/CHANGELOG.md +++ b/packages/async/CHANGELOG.md @@ -7,6 +7,10 @@ and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +### Added + +- Added `createAsyncQuery` from AlpaQL to the list of default transforms. ([#1702](https://github.com/Shopify/quilt/pull/1702)) + ## [2.1.6] - 2020-10-20 - Added `tslib@^1.14.1` in the list of dependencies. [#1657](https://github.com/Shopify/quilt/pull/1657) diff --git a/packages/async/src/babel-plugin.ts b/packages/async/src/babel-plugin.ts index 66ba61406c..018fbc58d1 100644 --- a/packages/async/src/babel-plugin.ts +++ b/packages/async/src/babel-plugin.ts @@ -2,6 +2,7 @@ import Types from '@babel/types'; import {NodePath, Binding} from '@babel/traverse'; const DEFAULT_PACKAGES_TO_PROCESS = { + '@shopify/alpaql/async': ['createAsyncQuery'], '@shopify/async': ['createResolver'], '@shopify/react-async': ['createAsyncContext', 'createAsyncComponent'], '@shopify/react-graphql': ['createAsyncQueryComponent', 'createAsyncQuery'],