diff --git a/package.json b/package.json index 44dceae..13b6693 100644 --- a/package.json +++ b/package.json @@ -77,6 +77,7 @@ "fast-glob": "^3.3.2", "fs-extra": "^11.2.0", "local-pkg": "^0.5.0", + "lodash.omit": "^4.5.0", "magic-string": "^0.30.10", "on-change": "^5.0.1", "parse5": "^7.1.2", @@ -94,6 +95,7 @@ "@types/babel__preset-env": "^7.9.6", "@types/debug": "^4.1.12", "@types/fs-extra": "^11.0.4", + "@types/lodash.omit": "^4.5.9", "@types/node": "^20.12.12", "@types/prompts": "^2.4.9", "bumpp": "^9.4.1", diff --git a/playground/spa/vite.config.ts b/playground/spa/vite.config.ts index 15ccefb..a7c5ae3 100644 --- a/playground/spa/vite.config.ts +++ b/playground/spa/vite.config.ts @@ -40,7 +40,7 @@ export default defineConfig(() => ({ injectTo: 'head-prepend', }, ]), - legacy(), + legacy({ renderLegacyChunks: true, renderModernChunks: true }), ], clearScreen: false, })) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 97663b3..e3658d1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,5 +1,9 @@ lockfileVersion: '6.0' +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + importers: .: @@ -40,6 +44,9 @@ importers: local-pkg: specifier: ^0.5.0 version: 0.5.0 + lodash.omit: + specifier: ^4.5.0 + version: 4.5.0 magic-string: specifier: ^0.30.10 version: 0.30.10 @@ -86,6 +93,9 @@ importers: '@types/fs-extra': specifier: ^11.0.4 version: 11.0.4 + '@types/lodash.omit': + specifier: ^4.5.9 + version: 4.5.9 '@types/node': specifier: ^20.12.12 version: 20.12.12 @@ -121,7 +131,7 @@ importers: version: 5.4.5 vite: specifier: ^5.2.11 - version: 5.2.11(@types/node@20.12.12) + version: 5.2.11(@types/node@20.12.12)(terser@5.26.0) vitest: specifier: ^1.6.0 version: 1.6.0(@types/node@20.12.12) @@ -172,7 +182,7 @@ importers: version: 5.2.2 vite: specifier: ^5.2.10 - version: 5.2.11(terser@5.26.0) + version: 5.2.11(@types/node@20.12.12)(terser@5.26.0) vite-plugin-public-typescript: specifier: workspace:* version: link:../.. @@ -203,7 +213,7 @@ importers: version: 5.2.2 vite: specifier: ^5.0.12 - version: 5.0.12 + version: 5.0.12(@types/node@20.12.12) vite-plugin-public-typescript: specifier: workspace:* version: link:../.. @@ -246,7 +256,44 @@ importers: version: 3.14.0 vite: specifier: ^5.0.12 - version: 5.0.12 + version: 5.0.12(@types/node@20.12.12) + + playground/temp-spa: + dependencies: + react: + specifier: ^18.2.0 + version: 18.2.0 + react-dom: + specifier: ^18.2.0 + version: 18.2.0(react@18.2.0) + devDependencies: + '@babel/plugin-transform-react-constant-elements': + specifier: ^7.23.3 + version: 7.23.3(@babel/core@7.24.5) + '@babel/preset-react': + specifier: ^7.23.3 + version: 7.23.3(@babel/core@7.24.5) + '@types/react': + specifier: ^18.2.28 + version: 18.2.28 + '@types/react-dom': + specifier: ^18.2.13 + version: 18.2.13 + '@vitejs/plugin-react': + specifier: ^4.2.0 + version: 4.2.1(vite@5.2.11) + cross-env: + specifier: ^7.0.3 + version: 7.0.3 + typescript: + specifier: ^5.2.2 + version: 5.4.5 + vite: + specifier: ^5.0.2 + version: 5.2.11(@types/node@20.12.12)(terser@5.26.0) + vite-plugin-public-typescript: + specifier: workspace:* + version: link:../.. packages: @@ -281,13 +328,6 @@ packages: resolution: {integrity: sha512-yrpD1WRGqsJwANaDIdtHo+YVjvIOFAjC83lu5qENIgrafwZcJgSXDuwVMXOgok4tFzpeKLsFQ6c3FoUdloLWBQ==} dev: true - /@babel/code-frame@7.22.13: - resolution: {integrity: sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/highlight': 7.22.13 - chalk: 2.4.2 - /@babel/code-frame@7.23.5: resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==} engines: {node: '>=6.9.0'} @@ -325,7 +365,7 @@ packages: '@babel/parser': 7.23.9 '@babel/template': 7.23.9 '@babel/traverse': 7.23.9 - '@babel/types': 7.23.9 + '@babel/types': 7.24.5 convert-source-map: 2.0.0 debug: 4.3.4 gensync: 1.0.0-beta.2 @@ -361,7 +401,7 @@ packages: resolution: {integrity: sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.9 + '@babel/types': 7.24.5 '@jridgewell/gen-mapping': 0.3.3 '@jridgewell/trace-mapping': 0.3.19 jsesc: 2.5.2 @@ -380,13 +420,13 @@ packages: resolution: {integrity: sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.0 + '@babel/types': 7.24.5 /@babel/helper-builder-binary-assignment-operator-visitor@7.22.15: resolution: {integrity: sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.4 + '@babel/types': 7.24.5 /@babel/helper-compilation-targets@7.23.6: resolution: {integrity: sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==} @@ -412,7 +452,7 @@ packages: '@babel/helper-optimise-call-expression': 7.22.5 '@babel/helper-replace-supers': 7.22.20(@babel/core@7.23.9) '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-split-export-declaration': 7.24.5 semver: 6.3.1 dev: true @@ -465,7 +505,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-compilation-targets': 7.23.6 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 debug: 4.3.4 lodash.debounce: 4.0.8 resolve: 1.22.6 @@ -496,20 +536,20 @@ packages: resolution: {integrity: sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/template': 7.22.15 - '@babel/types': 7.23.0 + '@babel/template': 7.24.0 + '@babel/types': 7.24.5 /@babel/helper-hoist-variables@7.22.5: resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.0 + '@babel/types': 7.24.5 /@babel/helper-member-expression-to-functions@7.23.0: resolution: {integrity: sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.4 + '@babel/types': 7.24.5 /@babel/helper-member-expression-to-functions@7.24.5: resolution: {integrity: sha512-4owRteeihKWKamtqg4JmWSsEZU445xpFRXPEwp44HbgbxdWlUV1b4Agg4lkA806Lil5XM/e+FJyS0vj5T6vmcA==} @@ -522,7 +562,8 @@ packages: resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.0 + '@babel/types': 7.24.5 + dev: true /@babel/helper-module-imports@7.24.3: resolution: {integrity: sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==} @@ -538,10 +579,10 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-environment-visitor': 7.22.20 - '@babel/helper-module-imports': 7.22.15 + '@babel/helper-module-imports': 7.24.3 '@babel/helper-simple-access': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-validator-identifier': 7.24.5 dev: true /@babel/helper-module-transforms@7.23.3(@babel/core@7.24.5): @@ -552,7 +593,7 @@ packages: dependencies: '@babel/core': 7.24.5 '@babel/helper-environment-visitor': 7.22.20 - '@babel/helper-module-imports': 7.22.15 + '@babel/helper-module-imports': 7.24.3 '@babel/helper-simple-access': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 '@babel/helper-validator-identifier': 7.22.20 @@ -575,16 +616,16 @@ packages: resolution: {integrity: sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.4 + '@babel/types': 7.24.5 /@babel/helper-plugin-utils@7.22.5: resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==} engines: {node: '>=6.9.0'} + dev: true /@babel/helper-plugin-utils@7.24.5: resolution: {integrity: sha512-xjNLDopRzW2o6ba0gKbkZq5YWEBaK3PCyTOY1K2P/O07LGMhMqlMXPxwN4S5/RhWuCobT8z0jrlKGlYmeR1OhQ==} engines: {node: '>=6.9.0'} - dev: false /@babel/helper-remap-async-to-generator@7.22.20(@babel/core@7.23.9): resolution: {integrity: sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==} @@ -638,7 +679,7 @@ packages: resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.0 + '@babel/types': 7.24.5 /@babel/helper-simple-access@7.24.5: resolution: {integrity: sha512-uH3Hmf5q5n7n8mz7arjUlDOCbttY/DW4DYhE6FUsjKJ/oYC1kQQUvwEQWxRwUpX9qQKRXeqLwWxrqilMrf32sQ==} @@ -650,13 +691,13 @@ packages: resolution: {integrity: sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.4 + '@babel/types': 7.24.5 /@babel/helper-split-export-declaration@7.22.6: resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.0 + '@babel/types': 7.24.5 /@babel/helper-split-export-declaration@7.24.5: resolution: {integrity: sha512-5CHncttXohrHk8GWOFCcCl4oRD9fKosWlIRgWm4ql9VYioKm52Mk2xsmoohvm7f3JoiLSM5ZgJuRaf5QZZYd3Q==} @@ -667,6 +708,7 @@ packages: /@babel/helper-string-parser@7.22.5: resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==} engines: {node: '>=6.9.0'} + dev: true /@babel/helper-string-parser@7.23.4: resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==} @@ -698,8 +740,8 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/helper-function-name': 7.23.0 - '@babel/template': 7.22.15 - '@babel/types': 7.23.4 + '@babel/template': 7.24.0 + '@babel/types': 7.24.5 /@babel/helpers@7.23.9: resolution: {integrity: sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ==} @@ -707,7 +749,7 @@ packages: dependencies: '@babel/template': 7.23.9 '@babel/traverse': 7.23.9 - '@babel/types': 7.23.9 + '@babel/types': 7.24.5 transitivePeerDependencies: - supports-color dev: true @@ -722,19 +764,11 @@ packages: transitivePeerDependencies: - supports-color - /@babel/highlight@7.22.13: - resolution: {integrity: sha512-C/BaXcnnvBCmHTpz/VGZ8jgtE2aYlW4hxDhseJAWZb7gqGM/qtCK6iZUb0TyKFf7BOUsBH7Q7fkRsDRhg1XklQ==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-validator-identifier': 7.22.20 - chalk: 2.4.2 - js-tokens: 4.0.0 - /@babel/highlight@7.23.4: resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-validator-identifier': 7.24.5 chalk: 2.4.2 js-tokens: 4.0.0 dev: true @@ -754,6 +788,7 @@ packages: hasBin: true dependencies: '@babel/types': 7.23.0 + dev: true /@babel/parser@7.23.4: resolution: {integrity: sha512-vf3Xna6UEprW+7t6EtOmFpHNAuxw3xqPZghy+brsnusscJRW5BMUzzHZc5ICjULee81WeUV2jjakG09MDglJXQ==} @@ -768,7 +803,7 @@ packages: engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.23.9 + '@babel/types': 7.24.5 dev: true /@babel/parser@7.24.5: @@ -796,7 +831,7 @@ packages: '@babel/core': ^7.0.0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.24.1(@babel/core@7.24.5): @@ -816,7 +851,7 @@ packages: '@babel/core': ^7.13.0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 '@babel/plugin-transform-optional-chaining': 7.23.4(@babel/core@7.23.9) dev: true @@ -841,7 +876,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-environment-visitor': 7.22.20 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.24.1(@babel/core@7.24.5): @@ -879,7 +914,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.24.5): @@ -888,7 +923,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.23.9): @@ -897,7 +932,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.24.5): @@ -906,7 +941,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.23.9): @@ -916,7 +951,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.24.5): @@ -926,7 +961,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.23.9): @@ -935,7 +970,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-dynamic-import@7.8.3(@babel/core@7.24.5): @@ -944,7 +979,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.23.9): @@ -953,7 +988,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-export-namespace-from@7.8.3(@babel/core@7.24.5): @@ -962,7 +997,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-import-assertions@7.23.3(@babel/core@7.23.9): @@ -972,7 +1007,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-import-assertions@7.24.1(@babel/core@7.24.5): @@ -992,7 +1027,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-import-attributes@7.24.1(@babel/core@7.24.5): @@ -1011,7 +1046,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.24.5): @@ -1020,7 +1055,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.23.9): @@ -1029,7 +1064,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.24.5): @@ -1038,7 +1073,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-jsx@7.22.5(@babel/core@7.24.5): @@ -1048,7 +1083,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-jsx@7.24.1(@babel/core@7.24.5): @@ -1067,7 +1102,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.24.5): @@ -1076,7 +1111,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.23.9): @@ -1085,7 +1120,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.24.5): @@ -1094,7 +1129,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.23.9): @@ -1103,7 +1138,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.24.5): @@ -1112,7 +1147,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.23.9): @@ -1121,7 +1156,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.24.5): @@ -1130,7 +1165,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.23.9): @@ -1139,7 +1174,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.24.5): @@ -1148,7 +1183,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.23.9): @@ -1157,7 +1192,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.24.5): @@ -1166,7 +1201,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.23.9): @@ -1176,7 +1211,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.24.5): @@ -1186,7 +1221,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.23.9): @@ -1196,7 +1231,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.24.5): @@ -1206,7 +1241,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-syntax-typescript@7.24.1(@babel/core@7.24.5): @@ -1227,7 +1262,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.9) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-syntax-unicode-sets-regex@7.18.6(@babel/core@7.24.5): @@ -1238,7 +1273,7 @@ packages: dependencies: '@babel/core': 7.24.5 '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.24.5) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-transform-arrow-functions@7.23.3(@babel/core@7.23.9): @@ -1248,7 +1283,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-arrow-functions@7.24.1(@babel/core@7.24.5): @@ -1269,7 +1304,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-environment-visitor': 7.22.20 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/helper-remap-async-to-generator': 7.22.20(@babel/core@7.23.9) '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.23.9) dev: true @@ -1294,8 +1329,8 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-module-imports': 7.22.15 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-module-imports': 7.24.3 + '@babel/helper-plugin-utils': 7.24.5 '@babel/helper-remap-async-to-generator': 7.22.20(@babel/core@7.23.9) dev: true @@ -1318,7 +1353,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-block-scoped-functions@7.24.1(@babel/core@7.24.5): @@ -1338,7 +1373,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-block-scoping@7.24.5(@babel/core@7.24.5): @@ -1359,7 +1394,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.23.9) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-class-properties@7.24.1(@babel/core@7.24.5): @@ -1381,7 +1416,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.23.9) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.23.9) dev: true @@ -1408,7 +1443,7 @@ packages: '@babel/helper-compilation-targets': 7.23.6 '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-function-name': 7.23.0 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/helper-replace-supers': 7.22.20(@babel/core@7.23.9) '@babel/helper-split-export-declaration': 7.22.6 globals: 11.12.0 @@ -1438,7 +1473,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/template': 7.22.15 dev: true @@ -1460,7 +1495,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-destructuring@7.24.5(@babel/core@7.24.5): @@ -1481,7 +1516,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.9) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-dotall-regex@7.24.1(@babel/core@7.24.5): @@ -1502,7 +1537,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-duplicate-keys@7.24.1(@babel/core@7.24.5): @@ -1522,7 +1557,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/plugin-syntax-dynamic-import': 7.8.3(@babel/core@7.23.9) dev: true @@ -1545,7 +1580,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-builder-binary-assignment-operator-visitor': 7.22.15 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-exponentiation-operator@7.24.1(@babel/core@7.24.5): @@ -1566,7 +1601,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/plugin-syntax-export-namespace-from': 7.8.3(@babel/core@7.23.9) dev: true @@ -1588,7 +1623,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 dev: true @@ -1612,7 +1647,7 @@ packages: '@babel/core': 7.23.9 '@babel/helper-compilation-targets': 7.23.6 '@babel/helper-function-name': 7.23.0 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-function-name@7.24.1(@babel/core@7.24.5): @@ -1634,7 +1669,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.23.9) dev: true @@ -1656,7 +1691,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-literals@7.24.1(@babel/core@7.24.5): @@ -1676,7 +1711,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.23.9) dev: true @@ -1698,7 +1733,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-member-expression-literals@7.24.1(@babel/core@7.24.5): @@ -1719,7 +1754,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.9) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-modules-amd@7.24.1(@babel/core@7.24.5): @@ -1741,7 +1776,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.9) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/helper-simple-access': 7.22.5 dev: true @@ -1766,8 +1801,8 @@ packages: '@babel/core': 7.23.9 '@babel/helper-hoist-variables': 7.22.5 '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.9) - '@babel/helper-plugin-utils': 7.22.5 - '@babel/helper-validator-identifier': 7.22.20 + '@babel/helper-plugin-utils': 7.24.5 + '@babel/helper-validator-identifier': 7.24.5 dev: true /@babel/plugin-transform-modules-systemjs@7.24.1(@babel/core@7.24.5): @@ -1791,7 +1826,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.9) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-modules-umd@7.24.1(@babel/core@7.24.5): @@ -1813,7 +1848,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.9) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-named-capturing-groups-regex@7.22.5(@babel/core@7.24.5): @@ -1824,7 +1859,7 @@ packages: dependencies: '@babel/core': 7.24.5 '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.24.5) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: false /@babel/plugin-transform-new-target@7.23.3(@babel/core@7.23.9): @@ -1834,7 +1869,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-new-target@7.24.1(@babel/core@7.24.5): @@ -1854,7 +1889,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.23.9) dev: true @@ -1876,7 +1911,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.23.9) dev: true @@ -1900,7 +1935,7 @@ packages: '@babel/compat-data': 7.23.5 '@babel/core': 7.23.9 '@babel/helper-compilation-targets': 7.23.6 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.23.9) '@babel/plugin-transform-parameters': 7.23.3(@babel/core@7.23.9) dev: true @@ -1925,7 +1960,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/helper-replace-supers': 7.22.20(@babel/core@7.23.9) dev: true @@ -1947,7 +1982,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.23.9) dev: true @@ -1969,7 +2004,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.23.9) dev: true @@ -1993,7 +2028,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-parameters@7.24.5(@babel/core@7.24.5): @@ -2014,7 +2049,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.23.9) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-private-methods@7.24.1(@babel/core@7.24.5): @@ -2037,7 +2072,7 @@ packages: '@babel/core': 7.23.9 '@babel/helper-annotate-as-pure': 7.22.5 '@babel/helper-create-class-features-plugin': 7.22.15(@babel/core@7.23.9) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.23.9) dev: true @@ -2061,7 +2096,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-property-literals@7.24.1(@babel/core@7.24.5): @@ -2091,7 +2126,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-react-jsx-development@7.22.5(@babel/core@7.24.5): @@ -2111,7 +2146,17 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 + dev: true + + /@babel/plugin-transform-react-jsx-self@7.23.3(@babel/core@7.24.5): + resolution: {integrity: sha512-qXRvbeKDSfwnlJnanVRp0SfuWE5DQhwQr5xtLBzp56Wabyo+4CMosF6Kfp+eOD/4FYpql64XVJ2W0pVLlJZxOQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.24.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-react-jsx-source@7.23.3(@babel/core@7.23.9): @@ -2121,7 +2166,17 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 + dev: true + + /@babel/plugin-transform-react-jsx-source@7.23.3(@babel/core@7.24.5): + resolution: {integrity: sha512-91RS0MDnAWDNvGC6Wio5XYkyWI39FMFO+JK9+4AlgaTH+yWwVTsw7/sn6LK0lH7c5F+TFkpv/3LfCJ1Ydwof/g==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.24.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-react-jsx@7.22.15(@babel/core@7.24.5): @@ -2133,7 +2188,7 @@ packages: '@babel/core': 7.24.5 '@babel/helper-annotate-as-pure': 7.22.5 '@babel/helper-module-imports': 7.22.15 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.24.5) '@babel/types': 7.23.0 dev: true @@ -2146,7 +2201,7 @@ packages: dependencies: '@babel/core': 7.24.5 '@babel/helper-annotate-as-pure': 7.22.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-regenerator@7.23.3(@babel/core@7.23.9): @@ -2156,7 +2211,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 regenerator-transform: 0.15.2 dev: true @@ -2178,7 +2233,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-reserved-words@7.24.1(@babel/core@7.24.5): @@ -2198,7 +2253,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-shorthand-properties@7.24.1(@babel/core@7.24.5): @@ -2218,7 +2273,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/helper-skip-transparent-expression-wrappers': 7.22.5 dev: true @@ -2240,7 +2295,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-sticky-regex@7.24.1(@babel/core@7.24.5): @@ -2260,7 +2315,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-template-literals@7.24.1(@babel/core@7.24.5): @@ -2280,7 +2335,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-typeof-symbol@7.24.5(@babel/core@7.24.5): @@ -2313,7 +2368,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-unicode-escapes@7.24.1(@babel/core@7.24.5): @@ -2334,7 +2389,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.9) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-unicode-property-regex@7.24.1(@babel/core@7.24.5): @@ -2356,7 +2411,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.9) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-unicode-regex@7.24.1(@babel/core@7.24.5): @@ -2378,7 +2433,7 @@ packages: dependencies: '@babel/core': 7.23.9 '@babel/helper-create-regexp-features-plugin': 7.22.15(@babel/core@7.23.9) - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 dev: true /@babel/plugin-transform-unicode-sets-regex@7.24.1(@babel/core@7.24.5): @@ -2401,7 +2456,7 @@ packages: '@babel/compat-data': 7.23.5 '@babel/core': 7.23.9 '@babel/helper-compilation-targets': 7.23.6 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/helper-validator-option': 7.23.5 '@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression': 7.23.3(@babel/core@7.23.9) '@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining': 7.23.3(@babel/core@7.23.9) @@ -2581,7 +2636,7 @@ packages: '@babel/core': ^7.0.0-0 || ^8.0.0-0 <8.0.0 dependencies: '@babel/core': 7.23.9 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/types': 7.23.4 esutils: 2.0.3 dev: true @@ -2592,7 +2647,7 @@ packages: '@babel/core': ^7.0.0-0 || ^8.0.0-0 <8.0.0 dependencies: '@babel/core': 7.24.5 - '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-plugin-utils': 7.24.5 '@babel/types': 7.23.4 esutils: 2.0.3 dev: false @@ -2639,9 +2694,10 @@ packages: resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.22.13 - '@babel/parser': 7.23.0 - '@babel/types': 7.23.0 + '@babel/code-frame': 7.24.2 + '@babel/parser': 7.24.5 + '@babel/types': 7.24.5 + dev: true /@babel/template@7.23.9: resolution: {integrity: sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA==} @@ -2649,7 +2705,7 @@ packages: dependencies: '@babel/code-frame': 7.23.5 '@babel/parser': 7.23.9 - '@babel/types': 7.23.9 + '@babel/types': 7.24.5 dev: true /@babel/template@7.24.0: @@ -2671,7 +2727,7 @@ packages: '@babel/helper-hoist-variables': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 '@babel/parser': 7.23.9 - '@babel/types': 7.23.9 + '@babel/types': 7.24.5 debug: 4.3.4 globals: 11.12.0 transitivePeerDependencies: @@ -2702,6 +2758,7 @@ packages: '@babel/helper-string-parser': 7.22.5 '@babel/helper-validator-identifier': 7.22.20 to-fast-properties: 2.0.0 + dev: true /@babel/types@7.23.4: resolution: {integrity: sha512-7uIFwVYpoplT5jp/kVv6EF93VaJ8H+Yn5IczYiaAi98ajzjfoZfslet/e0sLh+wVBjb2qqIut1b0S26VSafsSQ==} @@ -2711,15 +2768,6 @@ packages: '@babel/helper-validator-identifier': 7.22.20 to-fast-properties: 2.0.0 - /@babel/types@7.23.9: - resolution: {integrity: sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-string-parser': 7.23.4 - '@babel/helper-validator-identifier': 7.22.20 - to-fast-properties: 2.0.0 - dev: true - /@babel/types@7.24.5: resolution: {integrity: sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ==} engines: {node: '>=6.9.0'} @@ -2904,7 +2952,7 @@ packages: dependencies: '@types/semver': 7.5.8 conventional-commits-parser: 6.0.0 - semver: 7.5.4 + semver: 7.6.2 dev: true /@esbuild/aix-ppc64@0.19.12: @@ -4276,6 +4324,16 @@ packages: '@types/node': 20.12.12 dev: true + /@types/lodash.omit@4.5.9: + resolution: {integrity: sha512-zuAVFLUPJMOzsw6yawshsYGgq2hWUHtsZgeXHZmSFhaQQFC6EQ021uDKHkSjOpNhSvtNSU9165/o3o/Q51GpTw==} + dependencies: + '@types/lodash': 4.17.6 + dev: true + + /@types/lodash@4.17.6: + resolution: {integrity: sha512-OpXEVoCKSS3lQqjx9GGGOapBeuW5eUboYHRlHP9urXPX25IKZ6AnP5ZRxtVf63iieUbsHxLn8NQ5Nlftc6yzAA==} + dev: true + /@types/mdast@3.0.12: resolution: {integrity: sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg==} dependencies: @@ -4584,7 +4642,7 @@ packages: regenerator-runtime: 0.14.1 systemjs: 6.14.3 terser: 5.26.0 - vite: 5.2.11(terser@5.26.0) + vite: 5.2.11(@types/node@20.12.12)(terser@5.26.0) transitivePeerDependencies: - esbuild - supports-color @@ -4596,12 +4654,12 @@ packages: peerDependencies: vite: ^4.2.0 || ^5.0.0 dependencies: - '@babel/core': 7.23.9 - '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/core@7.23.9) - '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/core@7.23.9) + '@babel/core': 7.24.5 + '@babel/plugin-transform-react-jsx-self': 7.23.3(@babel/core@7.24.5) + '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/core@7.24.5) '@types/babel__core': 7.20.5 react-refresh: 0.14.0 - vite: 5.0.12 + vite: 5.0.12(@types/node@20.12.12) transitivePeerDependencies: - supports-color dev: true @@ -4617,7 +4675,7 @@ packages: '@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/core@7.23.9) '@types/babel__core': 7.20.5 react-refresh: 0.14.0 - vite: 5.2.11(terser@5.26.0) + vite: 5.2.11(@types/node@20.12.12)(terser@5.26.0) transitivePeerDependencies: - supports-color dev: true @@ -7813,6 +7871,10 @@ packages: resolution: {integrity: sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==} dev: true + /lodash.omit@4.5.0: + resolution: {integrity: sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg==} + dev: false + /lodash.snakecase@4.1.1: resolution: {integrity: sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==} dev: true @@ -8393,7 +8455,7 @@ packages: resolution: {integrity: sha512-rum1bPifK5SSar35Z6EKZuYPJx85pkNaFrxBK3mwdfSJ1/WKbYrjoW/zTPSjRRamfmVX1ACBIdFAO0VRErW/EA==} engines: {node: '>=18'} dependencies: - '@babel/code-frame': 7.23.5 + '@babel/code-frame': 7.24.2 index-to-position: 0.1.2 type-fest: 4.18.2 dev: true @@ -9961,7 +10023,7 @@ packages: debug: 4.3.4 pathe: 1.1.2 picocolors: 1.0.1 - vite: 5.2.11(@types/node@20.12.12) + vite: 5.2.11(@types/node@20.12.12)(terser@5.26.0) transitivePeerDependencies: - '@types/node' - less @@ -9973,7 +10035,7 @@ packages: - terser dev: true - /vite@5.0.12: + /vite@5.0.12(@types/node@20.12.12): resolution: {integrity: sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -10001,6 +10063,7 @@ packages: terser: optional: true dependencies: + '@types/node': 20.12.12 esbuild: 0.19.12 postcss: 8.4.34 rollup: 4.5.2 @@ -10008,7 +10071,7 @@ packages: fsevents: 2.3.3 dev: true - /vite@5.2.11(@types/node@20.12.12): + /vite@5.2.11(@types/node@20.12.12)(terser@5.26.0): resolution: {integrity: sha512-HndV31LWW05i1BLPMUCE1B9E9GFbOu1MbenhS58FuK6owSO5qHm7GiCotrNY1YE5rMeQSFBGmT5ZaLEjFizgiQ==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -10040,41 +10103,6 @@ packages: esbuild: 0.20.2 postcss: 8.4.38 rollup: 4.17.2 - optionalDependencies: - fsevents: 2.3.3 - dev: true - - /vite@5.2.11(terser@5.26.0): - resolution: {integrity: sha512-HndV31LWW05i1BLPMUCE1B9E9GFbOu1MbenhS58FuK6owSO5qHm7GiCotrNY1YE5rMeQSFBGmT5ZaLEjFizgiQ==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@types/node': ^18.0.0 || >=20.0.0 - less: '*' - lightningcss: ^1.21.0 - sass: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - dependencies: - esbuild: 0.20.2 - postcss: 8.4.38 - rollup: 4.17.2 terser: 5.26.0 optionalDependencies: fsevents: 2.3.3 @@ -10092,7 +10120,7 @@ packages: fs-extra: 11.2.0 kill-port: 1.6.1 playwright-chromium: 1.39.0 - vite: 5.2.11(@types/node@20.12.12) + vite: 5.2.11(@types/node@20.12.12)(terser@5.26.0) vitest: 1.6.0(@types/node@20.12.12) dev: true @@ -10139,7 +10167,7 @@ packages: strip-literal: 2.1.0 tinybench: 2.5.1 tinypool: 0.8.4 - vite: 5.2.11(@types/node@20.12.12) + vite: 5.2.11(@types/node@20.12.12)(terser@5.26.0) vite-node: 1.6.0(@types/node@20.12.12) why-is-node-running: 2.2.2 transitivePeerDependencies: @@ -10353,7 +10381,3 @@ packages: /zod@3.23.8: resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==} dev: false - -settings: - autoInstallPeers: true - excludeLinksFromLockfile: false diff --git a/src/node/build/index.ts b/src/node/build/index.ts index 46aed97..eca584f 100644 --- a/src/node/build/index.ts +++ b/src/node/build/index.ts @@ -4,9 +4,9 @@ import path from 'node:path' import colors from 'picocolors' import { isDevelopment } from 'std-env' import { globalConfig } from '../global-config' -import { type GlobalConfig } from '../global-config/GlobalConfigBuilder' +import { type GlobalConfig } from '../global-config/global-config-builder' import { getContentHash, isBoolean, isInTest, pkgName } from '../helper/utils' -import { type BaseCacheProcessor } from '../processor/BaseCacheProcessor' +import { type BaseCacheProcessor } from '../processor/base-cache-processor' import { detectBabelPluginMissing, ensureBabelPluginInstalled, esbuildPluginBabel } from './babel' import { transformEnvToDefine } from './define' diff --git a/src/node/global-config/GlobalConfigBuilder.ts b/src/node/global-config/global-config-builder.ts similarity index 93% rename from src/node/global-config/GlobalConfigBuilder.ts rename to src/node/global-config/global-config-builder.ts index 7636c23..42dc7c7 100644 --- a/src/node/global-config/GlobalConfigBuilder.ts +++ b/src/node/global-config/global-config-builder.ts @@ -1,7 +1,7 @@ import { type Logger, type ResolvedConfig, type ViteDevServer } from 'vite' import { type OptionsTypeWithDefault } from '../helper/utils' -import { type CacheValue, type ManifestCache } from '../manifest-cache/ManifestCache' -import { type BaseCacheProcessor } from '../processor/BaseCacheProcessor' +import { type CacheValue, type ManifestCache } from '../manifest-cache/manifest-cache' +import { type BaseCacheProcessor } from '../processor/base-cache-processor' export type GlobalConfig = Required & { viteDevServer?: ViteDevServer diff --git a/src/node/global-config/index.ts b/src/node/global-config/index.ts index f208b15..581c05f 100644 --- a/src/node/global-config/index.ts +++ b/src/node/global-config/index.ts @@ -1,5 +1,5 @@ import { type CacheValueEx } from '../manifest-cache' -import { GlobalConfigBuilder } from './GlobalConfigBuilder' +import { GlobalConfigBuilder } from './global-config-builder' const globalConfig = new GlobalConfigBuilder() diff --git a/src/node/helper/server.ts b/src/node/helper/server.ts index 9c237c0..dbd1ada 100644 --- a/src/node/helper/server.ts +++ b/src/node/helper/server.ts @@ -4,7 +4,7 @@ import { globalConfig } from '../global-config' import { fileRelativeRootPath, isInTest } from './utils' export function addCodeHeader(code: string) { - return `// Generated via vite-plugin-public-typescript (This line print in serve mode only)\n${code}` + return `// Generated via vite-plugin-public-typescript (This line is printed in serve mode only)\n${code}` } export type HmrFile = { diff --git a/src/node/index.ts b/src/node/index.ts index 6f18d09..c0c9b36 100644 --- a/src/node/index.ts +++ b/src/node/index.ts @@ -154,6 +154,6 @@ export default function publicTypescript(options: VitePublicTypescriptOptions = } export { getManifest } from './manifest-cache' -export { type Scripts, injectScripts, injectScriptsToHtml } from './plugins/inject-script' +export { type Scripts, type ScriptDescriptor, injectScripts, injectScriptsToHtml } from './plugins/inject-script' export { publicTypescript } export { type VitePublicTypescriptOptions } diff --git a/src/node/manifest-cache/index.ts b/src/node/manifest-cache/index.ts index a56e164..37148c6 100644 --- a/src/node/manifest-cache/index.ts +++ b/src/node/manifest-cache/index.ts @@ -3,7 +3,7 @@ import { normalizePath } from 'vite' import { resolveOptions } from '../helper/default-options' import { readJsonFile, writeJsonFile } from '../helper/io' import { isEmptyObject, isInTest } from '../helper/utils' -import { type CacheValue, ManifestCache } from './ManifestCache' +import { type CacheValue, ManifestCache } from './manifest-cache' export type CacheValueEx = { _code?: string diff --git a/src/node/manifest-cache/ManifestCache.ts b/src/node/manifest-cache/manifest-cache.ts similarity index 100% rename from src/node/manifest-cache/ManifestCache.ts rename to src/node/manifest-cache/manifest-cache.ts diff --git a/src/node/processor/BaseCacheProcessor.ts b/src/node/processor/base-cache-processor.ts similarity index 97% rename from src/node/processor/BaseCacheProcessor.ts rename to src/node/processor/base-cache-processor.ts index 518c383..3f98b0b 100644 --- a/src/node/processor/BaseCacheProcessor.ts +++ b/src/node/processor/base-cache-processor.ts @@ -1,5 +1,5 @@ import createDebug from 'debug' -import { type CacheValue, type ManifestCache } from '../manifest-cache/ManifestCache' +import { type CacheValue, type ManifestCache } from '../manifest-cache/manifest-cache' const debug = createDebug('vite-plugin-public-typescript:BaseCacheProcessor ===> ') diff --git a/src/node/processor/FileCacheProcessor.ts b/src/node/processor/file-cache-processor.ts similarity index 95% rename from src/node/processor/FileCacheProcessor.ts rename to src/node/processor/file-cache-processor.ts index 4711083..b800335 100644 --- a/src/node/processor/FileCacheProcessor.ts +++ b/src/node/processor/file-cache-processor.ts @@ -7,8 +7,8 @@ import { globalConfig } from '../global-config' import { writeFile } from '../helper/io' import { findAllOldJsFile, pkgName } from '../helper/utils' import { type CacheValueEx } from '../manifest-cache' -import { type ManifestCache } from '../manifest-cache/ManifestCache' -import { type AddFileArgs, type DeleteFileArgs, ManifestCacheProcessor } from './ManifestCacheProcessor' +import { type ManifestCache } from '../manifest-cache/manifest-cache' +import { type AddFileArgs, type DeleteFileArgs, ManifestCacheProcessor } from './manifest-cache-processor' const debug = createDebug('FileCacheProcessor ===> ') diff --git a/src/node/processor/ManifestCacheProcessor.ts b/src/node/processor/manifest-cache-processor.ts similarity index 90% rename from src/node/processor/ManifestCacheProcessor.ts rename to src/node/processor/manifest-cache-processor.ts index 41d92e6..674a587 100644 --- a/src/node/processor/ManifestCacheProcessor.ts +++ b/src/node/processor/manifest-cache-processor.ts @@ -1,9 +1,9 @@ import createDebug from 'debug' import { normalizePath } from 'vite' -import { type GlobalConfig } from '../global-config/GlobalConfigBuilder' +import { type GlobalConfig } from '../global-config/global-config-builder' import { type CacheValueEx } from '../manifest-cache' -import { type ManifestCache } from '../manifest-cache/ManifestCache' -import { BaseCacheProcessor } from './BaseCacheProcessor' +import { type ManifestCache } from '../manifest-cache/manifest-cache' +import { BaseCacheProcessor } from './base-cache-processor' const debug = createDebug('vite-plugin-public-typescript:ManifestCacheProcessor ===> ') diff --git a/src/node/processor/MemoryCacheProcessor.ts b/src/node/processor/memory-cache-processor.ts similarity index 84% rename from src/node/processor/MemoryCacheProcessor.ts rename to src/node/processor/memory-cache-processor.ts index d6b6025..ecb5557 100644 --- a/src/node/processor/MemoryCacheProcessor.ts +++ b/src/node/processor/memory-cache-processor.ts @@ -1,7 +1,7 @@ import { globalConfig } from '../global-config' import { type CacheValueEx } from '../manifest-cache' -import { type ManifestCache } from '../manifest-cache/ManifestCache' -import { type AddFileArgs, type DeleteFileArgs, ManifestCacheProcessor } from './ManifestCacheProcessor' +import { type ManifestCache } from '../manifest-cache/manifest-cache' +import { type AddFileArgs, type DeleteFileArgs, ManifestCacheProcessor } from './manifest-cache-processor' export class MemoryCacheProcessor extends ManifestCacheProcessor { constructor(manifestCache: ManifestCache) { diff --git a/src/node/processor/processor.ts b/src/node/processor/processor.ts index c9607d4..90116ec 100644 --- a/src/node/processor/processor.ts +++ b/src/node/processor/processor.ts @@ -1,9 +1,9 @@ import { type OptionsTypeWithDefault } from '../helper/utils' import { type CacheValueEx } from '../manifest-cache' -import { type ManifestCache } from '../manifest-cache/ManifestCache' -import { FileCacheProcessor } from './FileCacheProcessor' -import { type ManifestCacheProcessor } from './ManifestCacheProcessor' -import { MemoryCacheProcessor } from './MemoryCacheProcessor' +import { type ManifestCache } from '../manifest-cache/manifest-cache' +import { FileCacheProcessor } from './file-cache-processor' +import { type ManifestCacheProcessor } from './manifest-cache-processor' +import { MemoryCacheProcessor } from './memory-cache-processor' export function initCacheProcessor(options: OptionsTypeWithDefault, manifestCache: ManifestCache) { const { destination } = options diff --git a/tests/vitestSetup.ts b/tests/vitestSetup.ts index e6f0c7c..83e8114 100644 --- a/tests/vitestSetup.ts +++ b/tests/vitestSetup.ts @@ -1,7 +1,7 @@ import path from 'node:path' import { type InlineConfig, type ResolvedConfig, resolveConfig } from 'vite' import { beforeEach } from 'vitest' -import { type GlobalConfig } from '../src/node/global-config/GlobalConfigBuilder' +import { type GlobalConfig } from '../src/node/global-config/global-config-builder' import { resolveOptions } from '../src/node/helper/default-options' import { setupGlobalConfig } from '../src/node/helper/utils' import { type CacheValueEx } from '../src/node/manifest-cache'