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
1. Adds support for genuine ESM in Node (`type` and `exports` in `package.json` and
changed `main` path).
2. Changes browser paths to include "-browser" in the file name
3. Adds `browser` to `package.json` to point to browser build for browser-specific bundling.
Rollup users wishing the browser bundle must ensure `@rollup/plugin-node-resolve`
has `mainFields` to include `browser` as the first item in the array; Webpack users may
need to set `resolve` with `aliasFields: ['browser']` and/or
`mainFields: ['browser', 'module', 'main']`, ensuring that `browser` is in the front of the list
4. Has `module` point to the Node-specific build (with a new path)
- Breaking change: Add `type: 'commonjs'` and `exports: {import, require}`
(with `node-import-test` npm script to demo)
- Breaking change: Change paths for browser (now is
`dist/index-browser-umd.js` or `dist/index-browser-es.js`)
(for Node, `main` and `module` point to new Node-specific dist)
- Breaking enhancement: Add `browser` for browser bundling;
allowing static analysis environments, doesn't have however
conditional code to require `vm`); for ESM browser bundling,
now must check `browser` in Rollup Node resolver plugin;
see README
- Linting: quote props; as per latest ash-nazg
- Testing: Fix browser tests
- Travis: add default `dist` field to avoid extra config reporting
- Docs: Update
- npm: Reorder scripts by test execution order
- npm: Stable `mocha-multi-reporters`
- npm: Update devDeps. and package-lock
- npm: Bump to 5.0.0
0 commit comments