You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
which points to a Webpack-compiled files, which are not CommonJS module files and do not export anything. This is because Webpack-built bundles are reduced to be fully encapsulated vanilla JS files, and not CJS modules.
The effect of this is that require('zone.js') in Node does nothing — returns {} instead of Zone's public symbols. Similarly when require('zone.js') is used in 3rd party's Webpack build, it will end up running Webpack runtime inside Webpack runtime, instead of importing the module.
package.json contains:
which points to a Webpack-compiled files, which are not CommonJS module files and do not export anything. This is because Webpack-built bundles are reduced to be fully encapsulated vanilla JS files, and not CJS modules.
The effect of this is that
require('zone.js')in Node does nothing — returns{}instead of Zone's public symbols. Similarly whenrequire('zone.js')is used in 3rd party's Webpack build, it will end up running Webpack runtime inside Webpack runtime, instead of importing the module.The
mainandbrowserfields must point to CJS modules that do not have Webpack runtime, and havemodule.exports = …statements instead.