c8r / x0

Document & develop React components without breaking a sweat

Home Page:https://compositor.io/x0/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

adding LiveScript support

andreivolt opened this issue · comments

First of all, thank you for this awesome project, I was hoping something like this exists, and it's nice to find exactly what you're looking for.

I'm a LiveScript user and I'd like to add support for LiveScript, but my initial (hasty) attempt with adding the loader in the Webpack config files has failed (build still fails with syntax error).

Could you tell me if there's anything you see I might be missing, or otherwise guide me?

The current version of x0 does not allow for custom webpack configurations and doesn't use webpack at all for the node/static parts. I'm not very familiar with LiveScript, but if it only needs webpack configuration, I suspect that will work once #40 is in – if you want to try it out now, you can install with npm i @compositor/x0@beta and point to a custom webpack config

LiveScript support will require a custom webpack config in your webpack.config.js file. This will now also be automatically picked up by v5.