ember-modules-codemod icon indicating copy to clipboard operation
ember-modules-codemod copied to clipboard

Creates conflicting imports

Open kanongil opened this issue 7 years ago • 0 comments

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')
});

kanongil avatar Oct 05 '17 21:10 kanongil