Skip to content

@ngtools/webpack leaks TypeScript to subsequent loaders #2730

Description

@bytenik

I've created a GitHub repository with a reproduction: https://github.com/bytenik/ngtools-webpack-babel

The repository is a nearly identical clone of your e2e test for @ngtools/webpack, except that I have installed babel-loader, added it into the webpack loaders in the config, and switched the tsconfig.json to target es2015. That last part actually doesn't matter -- this breaks even when targeting es5, but its hard to justify installing babel if you don't also have es2015 being spit out to babel. 😄

You'll see that babel starts producing errors on the ngfactory TypeScript files. However, babel shouldn't be receiving those files, but rather it should only be receiving compiled JS from you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: investigationRequires some digging to determine if action is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions