How to evaluate a string containing JavaScript code? #15555
Unanswered
itssamuelrowe
asked this question in
Q&A
Replies: 2 comments 1 reply
-
not sure what you are trying to achieve. you can import a file with If you trying to make fully "dynamic" module this will not work in webpack. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Did you try using a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
The following code evaluates and returns an object when executed with Node.js.
However, it fails when in React app, bootstrapped using Create React App. How can I solve this issue? Should I eject the application and modify the webpack configuration?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions