EGOIST
EGOIST
hmm see https://github.com/egoist/konan#api
Source content means the JS code/AST you want to traverse.
like I said, code or AST: ```js const code = ` console.log('js code') ` konan(code) //-------------- or hmm read the content from a script const fs = require('fs') const content...
There're edge cases when it says `like` but not `same` The `input` must be a `utf8` string not the buffer you're currently passing to `konan`
https://github.com/egoist/konan/blob/master/test/index.test.js it works for me
Please follow the format in Tools section
Now you can use `?npm=react/dist/react.js&show=js,console`
It's possible to store/save snippets in browser like using indexeddb
Interesting idea, could be easier to implement than my solution 😄
Here's the solution, what do you think? ```html const boilerplate = { js: { code: 'console.log(1)', transformer: 'JSX' } } const iframe = document.getElementById('iframe') window.addEventListener('message', ({ data = {} })...