-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from sopt-makers/chore/ui-tsup
chore(ui) : ui 패키지 번들러 마이그레이션 (rollup -> tsup)
- Loading branch information
Showing
6 changed files
with
63 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@sopt-makers/ui": patch | ||
--- | ||
|
||
migrate bundler(rollup -> tsup) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { vanillaExtractPlugin } from '@vanilla-extract/esbuild-plugin'; | ||
import { defineConfig } from 'tsup'; | ||
|
||
export default defineConfig({ | ||
entry: ['index.ts', "cssVariables.ts"], | ||
format: ['cjs', 'esm'], // CommonJS와 ES Module 형식으로 출력 | ||
dts: true, | ||
sourcemap: true, | ||
esbuildPlugins: [vanillaExtractPlugin()], | ||
clean: true, | ||
external: ['react', 'react-dom', '@radix-ui/*'], // nodeExternals와 유사하게 외부 모듈을 제외 | ||
onSuccess: 'echo Build completed!', | ||
|
||
esbuildOptions(options) { | ||
options.minify = true; | ||
options.treeShaking = true; | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
dependencies: | ||
default-browser-id "3.0.0" | ||
|
||
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.18.6", "@babel/code-frame@^7.23.5", "@babel/code-frame@^7.24.2": | ||
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.23.5", "@babel/code-frame@^7.24.2": | ||
version "7.24.2" | ||
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.2.tgz#718b4b19841809a58b29b68cde80bc5e1aa6d9ae" | ||
integrity sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ== | ||
|
@@ -2294,15 +2294,7 @@ | |
dependencies: | ||
"@babel/runtime" "^7.13.10" | ||
|
||
"@rollup/pluginutils@^4.1.1": | ||
version "4.2.1" | ||
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-4.2.1.tgz#e6c6c3aba0744edce3fb2074922d3776c0af2a6d" | ||
integrity sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ== | ||
dependencies: | ||
estree-walker "^2.0.1" | ||
picomatch "^2.2.2" | ||
|
||
"@rollup/pluginutils@^5.0.2", "@rollup/pluginutils@^5.1.0": | ||
"@rollup/pluginutils@^5.0.2": | ||
version "5.1.0" | ||
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz#7e53eddc8c7f483a4ad0b94afb1f7f5fd3c771e0" | ||
integrity sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g== | ||
|
@@ -3777,6 +3769,13 @@ | |
modern-ahocorasick "^1.0.0" | ||
picocolors "^1.0.0" | ||
|
||
"@vanilla-extract/esbuild-plugin@^2.3.5": | ||
version "2.3.5" | ||
resolved "https://registry.yarnpkg.com/@vanilla-extract/esbuild-plugin/-/esbuild-plugin-2.3.5.tgz#80a351d60e3f7e13f693c88ffe5e600dc28e3388" | ||
integrity sha512-RF7uKVc8M35SQY2C729EvdJGAGwo/nM/M8qfmPPANVKLFnFnHsRd4DO+pYgX1YubnzN1vcLKw0WIoA7JxI3a1w== | ||
dependencies: | ||
"@vanilla-extract/integration" "^7.0.0" | ||
|
||
"@vanilla-extract/integration@^6.3.0": | ||
version "6.5.0" | ||
resolved "https://registry.yarnpkg.com/@vanilla-extract/integration/-/integration-6.5.0.tgz#613407565b07dc60b123ca9080ea3f47cd2ce7bb" | ||
|
@@ -3819,13 +3818,6 @@ | |
resolved "https://registry.yarnpkg.com/@vanilla-extract/private/-/private-1.0.4.tgz#35946b917d6b9774a2b9bc725c63c9341049c79b" | ||
integrity sha512-8FGD6AejeC/nXcblgNCM5rnZb9KXa4WNkR03HCWtdJBpANjTgjHEglNLFnhuvdQ78tC6afaxBPI+g7F2NX3tgg== | ||
|
||
"@vanilla-extract/rollup-plugin@^1.0.1": | ||
version "1.3.4" | ||
resolved "https://registry.yarnpkg.com/@vanilla-extract/rollup-plugin/-/rollup-plugin-1.3.4.tgz#d93ef65def32843ca773fa356c5ffe3e814459e2" | ||
integrity sha512-eVOrPH8TYjn4J4T8bSh+c8dQcO2HZSL0GcppU39Kg7PyUbWF1BoNuNQp9JNqSgcsj5sTeasI5+2CYaCNcx6FcQ== | ||
dependencies: | ||
"@vanilla-extract/integration" "^7.0.0" | ||
|
||
"@vanilla-extract/[email protected]": | ||
version "1.6.1" | ||
resolved "https://registry.yarnpkg.com/@vanilla-extract/sprinkles/-/sprinkles-1.6.1.tgz#2c8a832757a0d8104dc6bd5d961db2c70d1dbdcb" | ||
|
@@ -5068,7 +5060,7 @@ [email protected], debug@^2.6.9: | |
dependencies: | ||
ms "2.0.0" | ||
|
||
debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4: | ||
debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4: | ||
version "4.3.4" | ||
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" | ||
integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== | ||
|
@@ -6045,7 +6037,7 @@ estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: | |
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" | ||
integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== | ||
|
||
estree-walker@^2.0.1, estree-walker@^2.0.2: | ||
estree-walker@^2.0.2: | ||
version "2.0.2" | ||
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" | ||
integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== | ||
|
@@ -7530,11 +7522,6 @@ json5@^2.2.3: | |
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" | ||
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== | ||
|
||
jsonc-parser@^3.0.0: | ||
version "3.2.1" | ||
resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.1.tgz#031904571ccf929d7670ee8c547545081cb37f1a" | ||
integrity sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA== | ||
|
||
jsonfile@^4.0.0: | ||
version "4.0.0" | ||
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" | ||
|
@@ -7779,21 +7766,14 @@ lz-string@^1.5.0: | |
resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941" | ||
integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ== | ||
|
||
magic-string@^0.26.6: | ||
version "0.26.7" | ||
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.26.7.tgz#caf7daf61b34e9982f8228c4527474dac8981d6f" | ||
integrity sha512-hX9XH3ziStPoPhJxLq1syWuZMxbDvGNbVchfrdCtanC7D13888bMFow61x8axrx+GfHLtVeAx2kxL7tTGRl+Ow== | ||
dependencies: | ||
sourcemap-codec "^1.4.8" | ||
|
||
magic-string@^0.27.0: | ||
version "0.27.0" | ||
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.27.0.tgz#e4a3413b4bab6d98d2becffd48b4a257effdbbf3" | ||
integrity sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA== | ||
dependencies: | ||
"@jridgewell/sourcemap-codec" "^1.4.13" | ||
|
||
magic-string@^0.30.0, magic-string@^0.30.5: | ||
magic-string@^0.30.0: | ||
version "0.30.10" | ||
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.10.tgz#123d9c41a0cb5640c892b041d4cfb3bd0aa4b39e" | ||
integrity sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ== | ||
|
@@ -8632,7 +8612,7 @@ picocolors@^1.0.0: | |
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" | ||
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== | ||
|
||
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.0, picomatch@^2.3.1: | ||
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3, picomatch@^2.3.0, picomatch@^2.3.1: | ||
version "2.3.1" | ||
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" | ||
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== | ||
|
@@ -9326,60 +9306,13 @@ rimraf@~2.6.2: | |
dependencies: | ||
glob "^7.1.3" | ||
|
||
rollup-plugin-analyzer@^4.0.0: | ||
version "4.0.0" | ||
resolved "https://registry.yarnpkg.com/rollup-plugin-analyzer/-/rollup-plugin-analyzer-4.0.0.tgz#96b757ed64a098b59d72f085319e68cdd86d5798" | ||
integrity sha512-LL9GEt3bkXp6Wa19SNR5MWcvHNMvuTFYg+eYBZN2OIFhSWN+pEJUQXEKu5BsOeABob3x9PDaLKW7w5iOJnsESQ== | ||
|
||
rollup-plugin-dts@^4.2.0: | ||
version "4.2.3" | ||
resolved "https://registry.yarnpkg.com/rollup-plugin-dts/-/rollup-plugin-dts-4.2.3.tgz#04c3615df1ffab4228aa9d540697eaca61e01f47" | ||
integrity sha512-jlcpItqM2efqfIiKzDB/IKOS9E9fDvbkJSGw5GtK/PqPGS9eC3R3JKyw2VvpTktZA+TNgJRMu1NTv244aTUzzQ== | ||
dependencies: | ||
magic-string "^0.26.6" | ||
optionalDependencies: | ||
"@babel/code-frame" "^7.18.6" | ||
|
||
rollup-plugin-esbuild@^4.8.2: | ||
version "4.10.3" | ||
resolved "https://registry.yarnpkg.com/rollup-plugin-esbuild/-/rollup-plugin-esbuild-4.10.3.tgz#caa66a99b53b21d4939beffc611d76f57191c4cb" | ||
integrity sha512-RILwUCgnCL5vo8vyZ/ZpwcqRuE5KmLizEv6BujBQfgXFZ6ggcS0FiYvQN+gsTJfWCMaU37l0Fosh4eEufyO97Q== | ||
dependencies: | ||
"@rollup/pluginutils" "^4.1.1" | ||
debug "^4.3.3" | ||
es-module-lexer "^0.9.3" | ||
joycon "^3.0.1" | ||
jsonc-parser "^3.0.0" | ||
|
||
rollup-plugin-node-externals@^4.0.0: | ||
version "4.1.1" | ||
resolved "https://registry.yarnpkg.com/rollup-plugin-node-externals/-/rollup-plugin-node-externals-4.1.1.tgz#81d90eea6f99831a90206df1f0531fdcfc360d7c" | ||
integrity sha512-hiGCMTKHVoueaTmtcUv1KR0/dlNBuI9GYzHUlSHQbMd7T7yomYdXCFnBisoBqdZYy61EGAIfz8AvJaWWBho3Pg== | ||
dependencies: | ||
find-up "^5.0.0" | ||
|
||
rollup-plugin-preserve-directives@^0.4.0: | ||
version "0.4.0" | ||
resolved "https://registry.yarnpkg.com/rollup-plugin-preserve-directives/-/rollup-plugin-preserve-directives-0.4.0.tgz#5e22f448a49b8aa28898d151e7a707b0eab15a6e" | ||
integrity sha512-gx4nBxYm5BysmEQS+e2tAMrtFxrGvk+Pe5ppafRibQi0zlW7VYAbEGk6IKDw9sJGPdFWgVTE0o4BU4cdG0Fylg== | ||
dependencies: | ||
"@rollup/pluginutils" "^5.1.0" | ||
magic-string "^0.30.5" | ||
|
||
"rollup@^2.25.0 || ^3.3.0": | ||
version "3.29.4" | ||
resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.4.tgz#4d70c0f9834146df8705bfb69a9a19c9e1109981" | ||
integrity sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw== | ||
optionalDependencies: | ||
fsevents "~2.3.2" | ||
|
||
rollup@^2.70.1: | ||
version "2.79.1" | ||
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.79.1.tgz#bedee8faef7c9f93a2647ac0108748f497f081c7" | ||
integrity sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw== | ||
optionalDependencies: | ||
fsevents "~2.3.2" | ||
|
||
rollup@^4.0.2, rollup@^4.13.0: | ||
version "4.17.2" | ||
resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.17.2.tgz#26d1785d0144122277fdb20ab3a24729ae68301f" | ||
|
@@ -9717,11 +9650,6 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: | |
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" | ||
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== | ||
|
||
sourcemap-codec@^1.4.8: | ||
version "1.4.8" | ||
resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4" | ||
integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA== | ||
|
||
space-separated-tokens@^1.0.0: | ||
version "1.1.5" | ||
resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz#85f32c3d10d9682007e917414ddc5c26d1aa6899" | ||
|
@@ -10307,6 +10235,26 @@ tsup@^7.2.0: | |
sucrase "^3.20.3" | ||
tree-kill "^1.2.2" | ||
|
||
tsup@^8.0.2: | ||
version "8.0.2" | ||
resolved "https://registry.yarnpkg.com/tsup/-/tsup-8.0.2.tgz#c63192a08386515103e2c44ac5a23bdff75c5fa1" | ||
integrity sha512-NY8xtQXdH7hDUAZwcQdY/Vzlw9johQsaqf7iwZ6g1DOUlFYQ5/AtVAjTvihhEyeRlGo4dLRVHtrRaL35M1daqQ== | ||
dependencies: | ||
bundle-require "^4.0.0" | ||
cac "^6.7.12" | ||
chokidar "^3.5.1" | ||
debug "^4.3.1" | ||
esbuild "^0.19.2" | ||
execa "^5.0.0" | ||
globby "^11.0.3" | ||
joycon "^3.0.1" | ||
postcss-load-config "^4.0.1" | ||
resolve-from "^5.0.0" | ||
rollup "^4.0.2" | ||
source-map "0.8.0-beta.0" | ||
sucrase "^3.20.3" | ||
tree-kill "^1.2.2" | ||
|
||
tsutils@^3.21.0: | ||
version "3.21.0" | ||
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" | ||
|