Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 849 Bytes

no-old-shims.md

File metadata and controls

23 lines (19 loc) · 849 Bytes

Don't use import paths from ember-cli-shims

Rule name: no-old-shims

The import paths in ember-cli-shims were never considered public API and were recently replaced by RFC #176. If you use ember-cli-babel with version 6.6.0 or above you can start using the "New Module Imports" instead of the old shims or the Ember global directly. This will enable us to build better tree shaking feature into Ember CLI.

// GOOD
import Component from '@ember/component'
import EmberObject, { computed } from '@ember/object'
import Service, { inject } from '@ember/service'

// BAD
import Component from 'ember-component';
import EmberObject from 'ember-object';
import computed from 'ember-computed';
import Service from 'ember-service';
import inject from 'ember-service/inject';