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

[QU] Shouldn't compilation be restricted to the source tree of 'entry'? #348

Closed
quantuminformation opened this issue Jan 12, 2017 · 2 comments
Labels

Comments

@quantuminformation
Copy link

I have a project that compiles fine when like so:

image

But when adding the /demo folder, the loader tries to build those files too, even though they are not referenced by any tree inside entry:

image

I would also love to see this repo join forces with ts-loader.

@davelosert
Copy link

davelosert commented Jan 20, 2017

I am having the exact same problem. I have two directries: src and e2e. When building the src-Folder with webpack, AT tries to resolve my e2e-Files as well - even though in my webpack config, I have this:

[...]
resolve: {
   // helpers.root just makes it an absolute path
   modules: [helpers.root('src'), helpers.root('node_modules')]
}

EDIT
Nevermind - I had a wrong configuration for the tsconfig.json-File.
Still - I agree with @quantuminformation that the Loader should respect the Tree of Webpack. Is that somehow possible?

@s-panferov
Copy link
Owner

Closed in favour of #364

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants