我希望看到用es6语法编写的代码。但我得到这样的东西
define('simple-ember/app', ['exports', 'ember', 'ember/resolver', 'ember/load-initializers', 'simple-ember/config/environment'], function (exports, Ember, Resolver, loadInitializers, config) {
'use strict';
var App;
Ember['default'].MODEL_FACTORY_INJECTIONS = true;
App = Ember['default'].Application.extend({
modulePrefix: config['default'].modulePrefix,
podModulePrefix: config['default'].podModulePrefix,
Resolver: Resolver['default']
});
loadInitializers['default'](App, config['default'].modulePrefix);
exports['default'] = App;
});
我想看到它
import Ember from 'ember';
import Resolver from 'ember/resolver';
import loadInitializers from 'ember/load-initializers';
import config from './config/environment';
var App;
Ember.MODEL_FACTORY_INJECTIONS = true;
App = Ember.Application.extend({
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix,
Resolver: Resolver
});
loadInitializers(App, config.modulePrefix);
export default App;
如何通过ember-cli获得此行为?我尝试了各种操作源图选项和babel插件,但无济于事。