Comments (5)
The problem is that webpack disagrees by bundling angular2-polyfills becaut it says that it is a bundle already and you should link the original sources (zone and reflect).
from angular2-seed.
I understand that this suggestion doesn't quite match WebPack's philosophy. But in this case this philosophy is wrong. And we really don't want to re-package zone.js
We can't tell people "hey, you can't include anything in a script tag since WebPack has a different opinion". What about things like es6-shim
? Are we going to force people to bundle it as well?
from angular2-seed.
As long as your solution is not extra script tags, that won't work for building a production build with webpack. Or change the entire webpack.
from angular2-seed.
It is not re-bundled any more which is good. But it is still not loaded via a script tag, which is bad. Will open a separate issue for this.
from angular2-seed.
crypto
is being imported because of the way reflect-metadata
is handling the polyfill. To ensure that webpack doesn't polyfill the browser environment with node (browserify does the same) we have to noop crypto
with
module.exports = {
node: { crypto: 'empty' }
};
you can see it here https://github.com/angular/angular2-seed/pull/28/files#diff-11e9f7f953edc64ba14b0cc350ae7b9dR30
from angular2-seed.
Related Issues (20)
- Why is twitter bootstrap in the package?
- Build production HOT 2
- can not register ngx-uploader
- error when i start npm HOT 4
- Nothing happens after npm start / only Loading is displayed
- Err: unable to start
- Words of appreciation
- Reducing the size of the generated file for Prod deployments HOT 1
- How to import ng2-bootstrap with webpack HOT 1
- how to integrate my site on ligne
- npm install Error - shasum check failed
- Import node module HOT 1
- unable to start project on my system HOT 2
- Inactive/Dead? HOT 3
- Problem Install npm ; "npm install" HOT 1
- Failed at the [email protected] start script
- Include sass
- Angular 5 will be supported?
- Cannot read property 'config' of null HOT 1
- problem with lazy loading
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2-seed.