Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Allow loading of TypeScript files from node_modules directory #105

Closed
@harrygr

Description

@harrygr

My project has some dependencies that are written in TypeScript that I yarn link to the project's node_modules directory in development. Currently I can only use these dependencies if I first compile them to JS. It would be nice just to be able to import the typescript directly, however the compiler gives me the following error:

Module parse failed: <path-to-dep>.tsx Unexpected token (7:7)
You may need an appropriate loader to handle this file type.
<file contents...>

This is clearly down to the webpack config only including files in the app path for ts-loader.

Would there be a problem with adding module_modules to this, or otherwise allowing a way to include other paths that contain typescript without having to eject?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions