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
Using named exports from JSON modules: this is not supported by the new specification and you will get a warning. Instead of import { version } from './package.json'; console.log(version); use import package from './package.json'; console.log(package.version)
Which package?
intl-numberformat
Describe the bug
Webpack 5 throws a warning if it encounters any named exports from JSON files as described in the webpack 5 migration guide.
https://webpack.js.org/migrate/5/#cleanup-the-code
Using named exports from JSON modules: this is not supported by the new specification and you will get a warning. Instead of import { version } from './package.json'; console.log(version); use import package from './package.json'; console.log(package.version)
To Reproduce
Steps to reproduce the behavior:
formatjs/packages/intl-numberformat/src/core.ts
Line 13 in 028e1e5
The text was updated successfully, but these errors were encountered: