-
Hey all 👋 // myConfigFile.ts
const myValue = { name: 'test', value: 42 };
export default myValue; CLI (separate) application: // readFile.js
const getDefaultExportValue = () => {
const file = Bun.file('./myConfigFile');
...
return myValue;
} |
Beta Was this translation helpful? Give feedback.
Answered by
alexeyten
Oct 7, 2023
Replies: 1 comment
-
Are you looking for a dynamic import? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mkosir
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you looking for a dynamic import?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import