|
4 | 4 | "version": "5.2.6",
|
5 | 5 | "description": "Render JSX to an HTML string, with support for Preact components.",
|
6 | 6 | "main": "dist/index.js",
|
7 |
| - "umd:main": "dist/index.js", |
| 7 | + "umd:main": "dist/index.umd.js", |
8 | 8 | "module": "dist/index.module.js",
|
9 | 9 | "jsnext:main": "dist/index.module.js",
|
10 | 10 | "types": "src/index.d.ts",
|
11 | 11 | "exports": {
|
12 | 12 | ".": {
|
13 | 13 | "types": "./src/index.d.ts",
|
14 |
| - "import": "./dist/index.mjs", |
15 | 14 | "browser": "./dist/index.module.js",
|
| 15 | + "umd": "./dist/index.umd.js", |
| 16 | + "import": "./dist/index.mjs", |
16 | 17 | "require": "./dist/index.js"
|
17 | 18 | },
|
18 | 19 | "./jsx": {
|
19 | 20 | "types": "./jsx.d.ts",
|
20 |
| - "import": "./dist/jsx.mjs", |
21 | 21 | "browser": "./dist/jsx.module.js",
|
| 22 | + "umd": "./dist/jsx.umd.js", |
| 23 | + "import": "./dist/jsx.mjs", |
22 | 24 | "require": "./dist/jsx.js"
|
23 | 25 | },
|
24 | 26 | "./package.json": "./package.json"
|
|
28 | 30 | "bench:v8": "BABEL_ENV=test microbundle benchmarks/index.js -f modern --alias benchmarkjs-pretty=benchmarks/lib/benchmark-lite.js --external none --target node --no-compress --no-sourcemap --raw -o benchmarks/.v8.mjs && v8 --module benchmarks/.v8.mjs",
|
29 | 31 | "build": "npm run -s transpile && npm run -s transpile:jsx && npm run -s copy-typescript-definition",
|
30 | 32 | "postbuild": "node ./config/node-13-exports.js && node ./config/node-commonjs.js",
|
31 |
| - "transpile": "microbundle src/index.js -f es,umd --target web --external preact", |
| 33 | + "transpile": "microbundle src/index.js -f es,cjs,umd --target web --external preact", |
32 | 34 | "transpile:jsx": "microbundle src/jsx.js -o dist/jsx.js --target web --external preact && microbundle dist/jsx.js -o dist/jsx.js -f cjs --external preact",
|
33 | 35 | "copy-typescript-definition": "copyfiles -f src/*.d.ts dist",
|
34 | 36 | "test": "eslint src test && tsc && npm run test:mocha && npm run test:mocha:compat && npm run test:mocha:debug && npm run bench",
|
|
0 commit comments