Skip to content

Support import myAttr from "ember-data/attr" #23

@dcyriller

Description

@dcyriller

Whereas import attr from "ember-data/attr" is supported, import myAttr from "ember-data/attr" is not (yet). It will be ignored by the codemod.

updateExistingLiteralPaths function should be updated to support it.

Note that aliased named import are supported: import { hasMany as many } from "ember-data/relationships" is properly turned into import { hasMany as many } from "@ember-data/model".

Related discussion: #21 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions