-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
82 lines (82 loc) · 2.66 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"name": "@react-loadable/revised",
"version": "1.5.0",
"description": "A higher order component for loading components with promises",
"main": "index.js",
"author": "Sang Tran <t@sang.jp>",
"license": "MIT",
"repository": "react-loadable/revised",
"files": [
"babel.js",
"babel.d.ts",
"webpack.js",
"webpack.d.ts",
"lib.js",
"lib.d.ts",
"index.js",
"index.d.ts",
"esm"
],
"exports": {
".": {
"require": "./index.js",
"import": "./index.js"
},
"./babel": {
"require": "./babel.js",
"import": "./esm/babel.mjs"
},
"./webpack": {
"require": "./webpack.js",
"import": "./esm/webpack.mjs"
},
"./lib": {
"require": "./lib.js",
"import": "./esm/lib.mjs"
}
},
"scripts": {
"test": "jest --coverage",
"build": "yarn build:cjs && yarn build:esm && yarn build:rename-esm",
"build:cjs": "tsc --target esnext --module commonjs --jsx react-jsx --declaration --inlineSourceMap --esModuleInterop --outDir ./ index.tsx babel.ts lib.ts webpack.ts",
"build:esm": "tsc --moduleResolution nodenext --target esnext --module esnext --jsx react-jsx --declaration --inlineSourceMap --esModuleInterop --outDir esm index.tsx babel.ts lib.ts webpack.ts",
"build:rename-esm": "for f in esm/*.js; do mv -- \"$f\" \"${f%.js}.mjs\"; done && for f in esm/*.d.ts; do mv -- \"$f\" \"${f%.d.ts}.d.mts\"; done",
"clean": "rm -rf esm coverage example/dist node_modules/.cache babel.js babel.d.ts webpack.js webpack.d.ts index.d.ts index.js lib.d.ts lib.js",
"start": "webpack --mode=development && node example/dist/server/main.js",
"start-4": "yarn add -D webpack@webpack-4 && yarn start",
"restore-5": "yarn add -D webpack",
"prepublishOnly": "yarn clean && yarn build && yarn test"
},
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.21.0",
"@babel/core": "^7.21.3",
"@babel/node": "^7.20.7",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-async-to-generator": "^7.20.7",
"@babel/plugin-transform-object-assign": "^7.18.6",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@types/node": "^18.15.11",
"@types/react": "^18.0.31",
"babel-jest": "^29.5.0",
"babel-loader": "^9.1.2",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"express": "^4.18.2",
"jest": "^29.5.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"regenerator-runtime": "^0.13.11",
"typescript": "^5.0.2",
"webpack": "^5.77.0",
"webpack-cli": "^5.0.1",
"webpack-node-externals": "^3.0.0"
},
"peerDependencies": {
"react": "*",
"webpack": "^4.46.0 || ^5.28.0"
}
}