feat: npm i --save-dev @types/gsap

This commit is contained in:
landaiqing
2024-05-06 01:28:16 +08:00
parent 7e7224d00d
commit ad0dd8d33d
3 changed files with 12 additions and 5 deletions

View File

@@ -38,6 +38,7 @@
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-babel": "^6.0.4",
"@types/gsap": "^3.0.0",
"@types/node": "^20.11.30", "@types/node": "^20.11.30",
"@types/react": "^18.2.69", "@types/react": "^18.2.69",
"@types/react-dom": "^18.2.22", "@types/react-dom": "^18.2.22",

11
pnpm-lock.yaml generated
View File

@@ -85,6 +85,9 @@ devDependencies:
'@rollup/plugin-babel': '@rollup/plugin-babel':
specifier: ^6.0.4 specifier: ^6.0.4
version: 6.0.4(@babel/core@7.24.5) version: 6.0.4(@babel/core@7.24.5)
'@types/gsap':
specifier: ^3.0.0
version: 3.0.0
'@types/node': '@types/node':
specifier: ^20.11.30 specifier: ^20.11.30
version: 20.12.8 version: 20.12.8
@@ -3120,6 +3123,13 @@ packages:
/@types/estree@1.0.5: /@types/estree@1.0.5:
resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
/@types/gsap@3.0.0:
resolution: {integrity: sha512-BbWLi4WRHGze4C8NV7U7yRevuBFiPkPZZyGa0rryanvh/9HPUFXTNBXsGQxJZJq7Ix7j4RXMYodP3s+OsqCErg==}
deprecated: This is a stub types definition. gsap provides its own type definitions, so you do not need this installed.
dependencies:
gsap: 3.12.5
dev: true
/@types/json-schema@7.0.15: /@types/json-schema@7.0.15:
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
dev: true dev: true
@@ -5278,7 +5288,6 @@ packages:
/gsap@3.12.5: /gsap@3.12.5:
resolution: {integrity: sha512-srBfnk4n+Oe/ZnMIOXt3gT605BX9x5+rh/prT2F1SsNJsU1XuMiP0E2aptW481OnonOGACZWBqseH5Z7csHxhQ==} resolution: {integrity: sha512-srBfnk4n+Oe/ZnMIOXt3gT605BX9x5+rh/prT2F1SsNJsU1XuMiP0E2aptW481OnonOGACZWBqseH5Z7csHxhQ==}
dev: false
/has-ansi@2.0.0: /has-ansi@2.0.0:
resolution: {integrity: sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==} resolution: {integrity: sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==}

View File

@@ -51,10 +51,7 @@ export default defineConfig(({ mode }) => {
'esnext.global-this', 'esnext.global-this',
'esnext.string.match-all', 'esnext.string.match-all',
], ],
modernPolyfills: [ modernPolyfills: ['es.promise.all-settled', 'es.object.entries'],
'es.promise.all-settled',
'es.object.entries',
],
}), }),
// 修改 icons 相关配置 // 修改 icons 相关配置
createSvgIconsPlugin({ createSvgIconsPlugin({