poetic/meteor-reacterminator

Templates are getting compiled from ES6 to ES5

Closed this issue · 1 comments

Unable to resolve some modules:

"./imports/components/App.jsx" in /Users/evancorl/Sites/meteor/stanza-test/client/main.js (web.browser)

client/main.js

'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _meteor = require('meteor/meteor');

var _reactDom = require('react-dom');

var _App = require('./imports/components/App.jsx');

var _App2 = _interopRequireDefault(_App);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

_meteor.Meteor.startup(function () {
  (0, _reactDom.render)(_react2.default.createElement(_App2.default, null), document.getElementById('render-target'));
});

client/imports/components/App.js

'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = App;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function App() {
  return _react2.default.createElement(
    'h1',
    { style: { color: 'black', background: 'white' } },
    'React is working!',
    _react2.default.createElement('br', null),
    '(find me at ./client/imports/components/App.jsx)'
  );
}

Fixed