infernojs / babel-plugin-inferno

Transforms JSX to InfernoJS vNodes
MIT License
79 stars 26 forks source link

Dist version of this plugin #37

Closed camerow closed 7 years ago

camerow commented 7 years ago

I'm in a requireJS environment at work and can't use npm to install this plugin, but I'd like to use Inferno. Can this repo also host a minified dist file?

Havunen commented 7 years ago

I will look into this tommorow.

lukeed commented 7 years ago

@camerow This plugin is (usually) used at compile time, not the browser. So RequireJS doesn't/wouldn't come into play here. Are you not able to install any build tools?

camerow commented 7 years ago

We have a lot of legacy code that we'd like to start slowly refactoring pieces using Inferno, unfortunately in that environment we are pretty well stuck with RequireJS. A coworker got React running but we like the smaller nature of Inferno so I was hoping to get a sample environment set up for Inferno.

lukeed commented 7 years ago

Well again, babel-plugin-inferno isn't meant to be included in your bundles. It'll never make it to the browser.

Instead, it's a devDependency and helps produce your final RequireJS bundles.

camerow commented 7 years ago

Right, but babel-plugin-inferno makes the assumption that I am in an NPM environment with node_modules available. I guess I'm actually just struggling with how to configure Inferno in a RequireJS environment. I wish I could just have a webpack.config, node_modules build process but I'm trying to work with what our legacy app has.

lukeed commented 7 years ago

I guess I'm not fully understanding, because the RequireJS projects I've worked with in the past still used & read from node_modules. Compilation was never not an option.

Havunen commented 7 years ago

This plugin now supports ES5 environments

Havunen commented 7 years ago

closed are there is babel-standalone plugin to handle browser env.