You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far, I have been using gatsby-transformer-json plugin to source data from JSON in .json files. But I would much rather source data from plain JS objects in .js files.
Is it possible to source data from .js file?
So instead of using gatsby-transformer-json to source letters.json
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
So far, I have been using
gatsby-transformer-json
plugin to source data from JSON in .json files. But I would much rather source data from plain JS objects in .js files.Is it possible to source data from .js file?
So instead of using
gatsby-transformer-json
to sourceletters.json
I would like to source
letters.js
(preferably es6 module, since I can use esm to backport it to commonjs module for use ingatsby-node.js
Beta Was this translation helpful? Give feedback.
All reactions