mirror of https://github.com/aminya/setup-cpp
build: transform babel via babel plugin
This commit is contained in:
parent
e7ebe0f63e
commit
ae014dcdc3
|
@ -0,0 +1,12 @@
|
|||
import type { TransformOptions } from "@babel/core"
|
||||
// @ts-ignore
|
||||
import RemoveNodePrefix from "@upleveled/babel-plugin-remove-node-prefix"
|
||||
|
||||
const babelConfig: TransformOptions = {
|
||||
plugins: [
|
||||
RemoveNodePrefix,
|
||||
],
|
||||
sourceMaps: true,
|
||||
sourceType: "module",
|
||||
}
|
||||
export default babelConfig
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -26,9 +26,8 @@
|
|||
"tsconfig.json"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "turbo build && run-p lint.root.tsc build.vite build.vite.legacy && run-p build.babel copy.json",
|
||||
"build": "turbo build && run-p lint.root.tsc build.vite build.vite.legacy && run-p copy.json",
|
||||
"build.vite": "cross-env NODE_ENV=production vite build",
|
||||
"build.babel": "babel ./dist/legacy --out-dir ./dist/legacy --plugins @upleveled/babel-plugin-remove-node-prefix --plugins @babel/plugin-transform-private-methods --compact --no-babelrc --source-maps true",
|
||||
"build.vite.legacy": "cross-env NODE_ENV=production TARGET=legacy vite build",
|
||||
"bump": "ncu -u -x numerous,execa,prettier,@types/node,eslint,@types/eslint && pnpm update && pnpx typesync && pnpm run clean",
|
||||
"clean": "shx rm -rf ./dist ./packages/*/dist ./exe ./.parcel-cache && shx mkdir -p ./dist/legacy ./dist/modern ./dist/modern ",
|
||||
|
@ -60,8 +59,7 @@
|
|||
"@actions/http-client": "^2.2.3",
|
||||
"@actions/io": "^1.1.3",
|
||||
"@actions/tool-cache": "^2.0.1",
|
||||
"@babel/cli": "^7.25.6",
|
||||
"@babel/plugin-transform-private-methods": "^7.25.4",
|
||||
"@babel/core": "^7.25.2",
|
||||
"@biomejs/biome": "^1.8.3",
|
||||
"@iarna/toml": "^2.2.5",
|
||||
"@liuli-util/vite-plugin-node": "^0.9.0",
|
||||
|
@ -73,7 +71,9 @@
|
|||
"@octokit/types": "^13.5.0",
|
||||
"@shockpkg/archive-files": "github:aminya/archive-files#54ec59fad46aca736ac6feb6c7bb526528141b9d",
|
||||
"@swc/jest": "^0.2.36",
|
||||
"@types/babel__core": "~7.20.5",
|
||||
"@types/cross-spawn": "^6.0.6",
|
||||
"@types/escape-quotes": "~1.0.0",
|
||||
"@types/eslint": "^8.56.12",
|
||||
"@types/iarna__toml": "~2.0.5",
|
||||
"@types/jest": "^29.5.12",
|
||||
|
@ -137,6 +137,7 @@
|
|||
"untildify-user": "workspace:*",
|
||||
"util.types": "^0.0.2",
|
||||
"vite": "^5.4.3",
|
||||
"vite-plugin-babel": "^1.2.0",
|
||||
"web-streams-polyfill": "^4.0.0",
|
||||
"which": "^4.0.0"
|
||||
},
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
"macos"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@types/escape-quotes": "~1.0.0",
|
||||
"@types/memoizee": "0.4.11"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
declare module "escape-quotes" {
|
||||
/**
|
||||
* Escape `'` with `\\`
|
||||
* @param input the input string
|
||||
*/
|
||||
declare function escapeQuote(input: string): string
|
||||
|
||||
/**
|
||||
* Escape the given character with the given escape character
|
||||
* @param input the input string
|
||||
* @param character the character to escape (e.g. `'`)
|
||||
* @param escape_character the character to escape with (e.g. `\\`)
|
||||
*/
|
||||
declare function escapeQuote(input: string, character: string, escape_character: string): string
|
||||
|
||||
export = escapeQuote
|
||||
}
|
|
@ -50,6 +50,7 @@
|
|||
"apt-key"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@types/memoizee": "0.4.11"
|
||||
"@types/memoizee": "0.4.11",
|
||||
"@types/which": "~3.0.4"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,9 +27,11 @@
|
|||
"node-downloader-helper": "2.1.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/cross-spawn": "~6.0.6",
|
||||
"@types/which": "~3.0.4",
|
||||
"cross-spawn": "7.0.3",
|
||||
"path-exists": "5.0.0",
|
||||
"patha": "0.4.1",
|
||||
"cross-spawn": "7.0.3"
|
||||
"patha": "0.4.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
|
|
233
pnpm-lock.yaml
233
pnpm-lock.yaml
|
@ -28,12 +28,9 @@ importers:
|
|||
'@actions/tool-cache':
|
||||
specifier: ^2.0.1
|
||||
version: 2.0.1
|
||||
'@babel/cli':
|
||||
specifier: ^7.25.6
|
||||
version: 7.25.6(@babel/core@7.25.2)
|
||||
'@babel/plugin-transform-private-methods':
|
||||
specifier: ^7.25.4
|
||||
version: 7.25.4(@babel/core@7.25.2)
|
||||
'@babel/core':
|
||||
specifier: ^7.25.2
|
||||
version: 7.25.2
|
||||
'@biomejs/biome':
|
||||
specifier: ^1.8.3
|
||||
version: 1.8.3
|
||||
|
@ -67,9 +64,15 @@ importers:
|
|||
'@swc/jest':
|
||||
specifier: ^0.2.36
|
||||
version: 0.2.36(@swc/core@1.7.23(@swc/helpers@0.5.13))
|
||||
'@types/babel__core':
|
||||
specifier: ~7.20.5
|
||||
version: 7.20.5
|
||||
'@types/cross-spawn':
|
||||
specifier: ^6.0.6
|
||||
version: 6.0.6
|
||||
'@types/escape-quotes':
|
||||
specifier: ~1.0.0
|
||||
version: 1.0.0
|
||||
'@types/eslint':
|
||||
specifier: ^8.56.12
|
||||
version: 8.56.12
|
||||
|
@ -259,6 +262,9 @@ importers:
|
|||
vite:
|
||||
specifier: ^5.4.3
|
||||
version: 5.4.3(@types/node@12.20.55)(lightningcss@1.26.0)(terser@5.31.6)
|
||||
vite-plugin-babel:
|
||||
specifier: ^1.2.0
|
||||
version: 1.2.0(@babel/core@7.25.2)(vite@5.4.3(@types/node@12.20.55)(lightningcss@1.26.0)(terser@5.31.6))
|
||||
web-streams-polyfill:
|
||||
specifier: ^4.0.0
|
||||
version: 4.0.0
|
||||
|
@ -311,6 +317,9 @@ importers:
|
|||
specifier: workspace:*
|
||||
version: link:../untildify-user
|
||||
devDependencies:
|
||||
'@types/escape-quotes':
|
||||
specifier: ~1.0.0
|
||||
version: 1.0.0
|
||||
'@types/memoizee':
|
||||
specifier: 0.4.11
|
||||
version: 0.4.11
|
||||
|
@ -370,6 +379,9 @@ importers:
|
|||
'@types/memoizee':
|
||||
specifier: 0.4.11
|
||||
version: 0.4.11
|
||||
'@types/which':
|
||||
specifier: ~3.0.4
|
||||
version: 3.0.4
|
||||
|
||||
packages/setup-brew:
|
||||
dependencies:
|
||||
|
@ -395,6 +407,12 @@ importers:
|
|||
specifier: 4.0.0
|
||||
version: 4.0.0
|
||||
devDependencies:
|
||||
'@types/cross-spawn':
|
||||
specifier: ~6.0.6
|
||||
version: 6.0.6
|
||||
'@types/which':
|
||||
specifier: ~3.0.4
|
||||
version: 3.0.4
|
||||
cross-spawn:
|
||||
specifier: 7.0.3
|
||||
version: 7.0.3
|
||||
|
@ -509,13 +527,6 @@ packages:
|
|||
resolution: {integrity: sha512-l8cmWM4C7RoNCBOImoFMxhTXe1Lr+8uQ/IgnhRNMpfoA9bAFWoLG4XrWm6O5rKXortreVQuD+fc1hbzWklOZbw==}
|
||||
engines: {node: '>=18.0.0'}
|
||||
|
||||
'@babel/cli@7.25.6':
|
||||
resolution: {integrity: sha512-Z+Doemr4VtvSD2SNHTrkiFZ1LX+JI6tyRXAAOb4N9khIuPyoEPmTPJarPm8ljJV1D6bnMQjyHMWTT9NeKbQuXA==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
'@babel/core': ^7.0.0-0
|
||||
|
||||
'@babel/code-frame@7.24.7':
|
||||
resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
|
@ -539,24 +550,10 @@ packages:
|
|||
resolution: {integrity: sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
|
||||
'@babel/helper-annotate-as-pure@7.24.7':
|
||||
resolution: {integrity: sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
|
||||
'@babel/helper-compilation-targets@7.25.2':
|
||||
resolution: {integrity: sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
|
||||
'@babel/helper-create-class-features-plugin@7.25.4':
|
||||
resolution: {integrity: sha512-ro/bFs3/84MDgDmMwbcHgDa8/E6J3QKNTk4xJJnVeFtGE+tL0K26E3pNxhYz2b67fJpt7Aphw5XcploKXuCvCQ==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
peerDependencies:
|
||||
'@babel/core': ^7.0.0
|
||||
|
||||
'@babel/helper-member-expression-to-functions@7.24.8':
|
||||
resolution: {integrity: sha512-LABppdt+Lp/RlBxqrh4qgf1oEH/WxdzQNDJIu5gC/W1GyvPVrOBiItmmM8wan2fm4oYqFuFfkXmlGpLQhPY8CA==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
|
||||
'@babel/helper-module-imports@7.24.7':
|
||||
resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
|
@ -567,28 +564,14 @@ packages:
|
|||
peerDependencies:
|
||||
'@babel/core': ^7.0.0
|
||||
|
||||
'@babel/helper-optimise-call-expression@7.24.7':
|
||||
resolution: {integrity: sha512-jKiTsW2xmWwxT1ixIdfXUZp+P5yURx2suzLZr5Hi64rURpDYdMW0pv+Uf17EYk2Rd428Lx4tLsnjGJzYKDM/6A==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
|
||||
'@babel/helper-plugin-utils@7.24.8':
|
||||
resolution: {integrity: sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
|
||||
'@babel/helper-replace-supers@7.25.0':
|
||||
resolution: {integrity: sha512-q688zIvQVYtZu+i2PsdIu/uWGRpfxzr5WESsfpShfZECkO+d2o+WROWezCi/Q6kJ0tfPa5+pUGUlfx2HhrA3Bg==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
peerDependencies:
|
||||
'@babel/core': ^7.0.0
|
||||
|
||||
'@babel/helper-simple-access@7.24.7':
|
||||
resolution: {integrity: sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
|
||||
'@babel/helper-skip-transparent-expression-wrappers@7.24.7':
|
||||
resolution: {integrity: sha512-IO+DLT3LQUElMbpzlatRASEyQtfhSE0+m465v++3jyyXeBTBUjtVZg28/gHeV5mrTJqvEKhKroBGAvhW+qPHiQ==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
|
||||
'@babel/helper-string-parser@7.24.8':
|
||||
resolution: {integrity: sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
|
@ -711,12 +694,6 @@ packages:
|
|||
peerDependencies:
|
||||
'@babel/core': ^7.0.0-0
|
||||
|
||||
'@babel/plugin-transform-private-methods@7.25.4':
|
||||
resolution: {integrity: sha512-ao8BG7E2b/URaUQGqN3Tlsg+M3KlHY6rJ1O1gXAEUnZoyNQnvKyH87Kfg+FoxSeyWUB8ISZZsC91C44ZuBFytw==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
peerDependencies:
|
||||
'@babel/core': ^7.0.0-0
|
||||
|
||||
'@babel/runtime@7.25.6':
|
||||
resolution: {integrity: sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==}
|
||||
engines: {node: '>=6.9.0'}
|
||||
|
@ -1341,9 +1318,6 @@ packages:
|
|||
'@microsoft/tsdoc@0.15.0':
|
||||
resolution: {integrity: sha512-HZpPoABogPvjeJOdzCOSJsXeL/SMCBgBZMVC3X3d7YYp2gf31MfxhUoYUNwf1ERPJOnQc0wkFn9trqI6ZEdZuA==}
|
||||
|
||||
'@nicolo-ribaudo/chokidar-2@2.1.8-no-fsevents.3':
|
||||
resolution: {integrity: sha512-s88O1aVtXftvp5bCPB7WnmXc5IwOZZ7YPuwNPt+GtOOXpPvad1LfbmjYv+qII7zP6RU2QGnqve27dnLycEnyEQ==}
|
||||
|
||||
'@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1':
|
||||
resolution: {integrity: sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==}
|
||||
|
||||
|
@ -1693,6 +1667,9 @@ packages:
|
|||
'@types/debug@4.1.12':
|
||||
resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==}
|
||||
|
||||
'@types/escape-quotes@1.0.0':
|
||||
resolution: {integrity: sha512-W7MUb/9brjZoqT/lWoYnwwudLct8N7GEXPeeVTfF17rkEPPYAPsn2pn/AG/VNaFCuU7ws3Qc6tcKTAIG84k0tA==}
|
||||
|
||||
'@types/eslint@8.56.12':
|
||||
resolution: {integrity: sha512-03ruubjWyOHlmljCVoxSuNDdmfZDzsrrz0P2LeJsOXr+ZwFQ+0yQIwNCwt/GYhV7Z31fgtXJTAEs+FYlEL851g==}
|
||||
|
||||
|
@ -2185,10 +2162,6 @@ packages:
|
|||
before-after-hook@3.0.2:
|
||||
resolution: {integrity: sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A==}
|
||||
|
||||
binary-extensions@2.3.0:
|
||||
resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
|
||||
engines: {node: '>=8'}
|
||||
|
||||
binary-searching@2.0.5:
|
||||
resolution: {integrity: sha512-v4N2l3RxL+m4zDxyxz3Ne2aTmiPn8ZUpKFpdPtO+ItW1NcTCXA7JeHG5GMBSvoKSkQZ9ycS+EouDVxYB9ufKWA==}
|
||||
|
||||
|
@ -2287,10 +2260,6 @@ packages:
|
|||
chardet@0.7.0:
|
||||
resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==}
|
||||
|
||||
chokidar@3.6.0:
|
||||
resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
|
||||
engines: {node: '>= 8.10.0'}
|
||||
|
||||
ci-info@3.9.0:
|
||||
resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==}
|
||||
engines: {node: '>=8'}
|
||||
|
@ -2388,10 +2357,6 @@ packages:
|
|||
commander@2.20.3:
|
||||
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
|
||||
|
||||
commander@6.2.1:
|
||||
resolution: {integrity: sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==}
|
||||
engines: {node: '>= 6'}
|
||||
|
||||
commander@9.5.0:
|
||||
resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==}
|
||||
engines: {node: ^12.20.0 || >=14}
|
||||
|
@ -3160,9 +3125,6 @@ packages:
|
|||
resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==}
|
||||
engines: {node: '>=6 <7 || >=8'}
|
||||
|
||||
fs-readdir-recursive@1.1.0:
|
||||
resolution: {integrity: sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==}
|
||||
|
||||
fs.realpath@1.0.0:
|
||||
resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
|
||||
|
||||
|
@ -3453,10 +3415,6 @@ packages:
|
|||
is-bigint@1.0.4:
|
||||
resolution: {integrity: sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==}
|
||||
|
||||
is-binary-path@2.1.0:
|
||||
resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
|
||||
engines: {node: '>=8'}
|
||||
|
||||
is-boolean-object@1.1.2:
|
||||
resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
@ -4095,10 +4053,6 @@ packages:
|
|||
magic-string@0.30.11:
|
||||
resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==}
|
||||
|
||||
make-dir@2.1.0:
|
||||
resolution: {integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
make-dir@4.0.0:
|
||||
resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}
|
||||
engines: {node: '>=10'}
|
||||
|
@ -4492,10 +4446,6 @@ packages:
|
|||
engines: {node: '>=0.10'}
|
||||
hasBin: true
|
||||
|
||||
pify@4.0.1:
|
||||
resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
pirates@4.0.6:
|
||||
resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==}
|
||||
engines: {node: '>= 6'}
|
||||
|
@ -4616,10 +4566,6 @@ packages:
|
|||
readdir-glob@1.1.3:
|
||||
resolution: {integrity: sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==}
|
||||
|
||||
readdirp@3.6.0:
|
||||
resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
|
||||
engines: {node: '>=8.10.0'}
|
||||
|
||||
readme-md-generator@1.0.0:
|
||||
resolution: {integrity: sha512-K2v858y99S+AH0OTtaCVgEQg47LU6OecKbF1Eu1nDGE2E8QhSYGeLfAKQWwnglm2xtUGn9rjhgK6l2aJHcA8Qg==}
|
||||
engines: {node: '>=9.3.0', npm: '>=5.5.0'}
|
||||
|
@ -4844,10 +4790,6 @@ packages:
|
|||
sisteransi@1.0.5:
|
||||
resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
|
||||
|
||||
slash@2.0.0:
|
||||
resolution: {integrity: sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
slash@3.0.0:
|
||||
resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
|
||||
engines: {node: '>=8'}
|
||||
|
@ -5322,6 +5264,12 @@ packages:
|
|||
resolution: {integrity: sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg==}
|
||||
engines: {node: '>= 0.10'}
|
||||
|
||||
vite-plugin-babel@1.2.0:
|
||||
resolution: {integrity: sha512-ltAnq535Ubf9sDbVCkztAdkwx5aQbNrwPFs+iZTJ5FaAhTdxjqmLGpxsAaRfJWEKBJ/kFf9KwMoTdArm0IRUUw==}
|
||||
peerDependencies:
|
||||
'@babel/core': ^7.0.0
|
||||
vite: ^2.7.0 || ^3.0.0 || ^4.0.0 || ^5.0.0
|
||||
|
||||
vite-plugin-dts@3.9.1:
|
||||
resolution: {integrity: sha512-rVp2KM9Ue22NGWB8dNtWEr+KekN3rIgz1tWD050QnRGlriUCmaDwa7qA5zDEjbXg5lAXhYMSBJtx3q3hQIJZSg==}
|
||||
engines: {node: ^14.18.0 || >=16.0.0}
|
||||
|
@ -5706,20 +5654,6 @@ snapshots:
|
|||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@babel/cli@7.25.6(@babel/core@7.25.2)':
|
||||
dependencies:
|
||||
'@babel/core': 7.25.2
|
||||
'@jridgewell/trace-mapping': 0.3.25
|
||||
commander: 6.2.1
|
||||
convert-source-map: 2.0.0
|
||||
fs-readdir-recursive: 1.1.0
|
||||
glob: 7.2.3
|
||||
make-dir: 2.1.0
|
||||
slash: 2.0.0
|
||||
optionalDependencies:
|
||||
'@nicolo-ribaudo/chokidar-2': 2.1.8-no-fsevents.3
|
||||
chokidar: 3.6.0
|
||||
|
||||
'@babel/code-frame@7.24.7':
|
||||
dependencies:
|
||||
'@babel/highlight': 7.24.7
|
||||
|
@ -5762,10 +5696,6 @@ snapshots:
|
|||
'@jridgewell/trace-mapping': 0.3.25
|
||||
jsesc: 2.5.2
|
||||
|
||||
'@babel/helper-annotate-as-pure@7.24.7':
|
||||
dependencies:
|
||||
'@babel/types': 7.25.6
|
||||
|
||||
'@babel/helper-compilation-targets@7.25.2':
|
||||
dependencies:
|
||||
'@babel/compat-data': 7.25.4
|
||||
|
@ -5774,26 +5704,6 @@ snapshots:
|
|||
lru-cache: 5.1.1
|
||||
semver: 6.3.1
|
||||
|
||||
'@babel/helper-create-class-features-plugin@7.25.4(@babel/core@7.25.2)':
|
||||
dependencies:
|
||||
'@babel/core': 7.25.2
|
||||
'@babel/helper-annotate-as-pure': 7.24.7
|
||||
'@babel/helper-member-expression-to-functions': 7.24.8
|
||||
'@babel/helper-optimise-call-expression': 7.24.7
|
||||
'@babel/helper-replace-supers': 7.25.0(@babel/core@7.25.2)
|
||||
'@babel/helper-skip-transparent-expression-wrappers': 7.24.7
|
||||
'@babel/traverse': 7.25.6
|
||||
semver: 6.3.1
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@babel/helper-member-expression-to-functions@7.24.8':
|
||||
dependencies:
|
||||
'@babel/traverse': 7.25.6
|
||||
'@babel/types': 7.25.6
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@babel/helper-module-imports@7.24.7':
|
||||
dependencies:
|
||||
'@babel/traverse': 7.25.6
|
||||
|
@ -5811,21 +5721,8 @@ snapshots:
|
|||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@babel/helper-optimise-call-expression@7.24.7':
|
||||
dependencies:
|
||||
'@babel/types': 7.25.6
|
||||
|
||||
'@babel/helper-plugin-utils@7.24.8': {}
|
||||
|
||||
'@babel/helper-replace-supers@7.25.0(@babel/core@7.25.2)':
|
||||
dependencies:
|
||||
'@babel/core': 7.25.2
|
||||
'@babel/helper-member-expression-to-functions': 7.24.8
|
||||
'@babel/helper-optimise-call-expression': 7.24.7
|
||||
'@babel/traverse': 7.25.6
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@babel/helper-simple-access@7.24.7':
|
||||
dependencies:
|
||||
'@babel/traverse': 7.25.6
|
||||
|
@ -5833,13 +5730,6 @@ snapshots:
|
|||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@babel/helper-skip-transparent-expression-wrappers@7.24.7':
|
||||
dependencies:
|
||||
'@babel/traverse': 7.25.6
|
||||
'@babel/types': 7.25.6
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@babel/helper-string-parser@7.24.8': {}
|
||||
|
||||
'@babel/helper-validator-identifier@7.24.7': {}
|
||||
|
@ -5952,14 +5842,6 @@ snapshots:
|
|||
'@babel/core': 7.25.2
|
||||
'@babel/helper-plugin-utils': 7.24.8
|
||||
|
||||
'@babel/plugin-transform-private-methods@7.25.4(@babel/core@7.25.2)':
|
||||
dependencies:
|
||||
'@babel/core': 7.25.2
|
||||
'@babel/helper-create-class-features-plugin': 7.25.4(@babel/core@7.25.2)
|
||||
'@babel/helper-plugin-utils': 7.24.8
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@babel/runtime@7.25.6':
|
||||
dependencies:
|
||||
regenerator-runtime: 0.14.1
|
||||
|
@ -6635,9 +6517,6 @@ snapshots:
|
|||
|
||||
'@microsoft/tsdoc@0.15.0': {}
|
||||
|
||||
'@nicolo-ribaudo/chokidar-2@2.1.8-no-fsevents.3':
|
||||
optional: true
|
||||
|
||||
'@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1':
|
||||
dependencies:
|
||||
eslint-scope: 5.1.1
|
||||
|
@ -6972,6 +6851,8 @@ snapshots:
|
|||
dependencies:
|
||||
'@types/ms': 0.7.34
|
||||
|
||||
'@types/escape-quotes@1.0.0': {}
|
||||
|
||||
'@types/eslint@8.56.12':
|
||||
dependencies:
|
||||
'@types/estree': 1.0.5
|
||||
|
@ -7623,9 +7504,6 @@ snapshots:
|
|||
|
||||
before-after-hook@3.0.2: {}
|
||||
|
||||
binary-extensions@2.3.0:
|
||||
optional: true
|
||||
|
||||
binary-searching@2.0.5: {}
|
||||
|
||||
bl@4.1.0:
|
||||
|
@ -7745,19 +7623,6 @@ snapshots:
|
|||
|
||||
chardet@0.7.0: {}
|
||||
|
||||
chokidar@3.6.0:
|
||||
dependencies:
|
||||
anymatch: 3.1.3
|
||||
braces: 3.0.3
|
||||
glob-parent: 5.1.2
|
||||
is-binary-path: 2.1.0
|
||||
is-glob: 4.0.3
|
||||
normalize-path: 3.0.0
|
||||
readdirp: 3.6.0
|
||||
optionalDependencies:
|
||||
fsevents: 2.3.3
|
||||
optional: true
|
||||
|
||||
ci-info@3.9.0: {}
|
||||
|
||||
ci-info@4.0.0: {}
|
||||
|
@ -7853,8 +7718,6 @@ snapshots:
|
|||
|
||||
commander@2.20.3: {}
|
||||
|
||||
commander@6.2.1: {}
|
||||
|
||||
commander@9.5.0: {}
|
||||
|
||||
comment-json@4.2.5:
|
||||
|
@ -8965,8 +8828,6 @@ snapshots:
|
|||
jsonfile: 4.0.0
|
||||
universalify: 0.1.2
|
||||
|
||||
fs-readdir-recursive@1.1.0: {}
|
||||
|
||||
fs.realpath@1.0.0: {}
|
||||
|
||||
fsevents@2.3.3:
|
||||
|
@ -9270,11 +9131,6 @@ snapshots:
|
|||
dependencies:
|
||||
has-bigints: 1.0.2
|
||||
|
||||
is-binary-path@2.1.0:
|
||||
dependencies:
|
||||
binary-extensions: 2.3.0
|
||||
optional: true
|
||||
|
||||
is-boolean-object@1.1.2:
|
||||
dependencies:
|
||||
call-bind: 1.0.7
|
||||
|
@ -10044,11 +9900,6 @@ snapshots:
|
|||
dependencies:
|
||||
'@jridgewell/sourcemap-codec': 1.5.0
|
||||
|
||||
make-dir@2.1.0:
|
||||
dependencies:
|
||||
pify: 4.0.1
|
||||
semver: 5.7.2
|
||||
|
||||
make-dir@4.0.0:
|
||||
dependencies:
|
||||
semver: 7.6.3
|
||||
|
@ -10505,8 +10356,6 @@ snapshots:
|
|||
|
||||
pidtree@0.6.0: {}
|
||||
|
||||
pify@4.0.1: {}
|
||||
|
||||
pirates@4.0.6: {}
|
||||
|
||||
pkg-dir@4.2.0:
|
||||
|
@ -10638,11 +10487,6 @@ snapshots:
|
|||
dependencies:
|
||||
minimatch: 5.1.6
|
||||
|
||||
readdirp@3.6.0:
|
||||
dependencies:
|
||||
picomatch: 2.3.1
|
||||
optional: true
|
||||
|
||||
readme-md-generator@1.0.0(encoding@0.1.13):
|
||||
dependencies:
|
||||
boxen: 4.2.0
|
||||
|
@ -10892,8 +10736,6 @@ snapshots:
|
|||
|
||||
sisteransi@1.0.5: {}
|
||||
|
||||
slash@2.0.0: {}
|
||||
|
||||
slash@3.0.0: {}
|
||||
|
||||
slash@4.0.0: {}
|
||||
|
@ -11384,6 +11226,11 @@ snapshots:
|
|||
|
||||
validator@13.12.0: {}
|
||||
|
||||
vite-plugin-babel@1.2.0(@babel/core@7.25.2)(vite@5.4.3(@types/node@12.20.55)(lightningcss@1.26.0)(terser@5.31.6)):
|
||||
dependencies:
|
||||
'@babel/core': 7.25.2
|
||||
vite: 5.4.3(@types/node@12.20.55)(lightningcss@1.26.0)(terser@5.31.6)
|
||||
|
||||
vite-plugin-dts@3.9.1(@types/node@12.20.55)(rollup@4.21.2)(typescript@5.5.4)(vite@5.4.3(@types/node@12.20.55)(lightningcss@1.26.0)(terser@5.31.6)):
|
||||
dependencies:
|
||||
'@microsoft/api-extractor': 7.43.0(@types/node@12.20.55)
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import module from "module"
|
||||
import { type TerserOptions, defineConfig } from "vite"
|
||||
import babel from "vite-plugin-babel"
|
||||
import terserRc from "./.terserrc.mjs"
|
||||
import babelConfig from "./babel.config.mts"
|
||||
|
||||
const isLegacy = process.env.TARGET === "legacy"
|
||||
|
||||
|
@ -38,6 +40,13 @@ const viteConfig = defineConfig({
|
|||
noExternal: true,
|
||||
external: module.builtinModules,
|
||||
},
|
||||
plugins: isLegacy
|
||||
? [
|
||||
babel({
|
||||
babelConfig,
|
||||
}),
|
||||
]
|
||||
: [],
|
||||
})
|
||||
|
||||
export default viteConfig
|
||||
|
|
Loading…
Reference in New Issue