Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comon and vendor bundle are almost empty #177

Closed
ghost opened this issue Dec 22, 2015 · 5 comments
Closed

comon and vendor bundle are almost empty #177

ghost opened this issue Dec 22, 2015 · 5 comments

Comments

@ghost
Copy link

ghost commented Dec 22, 2015

Hi,

I am trying to implement webpack in my own Angular2 project, using your project as an example.
For some reason the common and vendor bundles stay very short, only calling System.register with all the required modules. Why would webpack use System.register in my case, and concatenate all required files in your case...?? I am trying to find out why.... Any hint?

@PatrickJS
Copy link
Owner

System.register shouldn't be used so I need to see how you set up your build

@ghost
Copy link
Author

ghost commented Dec 22, 2015

@ghost
Copy link
Author

ghost commented Dec 22, 2015

I added the __build files, so you can see the result

@ghost
Copy link
Author

ghost commented Dec 22, 2015

Solved!!! :-)

I had other tsconfig parameters (system instead of commonjs) and another moduleResolution

Now the compiler has the same behavior as in your sample.

By the way: why do you have your own polyfills.ts?
Isn't it enough to include the angular2-polyfills file?

@PatrickJS
Copy link
Owner

I used my own polyfill for source maps and better universal module support. I'm going to close this since I'm also in the middle of changing the process for dist/ and production

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

No branches or pull requests

1 participant