I am creating interactive JavaScript coding exercise using ACE editor.
to execute entered code have have to transform code. for that i am using @balel/core transform
method. I am facing below problems
- when I use
presets: ["env"]
in options i am gettingError: Cannot load preset env relative to / in a browser
. I already didnpm install babel-preset-env
to install preset transform
is not overriding optionbabelrc: true
cannot run babe-core in browser begin with version 6.0. only node so you can refer to babel-standalone. https://github.com/babel/babel-standalone