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
Description
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
Labels
No labels