babel-plugin-inline-import:内联导入语句的原始内容

时间:2021-05-02 16:26:17
【文件属性】:
文件名称:babel-plugin-inline-import:内联导入语句的原始内容
文件大小:57KB
文件格式:ZIP
更新时间:2021-05-02 16:26:17
JavaScript Babel在线导入 Babel插件增加了将import与原始/文字内容一起使用的机会例如,将*.graphql文件导入到您的代码中是很好的。 例子 之前(无Babel-Inline-Import): // server.js // bad syntax highlighting, no syntax checking const typeDefinitions = ` type Query { testString: String } schema { query: Query } ` ; graphQLServer ( { schema : [ typeDefinitions ] , ... } ) ; 现在(使用Babel-Inline-Import导入): // /some/schema.graphql type Query { testString :
【文件预览】:
babel-plugin-inline-import-master
----.gitignore(33B)
----README.md(3KB)
----CHANGELOG.md(1KB)
----test()
--------plugin.spec.js(2KB)
--------fixtures()
--------helper.spec.js(3KB)
----LICENSE(1KB)
----.eslintrc(9KB)
----package.json(1KB)
----.babelrc(246B)
----config()
--------mocha.js(124B)
----.travis.yml(43B)
----plugin()
--------helper.js(1KB)
--------index.js(2KB)
----package-lock.json(197KB)

网友评论