Closed camerow closed 7 years ago
I will look into this tommorow.
@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?
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.
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.
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.
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.
This plugin now supports ES5 environments
closed are there is babel-standalone plugin to handle browser env.
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?