-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
webpack build includes node polyfills #6670
Comments
Related to #6671 |
@puckey As for the polyfills, you can exclude them from your webpack build, see https://webpack.js.org/configuration/node/. I've write up an issue to include that in the suggested webpack config/tutorial, see CesiumGS/cesium-webpack-example#8 |
Setting
|
Try |
That gives the following:
|
It looks like you can provide an object and specify a value per node library: https://webpack.js.org/configuration/node/#other-node-core-libraries We should specify I'm going to close this issue in favor of CesiumGS/cesium-webpack-example#8. If we want to continue to troubleshoot, we should move discussion to the forum or that issue. Thanks! |
Maybe cesium can leverage the new |
keyword: node builtins |
Analyzing my radio garden webpack build, I noticed that the build includes polyfills for several node.js libraries – over 100kb minified which isn't left out of the browser build.
The reason for this is the libraries being required in loadWithHttpRequest inside Resource.js.
(For my build, I followed the webpack tutorial at https://cesiumjs.org/tutorials/cesium-and-webpack/)
The text was updated successfully, but these errors were encountered: