Skip to content

Breaks all later preprocessors when used in addon code #287

Closed
@ef4

Description

@ef4

ember-cli-typescript is not playing nice with other preprocessors.

Specifically, there is only a compiler for the top-level app, so addon code does not go through the normal preprocessor pipeline, and instead it does a weird sideways thing here.

The fallout is that later preprocessors cannot see the output of ember-cli-typescript. So, for example, you cannot use ember-auto-import in a TS file in an addon (it works in an app, because you use the normal preprocessor pipeline in that case).

I understand the goal of having a single compiler for the whole application, but there are better ways to achieve that. ember-auto-import has the same exact need (a single webpack for the whole application, with global visibility into every app or addon that uses ember-auto-import), and avoids this problem by having a protocol for all the copies to discover each other directly and coordinate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbuildIdeas for or bugs with the build process

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions