|
22 | 22 | "structures"
|
23 | 23 | ],
|
24 | 24 | "sideEffects": false,
|
25 |
| - "main": "lib/index.js", |
| 25 | + "source": "src/index.js", |
| 26 | + "main": "dist/index.cjs", |
| 27 | + "module": "dist/index.module.js", |
| 28 | + "esmodule": "dist/index.modern.js", |
| 29 | + "umd:main": "dist/index.umd.js", |
| 30 | + "unpkg": "dist/index.umd.js", |
| 31 | + "exports": { |
| 32 | + ".": { |
| 33 | + "browser": "./dist/index.module.js", |
| 34 | + "umd": "./dist/index.umd.js", |
| 35 | + "require": "./dist/index.cjs", |
| 36 | + "default": "./dist/index.modern.js" |
| 37 | + } |
| 38 | + }, |
26 | 39 | "files": [
|
27 |
| - "lib" |
| 40 | + "dist" |
28 | 41 | ],
|
29 | 42 | "scripts": {
|
30 |
| - "build": "babel --delete-dir-on-start --env-name production src -d lib", |
| 43 | + "build": "NODE_ENV=production microbundle", |
31 | 44 | "build-docs": "esdoc",
|
32 | 45 | "build-gh-pages": "npm run build-docs",
|
33 | 46 | "commit-msg": "commitlint --edit",
|
|
50 | 63 | "@iterable-iterator/zip": "^1.0.1"
|
51 | 64 | },
|
52 | 65 | "devDependencies": {
|
53 |
| - "@babel/cli": "7.19.3", |
54 | 66 | "@babel/core": "7.19.6",
|
| 67 | + "@babel/plugin-transform-destructuring": "7.20.0", |
| 68 | + "@babel/plugin-transform-for-of": "7.18.8", |
55 | 69 | "@babel/preset-env": "7.19.4",
|
56 | 70 | "@babel/register": "7.18.9",
|
57 | 71 | "@commitlint/cli": "17.2.0",
|
|
78 | 92 | "esdoc-standard-plugin": "1.0.0",
|
79 | 93 | "fixpack": "4.0.0",
|
80 | 94 | "husky": "8.0.1",
|
| 95 | + "microbundle": "0.15.1", |
81 | 96 | "np": "7.6.2",
|
82 | 97 | "pinst": "3.0.0",
|
83 | 98 | "power-assert": "1.6.1",
|
|
175 | 190 | ]
|
176 | 191 | ],
|
177 | 192 | "plugins": [
|
| 193 | + "@babel/plugin-transform-destructuring", |
| 194 | + "@babel/plugin-transform-for-of", |
178 | 195 | "babel-plugin-unassert"
|
179 | 196 | ]
|
180 | 197 | }
|
|
0 commit comments