Match-id-8bcb6d48112103aa76cc15b083d87417eb75d5e9

This commit is contained in:
* 2023-08-28 16:53:28 +08:00
commit ef2574a65b
6 changed files with 17 additions and 10 deletions

View File

@ -4,16 +4,15 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"start": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"@ant-design/icons": "^5.0.1",
"@babel/plugin-proposal-export-default-from": "^7.18.6",
"@babel/plugin-transform-react-jsx": "^7.21.0",
"@babel/runtime": "7.6.2",
"inulajs": "^0.0.3",
"inulajs": "^0.0.8",
"antd": "^4.0.0",
"axios": "^0.21.0",
"classnames": "^2.2.6",

View File

@ -22,7 +22,13 @@ export default defineConfig({
react({
babel: {
plugins: [
'@babel/plugin-transform-react-jsx',
[
"@babel/plugin-transform-react-jsx",
{
"runtime": "automatic", // 新增
"importSource": "inulajs" // 新增
}
],
'@babel/plugin-proposal-class-properties',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-export-default-from',

View File

@ -42,7 +42,7 @@
"dependencies": {
"@ant-design/icons": "^5.1.4",
"@babel/plugin-proposal-export-default-from": "^7.18.6",
"inulajs": "^0.0.3",
"inulajs": "^0.0.8",
"antd": "^4.0.0",
"axios": "^1.4.0",
"classnames": "^2.2.6",

View File

@ -18,7 +18,7 @@ const devServerOptions = {
errors: true,
warnings: false,
runtimeErrors: error => {
if (error.message === 'ResizeObserver loop limit exceeded') {
if (error.message.indexOf('ResizeObserver') !== -1) {
return false;
}
return true;

View File

@ -4,13 +4,14 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "vite",
"build": "vite build"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"inulajs": "^0.0.3"
"inulajs": "^0.0.8"
},
"devDependencies": {
"@babel/core": "^7.21.4",
@ -18,6 +19,7 @@
"@babel/preset-react": "^7.18.6",
"@vitejs/plugin-react": "^3.1.0",
"@vitejs/plugin-react-refresh": "^1.3.6",
"babel-plugin-import": "^1.13.6"
"babel-plugin-import": "^1.13.6",
"vite": "^4.4.9"
}
}

View File

@ -10,7 +10,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"inulajs": "^0.0.3"
"inulajs": "^0.0.8"
},
"devDependencies": {
"@babel/core": "^7.21.4",