What is the difference between this and babel-plugin-inline-import ?
See original GitHub issueAfter reading the README I still can’t really wrap my head around what exactly this package enables for graphql files in addition to what babel-plugin-inline-import
already does ?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
babel-plugin-inline-import - npm
Babel plugin to make raw files importable. Latest version: 3.0.0, last published: 5 years ago. Start using babel-plugin-inline-import in ...
Read more >babel-plugin-inline-import - npm package - Snyk
It inserts the content of the imported file directly into the importing file, assigning it to a variable with the same identifier of...
Read more >reactjs - Babel plugin not found - Stack Overflow
You have an extra space in the name svg-sprite-loader.
Read more >babel/plugin-transform-react-inline-elements
In this case, we recommend importing/requiring @babel/polyfill in the entry point of your application and using @babel/preset-env with the useBuiltIns ...
Read more >Migrating from Babel - SWC
Comparison ; babel-plugin-syntax-dynamic-import, ✔️ ; babel-plugin-syntax-export-default-from, ✔️ ; babel-plugin-syntax-export-namespace-from ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you so much for your answers, I understand much better the use and purpose of your package !
My package was built to be used with Apollo-client which requires the graphql code to be in AST form. So without my package you’d need to import gql as well as use some method to get the graphql contens from the file manually and parse each operation yourself and would lose support for multiple operations in a single file.