You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: Perhaps astring/astring-jsx is worth checking out for codegen (https://www.npmjs.com/package/astring). -- astring-jsx has some preliminary issues when testing simple file
brentlintner
changed the title
Enable JSX support via setting Esprima's jsx flag
Enable JSX support via setting Esprima's and TypeScript's JSX flag
Jun 7, 2017
A simple cli flag and lib option should be easy to implement.
http://esprima.readthedocs.io/en/latest/syntactic-analysis.html#jsx-syntax-support
Note: escodegen will die if --jsx is set, so that complicates things.
estools/escodegen#333
Note: If we use babylon to parse, we can use things like https://www.npmjs.com/package/babel-generator (see #94).
Note: Also should pick up files with
.jsx
Note: Perhaps astring/astring-jsx is worth checking out for codegen (https://www.npmjs.com/package/astring). -- astring-jsx has some preliminary issues when testing simple file
UPDATED NOTE: try https://github.com/wallabyjs/escodegen? (see if it supports template strings too like javascript-obfuscator fork used)
The text was updated successfully, but these errors were encountered: