react-sandbox-editor icon indicating copy to clipboard operation
react-sandbox-editor copied to clipboard

Add more preprocessors

Open malerba118 opened this issue 7 years ago • 0 comments

Is your feature request related to a problem? Please describe. People often use tools like typescript, scss, less, markdown

Describe the solution you'd like Add some of this functionality to src/utils/processors.js. Right now, only jsx is supported via babel. It would be nice to extend to use other common preprocessors. Ideally the preprocessor util interface would take in a raw string, output a transpiled string or throw an error if invalid syntax. processors.js already contains some skeleton code for additional preprocessors.

Additional context Must be conscious of the dependencies this would bring in and their footprints. In my mind, Typescript would be the next most important preprocessor to support. Then maybe scss, but I don't really find it imperative.

malerba118 avatar Jul 22 '18 17:07 malerba118