question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the difference between this and babel-plugin-inline-import ?

See original GitHub issue

After 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:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
deb0chcommented, Feb 25, 2018

Thank you so much for your answers, I understand much better the use and purpose of your package !

0reactions
detrohuttcommented, Feb 23, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found