ember-modules-codemod
ember-modules-codemod copied to clipboard
Creates conflicting imports
This results in multiple computed
imports:
import Ember from 'ember';
import computed from 'my-computed';
export default Ember.Component.extend({
a: Ember.computed(() => { return 'ok' }),
b: computed('a')
});
=>
import { computed } from '@ember/object';
import Component from '@ember/component';
import computed from 'my-computed';
export default Component.extend({
a: computed(() => { return 'ok' }),
b: computed('a')
});