Match-id-8bcb6d48112103aa76cc15b083d87417eb75d5e9
This commit is contained in:
commit
ef2574a65b
|
@ -4,16 +4,15 @@
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"start": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/icons": "^5.0.1",
|
"@ant-design/icons": "^5.0.1",
|
||||||
"@babel/plugin-proposal-export-default-from": "^7.18.6",
|
"@babel/plugin-proposal-export-default-from": "^7.18.6",
|
||||||
"@babel/plugin-transform-react-jsx": "^7.21.0",
|
"@babel/plugin-transform-react-jsx": "^7.21.0",
|
||||||
"@babel/runtime": "7.6.2",
|
"@babel/runtime": "7.6.2",
|
||||||
"inulajs": "^0.0.3",
|
"inulajs": "^0.0.8",
|
||||||
"antd": "^4.0.0",
|
"antd": "^4.0.0",
|
||||||
"axios": "^0.21.0",
|
"axios": "^0.21.0",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
|
|
|
@ -22,7 +22,13 @@ export default defineConfig({
|
||||||
react({
|
react({
|
||||||
babel: {
|
babel: {
|
||||||
plugins: [
|
plugins: [
|
||||||
'@babel/plugin-transform-react-jsx',
|
[
|
||||||
|
"@babel/plugin-transform-react-jsx",
|
||||||
|
{
|
||||||
|
"runtime": "automatic", // 新增
|
||||||
|
"importSource": "inulajs" // 新增
|
||||||
|
}
|
||||||
|
],
|
||||||
'@babel/plugin-proposal-class-properties',
|
'@babel/plugin-proposal-class-properties',
|
||||||
'@babel/plugin-syntax-dynamic-import',
|
'@babel/plugin-syntax-dynamic-import',
|
||||||
'@babel/plugin-proposal-export-default-from',
|
'@babel/plugin-proposal-export-default-from',
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/icons": "^5.1.4",
|
"@ant-design/icons": "^5.1.4",
|
||||||
"@babel/plugin-proposal-export-default-from": "^7.18.6",
|
"@babel/plugin-proposal-export-default-from": "^7.18.6",
|
||||||
"inulajs": "^0.0.3",
|
"inulajs": "^0.0.8",
|
||||||
"antd": "^4.0.0",
|
"antd": "^4.0.0",
|
||||||
"axios": "^1.4.0",
|
"axios": "^1.4.0",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
|
|
|
@ -18,7 +18,7 @@ const devServerOptions = {
|
||||||
errors: true,
|
errors: true,
|
||||||
warnings: false,
|
warnings: false,
|
||||||
runtimeErrors: error => {
|
runtimeErrors: error => {
|
||||||
if (error.message === 'ResizeObserver loop limit exceeded') {
|
if (error.message.indexOf('ResizeObserver') !== -1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -4,13 +4,14 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"start": "vite",
|
||||||
|
"build": "vite build"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"inulajs": "^0.0.3"
|
"inulajs": "^0.0.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.21.4",
|
"@babel/core": "^7.21.4",
|
||||||
|
@ -18,6 +19,7 @@
|
||||||
"@babel/preset-react": "^7.18.6",
|
"@babel/preset-react": "^7.18.6",
|
||||||
"@vitejs/plugin-react": "^3.1.0",
|
"@vitejs/plugin-react": "^3.1.0",
|
||||||
"@vitejs/plugin-react-refresh": "^1.3.6",
|
"@vitejs/plugin-react-refresh": "^1.3.6",
|
||||||
"babel-plugin-import": "^1.13.6"
|
"babel-plugin-import": "^1.13.6",
|
||||||
|
"vite": "^4.4.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"inulajs": "^0.0.3"
|
"inulajs": "^0.0.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.21.4",
|
"@babel/core": "^7.21.4",
|
||||||
|
|
Loading…
Reference in New Issue