alibaba / react-intl-universal

Internationalize React apps. Not only for Component but also for Vanilla JS.
1.33k stars 154 forks source link

feat: support ECMAScript module format #188

Closed Cecil0o0 closed 2 years ago

Cecil0o0 commented 2 years ago
  1. support ECMAScript module format

    • rewrite module export from commonjs to esm
    • a new es target in rollup.config.js
    • tell the consumer where to find the entry point of package, with exports field in package.json. This feature added from v12.16.0, see more details.
  2. fix warnings at build phase

    • use more clean style of importing effects, like import "@babel/polyfill"
CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.