(08-18-2021, 06:34 PM)remkonoteboom Wrote: Currently, it is hard coded to use the npm installation of babel in a specific folder because that happens to be where I installed it. It should be more flexible, I know. I don't know if there are any other JSX processors around.Where i can get npm and babel?
To place it here:
/home/tactic/npm/babel
I installed npm and babel for ubuntu, and changed the hardcoded path to:
dirname = "/usr/share/npm/babel"
But your example is still not showing anything.
This warning i get when try to execute your example
WARNING: b"You have mistakenly installed the `babel` package, which is a no-op in Babel 6.
Babel's CLI commands have been moved from the `babel` package to the `babel-cli` package.
npm uninstall -g babel
npm install --save-dev babel-cli
See http://babeljs.io/docs/usage/cli/ for setup instructions."