Just a quick bit of customisable boilerplate surrounding a Webpacky Babel transpiler, for use in Parkroo.com.
JavaScript file:
/*webpackConfig
{
"resolve": true, // metadata for use in parkrooau-compiler
"externals": {
"react": "React",
"react-dom": "ReactDOM"
}
}
*/
import React, { Component } from 'react';
class MyComponent extends Component {
...
}
This will get compiled with the above externals settings built-in.