@isograph/babel-plugin 0.0.0-main-276e7abd → 0.0.0-main-ba2ac4a0

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.
Files changed (2) hide show
  1. package/compileTag.js +2 -2
  2. package/package.json +1 -1
package/compileTag.js CHANGED
@@ -17,7 +17,7 @@ function compileTag(t, path, config) {
17
17
  if (keyword === 'entrypoint') {
18
18
  // This throws if the tag is invalid
19
19
  compileImportStatement(t, path, type, field, 'entrypoint', config);
20
- } else if (keyword === 'field') {
20
+ } else if (keyword === 'field' || keyword === 'pointer') {
21
21
  if (t.isCallExpression(path.parentPath.node)) {
22
22
  const firstArg = path.parentPath.node.arguments[0];
23
23
  if (path.parentPath.node.arguments.length === 1 && firstArg != null) {
@@ -42,7 +42,7 @@ function compileTag(t, path, config) {
42
42
  }
43
43
 
44
44
  const typeAndFieldRegex = new RegExp(
45
- '\\s*(entrypoint|field)\\s*([^\\.\\s]+)\\.([^\\s\\(]+)',
45
+ '\\s*(entrypoint|field|pointer)\\s*([^\\.\\s]+)\\.([^\\s\\(]+)',
46
46
  'm',
47
47
  );
48
48
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@isograph/babel-plugin",
3
3
  "description": "A Babel plugin for use with Isograph applications.",
4
4
  "homepage": "https://isograph.dev",
5
- "version": "0.0.0-main-276e7abd",
5
+ "version": "0.0.0-main-ba2ac4a0",
6
6
  "keywords": [
7
7
  "graphql",
8
8
  "isograph",