【文件属性】:
文件名称:ts-transform-graphql-tag:使用TypeScript文件中的graphql-tag编译GraphQL标记的模板字符串
文件大小:68KB
文件格式:ZIP
更新时间:2021-02-04 03:04:36
graphql typescript gql graphql-tag typescript-transformer
ts-transform-graphql-tag
使用TypeScript文件中的编译GraphQL标记的模板字符串。
该插件的灵感主要来自伟大的Babel插件 。
警告:
因为我从typescript移到了@babel/preset-typescript typescript ,所以不再维护此软件包。 但是,如果您仍在使用它,则欢迎使用PR。
动机
在构建时编译GraphQL查询:
减少脚本初始化时间; 和
删除graphql-tag依赖性
从捆绑包中删除graphql-tag依赖项可以节省大约。 50 KB。
实作
搜索graphql-tag导入并将其删除。
搜索带有gql标识
【文件预览】:
ts-transform-graphql-tag-master
----.prettierignore(34B)
----src()
--------index.ts(58B)
--------astify.ts(1KB)
--------transformer.ts(3KB)
----.npmignore(54B)
----.travis.yml(50B)
----tsconfig.json(415B)
----LICENSE(1KB)
----test()
--------fixture()
--------index.test.ts(3KB)
--------make-source-enumerable.js(173B)
----compile.ts(1KB)
----.prettierrc(67B)
----README.md(6KB)
----.editorconfig(207B)
----.gitignore(59B)
----CHANGELOG.md(406B)
----package-lock.json(249KB)
----package.json(2KB)