chore: dedupe rollup

This commit is contained in:
Daniel Roe 2023-02-17 14:13:17 +00:00
parent 5ae0d52754
commit 576ce9ee36
2 changed files with 45 additions and 114 deletions

View File

@ -181,7 +181,6 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
nitroConfig.rollupConfig!.plugins = await nitroConfig.rollupConfig!.plugins || []
nitroConfig.rollupConfig!.plugins = Array.isArray(nitroConfig.rollupConfig!.plugins) ? nitroConfig.rollupConfig!.plugins : [nitroConfig.rollupConfig!.plugins]
nitroConfig.rollupConfig!.plugins!.push(
// @ts-expect-error remove when rollup updates its types
ImportProtectionPlugin.rollup({
rootDir: nuxt.options.rootDir,
patterns: [

View File

@ -1761,7 +1761,7 @@ packages:
/@polka/url/1.0.0-next.21:
resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==}
/@rollup/plugin-alias/4.0.3_rollup@3.15.0:
/@rollup/plugin-alias/4.0.3_rollup@3.16.0:
resolution: {integrity: sha512-ZuDWE1q4PQDhvm/zc5Prun8sBpLJy41DMptYrS6MhAy9s9kL/doN1613BWfEchGVfKxzliJ3BjbOPizXX38DbQ==}
engines: {node: '>=14.0.0'}
peerDependencies:
@ -1770,10 +1770,10 @@ packages:
rollup:
optional: true
dependencies:
rollup: 3.15.0
rollup: 3.16.0
slash: 4.0.0
/@rollup/plugin-commonjs/24.0.1_rollup@3.15.0:
/@rollup/plugin-commonjs/24.0.1_rollup@3.16.0:
resolution: {integrity: sha512-15LsiWRZk4eOGqvrJyu3z3DaBu5BhXIMeWnijSRvd8irrrg9SHpQ1pH+BUK4H6Z9wL9yOxZJMTLU+Au86XHxow==}
engines: {node: '>=14.0.0'}
peerDependencies:
@ -1782,15 +1782,15 @@ packages:
rollup:
optional: true
dependencies:
'@rollup/pluginutils': 5.0.2_rollup@3.15.0
'@rollup/pluginutils': 5.0.2_rollup@3.16.0
commondir: 1.0.1
estree-walker: 2.0.2
glob: 8.1.0
is-reference: 1.2.1
magic-string: 0.29.0
rollup: 3.15.0
rollup: 3.16.0
/@rollup/plugin-inject/5.0.3_rollup@3.15.0:
/@rollup/plugin-inject/5.0.3_rollup@3.16.0:
resolution: {integrity: sha512-411QlbL+z2yXpRWFXSmw/teQRMkXcAAC8aYTemc15gwJRpvEVDQwoe+N/HTFD8RFG8+88Bme9DK2V9CVm7hJdA==}
engines: {node: '>=14.0.0'}
peerDependencies:
@ -1799,12 +1799,12 @@ packages:
rollup:
optional: true
dependencies:
'@rollup/pluginutils': 5.0.2_rollup@3.15.0
'@rollup/pluginutils': 5.0.2_rollup@3.16.0
estree-walker: 2.0.2
magic-string: 0.29.0
rollup: 3.15.0
rollup: 3.16.0
/@rollup/plugin-json/6.0.0_rollup@3.15.0:
/@rollup/plugin-json/6.0.0_rollup@3.16.0:
resolution: {integrity: sha512-i/4C5Jrdr1XUarRhVu27EEwjt4GObltD7c+MkCIpO2QIbojw8MUs+CCTqOphQi3Qtg1FLmYt+l+6YeoIf51J7w==}
engines: {node: '>=14.0.0'}
peerDependencies:
@ -1813,10 +1813,10 @@ packages:
rollup:
optional: true
dependencies:
'@rollup/pluginutils': 5.0.2_rollup@3.15.0
rollup: 3.15.0
'@rollup/pluginutils': 5.0.2_rollup@3.16.0
rollup: 3.16.0
/@rollup/plugin-node-resolve/15.0.1_rollup@3.15.0:
/@rollup/plugin-node-resolve/15.0.1_rollup@3.16.0:
resolution: {integrity: sha512-ReY88T7JhJjeRVbfCyNj+NXAG3IIsVMsX9b5/9jC98dRP8/yxlZdz7mHZbHk5zHr24wZZICS5AcXsFZAXYUQEg==}
engines: {node: '>=14.0.0'}
peerDependencies:
@ -1825,26 +1825,13 @@ packages:
rollup:
optional: true
dependencies:
'@rollup/pluginutils': 5.0.2_rollup@3.15.0
'@rollup/pluginutils': 5.0.2_rollup@3.16.0
'@types/resolve': 1.20.2
deepmerge: 4.3.0
is-builtin-module: 3.2.1
is-module: 1.0.0
resolve: 1.22.1
rollup: 3.15.0
/@rollup/plugin-replace/5.0.2_rollup@3.15.0:
resolution: {integrity: sha512-M9YXNekv/C/iHHK+cvORzfRYfPbq0RDD8r0G+bMiTXjNGKulPnCT9O3Ss46WfhI6ZOCgApOP7xAdmCQJ+U2LAA==}
engines: {node: '>=14.0.0'}
peerDependencies:
rollup: ^1.20.0||^2.0.0||^3.0.0
peerDependenciesMeta:
rollup:
optional: true
dependencies:
'@rollup/pluginutils': 5.0.2_rollup@3.15.0
magic-string: 0.29.0
rollup: 3.15.0
rollup: 3.16.0
/@rollup/plugin-replace/5.0.2_rollup@3.16.0:
resolution: {integrity: sha512-M9YXNekv/C/iHHK+cvORzfRYfPbq0RDD8r0G+bMiTXjNGKulPnCT9O3Ss46WfhI6ZOCgApOP7xAdmCQJ+U2LAA==}
@ -1858,9 +1845,8 @@ packages:
'@rollup/pluginutils': 5.0.2_rollup@3.16.0
magic-string: 0.29.0
rollup: 3.16.0
dev: false
/@rollup/plugin-terser/0.4.0_rollup@3.15.0:
/@rollup/plugin-terser/0.4.0_rollup@3.16.0:
resolution: {integrity: sha512-Ipcf3LPNerey1q9ZMjiaWHlNPEHNU/B5/uh9zXLltfEQ1lVSLLeZSgAtTPWGyw8Ip1guOeq+mDtdOlEj/wNxQw==}
engines: {node: '>=14.0.0'}
peerDependencies:
@ -1869,12 +1855,12 @@ packages:
rollup:
optional: true
dependencies:
rollup: 3.15.0
rollup: 3.16.0
serialize-javascript: 6.0.1
smob: 0.0.6
terser: 5.16.3
/@rollup/plugin-wasm/6.1.2_rollup@3.15.0:
/@rollup/plugin-wasm/6.1.2_rollup@3.16.0:
resolution: {integrity: sha512-YdrQ7zfnZ54Y+6raCev3tR1PrhQGxYKSTajGylhyP0oBacouuNo6KcNCk+pYKw9M98jxRWLFFca/udi76IDXzg==}
engines: {node: '>=14.0.0'}
peerDependencies:
@ -1883,7 +1869,7 @@ packages:
rollup:
optional: true
dependencies:
rollup: 3.15.0
rollup: 3.16.0
/@rollup/pluginutils/4.2.1:
resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==}
@ -1905,20 +1891,6 @@ packages:
estree-walker: 2.0.2
picomatch: 2.3.1
/@rollup/pluginutils/5.0.2_rollup@3.15.0:
resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==}
engines: {node: '>=14.0.0'}
peerDependencies:
rollup: ^1.20.0||^2.0.0||^3.0.0
peerDependenciesMeta:
rollup:
optional: true
dependencies:
'@types/estree': 1.0.0
estree-walker: 2.0.2
picomatch: 2.3.1
rollup: 3.15.0
/@rollup/pluginutils/5.0.2_rollup@3.16.0:
resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==}
engines: {node: '>=14.0.0'}
@ -1932,7 +1904,6 @@ packages:
estree-walker: 2.0.2
picomatch: 2.3.1
rollup: 3.16.0
dev: false
/@sinclair/typebox/0.25.23:
resolution: {integrity: sha512-VEB8ygeP42CFLWyAJhN5OklpxUliqdNEUcXb4xZ/CINqtYGTjL5ukluKdKzQ0iWdUxyQ7B0539PAUhHKrCNWSQ==}
@ -1987,12 +1958,12 @@ packages:
resolution: {integrity: sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==}
dependencies:
'@types/eslint': 8.21.1
'@types/estree': 0.0.51
'@types/estree': 1.0.0
/@types/eslint/8.21.1:
resolution: {integrity: sha512-rc9K8ZpVjNcLs8Fp0dkozd5Pt2Apk1glO4Vgz8ix1u6yFByxfqo5Yavpy65o+93TAe24jr7v+eSBtFLvOQtCRQ==}
dependencies:
'@types/estree': 0.0.51
'@types/estree': 1.0.0
'@types/json-schema': 7.0.11
/@types/estree/0.0.51:
@ -3377,7 +3348,7 @@ packages:
dependencies:
defu: 6.1.2
dotenv: 16.0.3
giget: 1.1.0
giget: 1.1.1
jiti: 1.17.1
mlly: 1.1.1
pathe: 1.1.0
@ -5103,20 +5074,6 @@ packages:
assert-plus: 1.0.0
dev: true
/giget/1.1.0:
resolution: {integrity: sha512-UA0Cz2/9Mo6ftSpGctnzsZcUsTLA+vEVJug/NZsH1CMZqbGvrN8h5Wl2O1BoHDjbYXqSjm82K7NaMZ0oT5p5LQ==}
hasBin: true
dependencies:
colorette: 2.0.19
defu: 6.1.2
https-proxy-agent: 5.0.1
mri: 1.2.0
node-fetch-native: 1.0.2
pathe: 1.1.0
tar: 6.1.13
transitivePeerDependencies:
- supports-color
/giget/1.1.1:
resolution: {integrity: sha512-P9FzMriXNDs0NYHO4nJSiODCE2+lC0XwwVquaC+rCVSmy8nDqCLMdHxq2N6IeJeheCcL+QxrBP/BiUIHdbtZ5Q==}
hasBin: true
@ -5130,7 +5087,6 @@ packages:
tar: 6.1.13
transitivePeerDependencies:
- supports-color
dev: true
/git-config-path/2.0.0:
resolution: {integrity: sha512-qc8h1KIQbJpp+241id3GuAtkdyJ+IK+LIVtkiFTRKRrmddDzs3SI9CvP1QYmWBFvm1I/PWRwj//of8bgAc0ltA==}
@ -6338,15 +6294,15 @@ packages:
dependencies:
'@cloudflare/kv-asset-handler': 0.3.0
'@netlify/functions': 1.4.0
'@rollup/plugin-alias': 4.0.3_rollup@3.15.0
'@rollup/plugin-commonjs': 24.0.1_rollup@3.15.0
'@rollup/plugin-inject': 5.0.3_rollup@3.15.0
'@rollup/plugin-json': 6.0.0_rollup@3.15.0
'@rollup/plugin-node-resolve': 15.0.1_rollup@3.15.0
'@rollup/plugin-replace': 5.0.2_rollup@3.15.0
'@rollup/plugin-terser': 0.4.0_rollup@3.15.0
'@rollup/plugin-wasm': 6.1.2_rollup@3.15.0
'@rollup/pluginutils': 5.0.2_rollup@3.15.0
'@rollup/plugin-alias': 4.0.3_rollup@3.16.0
'@rollup/plugin-commonjs': 24.0.1_rollup@3.16.0
'@rollup/plugin-inject': 5.0.3_rollup@3.16.0
'@rollup/plugin-json': 6.0.0_rollup@3.16.0
'@rollup/plugin-node-resolve': 15.0.1_rollup@3.16.0
'@rollup/plugin-replace': 5.0.2_rollup@3.16.0
'@rollup/plugin-terser': 0.4.0_rollup@3.16.0
'@rollup/plugin-wasm': 6.1.2_rollup@3.16.0
'@rollup/pluginutils': 5.0.2_rollup@3.16.0
'@vercel/nft': 0.22.6
archiver: 5.3.1
c12: 1.1.2
@ -6382,8 +6338,8 @@ packages:
pkg-types: 1.0.2
pretty-bytes: 6.1.0
radix3: 1.0.0
rollup: 3.15.0
rollup-plugin-visualizer: 5.9.0_rollup@3.15.0
rollup: 3.16.0
rollup-plugin-visualizer: 5.9.0_rollup@3.16.0
scule: 1.0.0
semver: 7.3.8
serve-placeholder: 2.0.1
@ -6392,7 +6348,7 @@ packages:
std-env: 3.3.2
ufo: 1.1.0
unenv: 1.2.0
unimport: 2.2.4_rollup@3.15.0
unimport: 2.2.4_rollup@3.16.0
unstorage: 1.1.5
transitivePeerDependencies:
- bufferutil
@ -7395,7 +7351,7 @@ packages:
hasBin: true
dev: true
/rollup-plugin-dts/5.2.0_xswiuafr57fmdlvfpvse52fe3e:
/rollup-plugin-dts/5.2.0_jmgh57anjttporuxda3xctaob4:
resolution: {integrity: sha512-B68T/haEu2MKcz4kNUhXB8/h5sq4gpplHAJIYNHbh8cp4ZkvzDvNca/11KQdFrB9ZeKucegQIotzo5T0JUtM8w==}
engines: {node: '>=v14'}
peerDependencies:
@ -7403,28 +7359,12 @@ packages:
typescript: ^4.1
dependencies:
magic-string: 0.29.0
rollup: 3.15.0
rollup: 3.16.0
typescript: 4.9.5
optionalDependencies:
'@babel/code-frame': 7.18.6
dev: true
/rollup-plugin-visualizer/5.9.0_rollup@3.15.0:
resolution: {integrity: sha512-bbDOv47+Bw4C/cgs0czZqfm8L82xOZssk4ayZjG40y9zbXclNk7YikrZTDao6p7+HDiGxrN0b65SgZiVm9k1Cg==}
engines: {node: '>=14'}
hasBin: true
peerDependencies:
rollup: 2.x || 3.x
peerDependenciesMeta:
rollup:
optional: true
dependencies:
open: 8.4.1
picomatch: 2.3.1
rollup: 3.15.0
source-map: 0.7.4
yargs: 17.7.0
/rollup-plugin-visualizer/5.9.0_rollup@3.16.0:
resolution: {integrity: sha512-bbDOv47+Bw4C/cgs0czZqfm8L82xOZssk4ayZjG40y9zbXclNk7YikrZTDao6p7+HDiGxrN0b65SgZiVm9k1Cg==}
engines: {node: '>=14'}
@ -7440,14 +7380,6 @@ packages:
rollup: 3.16.0
source-map: 0.7.4
yargs: 17.7.0
dev: false
/rollup/3.15.0:
resolution: {integrity: sha512-F9hrCAhnp5/zx/7HYmftvsNBkMfLfk/dXUh73hPSM2E3CRgap65orDNJbLetoiUFwSAk6iHPLvBrZ5iHYvzqsg==}
engines: {node: '>=14.18.0', npm: '>=8.0.0'}
hasBin: true
optionalDependencies:
fsevents: 2.3.2
/rollup/3.16.0:
resolution: {integrity: sha512-9wE1H5N1SJqnROpQanBGJ7lrIitwlUYGj4Va4eyf3+vNhoIHLPLag2/CUGIiq3V9lHOBJB6zTsGsPvc50oeihg==}
@ -8184,12 +8116,12 @@ packages:
resolution: {integrity: sha512-EK5LeABThyn5KbX0eo5c7xKRQhnHVxKN8/e5Y+YQEf4ZobJB6OZ766756wbVqzIY/G/MvAfLbc6EwFPdSNnlpA==}
hasBin: true
dependencies:
'@rollup/plugin-alias': 4.0.3_rollup@3.15.0
'@rollup/plugin-commonjs': 24.0.1_rollup@3.15.0
'@rollup/plugin-json': 6.0.0_rollup@3.15.0
'@rollup/plugin-node-resolve': 15.0.1_rollup@3.15.0
'@rollup/plugin-replace': 5.0.2_rollup@3.15.0
'@rollup/pluginutils': 5.0.2_rollup@3.15.0
'@rollup/plugin-alias': 4.0.3_rollup@3.16.0
'@rollup/plugin-commonjs': 24.0.1_rollup@3.16.0
'@rollup/plugin-json': 6.0.0_rollup@3.16.0
'@rollup/plugin-node-resolve': 15.0.1_rollup@3.16.0
'@rollup/plugin-replace': 5.0.2_rollup@3.16.0
'@rollup/pluginutils': 5.0.2_rollup@3.16.0
chalk: 5.2.0
consola: 2.15.3
defu: 6.1.2
@ -8204,8 +8136,8 @@ packages:
pathe: 1.1.0
pkg-types: 1.0.2
pretty-bytes: 6.1.0
rollup: 3.15.0
rollup-plugin-dts: 5.2.0_xswiuafr57fmdlvfpvse52fe3e
rollup: 3.16.0
rollup-plugin-dts: 5.2.0_jmgh57anjttporuxda3xctaob4
scule: 1.0.0
typescript: 4.9.5
untyped: 1.2.2
@ -8276,10 +8208,10 @@ packages:
- rollup
dev: false
/unimport/2.2.4_rollup@3.15.0:
/unimport/2.2.4_rollup@3.16.0:
resolution: {integrity: sha512-qMgmeEGqqrrmEtm0dqxMG37J6xBtrriqxq9hILvDb+e6l2F0yTnJomLoCCp0eghLR7bYGeBsUU5Y0oyiUYhViw==}
dependencies:
'@rollup/pluginutils': 5.0.2_rollup@3.15.0
'@rollup/pluginutils': 5.0.2_rollup@3.16.0
escape-string-regexp: 5.0.0
fast-glob: 3.2.12
local-pkg: 0.4.3