-
-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
Description
I am looking to run AST on the client side, i'm noticing an import error coming from the usage of 'filesystem', which implies this is more relevant for Node.js or other server side JS projects.
Error
ERROR in ./node_modules/abstract-syntax-tree/node_modules/source-map/lib/read-wasm.js
Module not found: Error: Can't resolve 'fs' in 'D:\xampp\htdocs\codeHut\node_modules\abstract-syntax-tree\node_modules\source-map\lib'
@ ./node_modules/abstract-syntax-tree/node_modules/source-map/lib/read-wasm.js 20:13-26
@ ./node_modules/abstract-syntax-tree/node_modules/source-map/lib/source-map-consumer.js
@ ./node_modules/abstract-syntax-tree/node_modules/source-map/source-map.js
@ ./node_modules/abstract-syntax-tree/src/sourcemap.js
@ ./node_modules/abstract-syntax-tree/index.js
@ ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/pages/Coding.vue?vue&type=script&lang=js&
Is there an option in yuour package that would allow me to do the following:
I am looking to run the AST on the client side browser, where I would take user input code, evaluate it , run it and then append it to the DOM.
Any answer, advice, other relevant packages would be appreciated!