Skip to content

esify should not try to convert .js.erb files into ASTs #200

@GoodForOneFare

Description

@GoodForOneFare

In global-reference-to-import, findDeclaringFile is returning .js.erb files. findNamedExports then attempts to parse those with jscodeshift.

e.g.,:

  • admin/modules/mixins/date_handler.coffee contains a reference to Shopify.DateRangeDb.
  • DateRangeDb is exposed by admin/date_range_db.js.erb

Affects 50+ files in admin; probably many more outside that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions