@voidzero-dev/vite-plus-core 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +175 -48
- package/dist/rolldown/cli.mjs +25 -14
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.d.mts +15 -5
- package/dist/rolldown/experimental-index.mjs +23 -17
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +2 -2
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +5 -4
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +1 -1
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{binding-DgGsNpT9.d.mts → binding-B1q9aYT-.d.mts} +65 -142
- package/dist/rolldown/shared/{binding-CfwqjDbP.mjs → binding-BmkJW3Wy.mjs} +39 -35
- package/dist/rolldown/shared/{bindingify-input-options--chmbDhw.mjs → bindingify-input-options-Cmm60vfj.mjs} +1330 -1331
- package/dist/rolldown/shared/{constructors-Bx1tSad6.d.mts → constructors-2i1T9YcF.d.mts} +3 -4
- package/dist/rolldown/shared/{constructors-DnT9y_13.mjs → constructors-CE6zZSUt.mjs} +2 -5
- package/dist/rolldown/shared/{define-config-ChOOV2QZ.d.mts → define-config-BBz954-q.d.mts} +2 -2
- package/dist/rolldown/shared/{error-C0TrL0_H.mjs → error-BlQ0-ek7.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-BXgGQtnA.mjs → load-config-CVVMWSlg.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-DGbe3BlX.mjs → normalize-string-or-regex-BYkbbGqQ.mjs} +1 -1
- package/dist/rolldown/shared/{parse-26ORR8fZ.mjs → parse-Dphnedsw.mjs} +2 -2
- package/dist/rolldown/shared/{prompt-DV1XbtjC.mjs → prompt-Bgj-uEyc.mjs} +5 -5
- package/dist/rolldown/shared/{resolve-tsconfig-D3YLh9ff.mjs → resolve-tsconfig-CdIAR1Eb.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-DpXXI00f.mjs → rolldown-Bnp916iM.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-D8R4Zzfy.mjs → rolldown-build-Cs2iVJuw.mjs} +24 -56
- package/dist/rolldown/shared/{transform-C-XSNVrd.d.mts → transform-CEmFsvJW.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-D5Zm0Vsz.mjs → watch-ECGr-_QS.mjs} +4 -4
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +6 -6
- package/dist/tsdown/{build-B_nvJe4A-BkmlHYK-.js → build-B_nvJe4A-CvbtVBxy.js} +30 -96
- package/dist/tsdown/debug-DLdR-9XB-DQZ6QLC0.js +250 -0
- package/dist/tsdown/{detect-B97OSl92-B5bcx_Ya.js → detect-B97OSl92-BJPZyIKJ.js} +1 -1
- package/dist/tsdown/{dist-4h5bgYzo.js → dist-CqbVlnVq.js} +30 -25
- package/dist/tsdown/general-Cp4NiJNK-CbyrS9q1.js +97 -0
- package/dist/tsdown/index-types.d.ts +197 -7
- package/dist/tsdown/index.js +3 -3
- package/dist/tsdown/internal-bfoxcI4F.js +3 -0
- package/dist/tsdown/{main-BMtwTklr.js → main-BlTcyuFi.js} +2 -341
- package/dist/tsdown/npm_entry_picomatch.cjs +4 -2
- package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +5 -1
- package/dist/tsdown/{resolver-DtsKFXi2-DQOmVgSY.js → resolver-DtsKFXi2-B8Z3WwZh.js} +1 -1
- package/dist/tsdown/run.js +4 -3
- package/dist/tsdown/src-CISfE_A0.js +622 -0
- package/dist/tsdown/target-CqeSqtms-FAqYuGyB.js +79 -0
- package/dist/tsdown/{tsc-15OYetCl.js → tsc-CdZE7QwS.js} +3 -3
- package/dist/tsdown/{tsc-context-DfwSQt2q.js → tsc-context-CX_GXdyS.js} +2 -2
- package/dist/tsdown/tsdown-css.js +874 -0
- package/dist/tsdown/tsdown-exe.js +949 -0
- package/dist/vite/client/client.mjs +7 -9
- package/dist/vite/client.d.ts +3 -0
- package/dist/vite/node/chunks/build.js +27 -34
- package/dist/vite/node/chunks/dist.js +23 -23
- package/dist/vite/node/chunks/dist2.js +3 -3
- package/dist/vite/node/chunks/logger.js +4 -4
- package/dist/vite/node/chunks/node.js +12486 -11732
- package/dist/vite/node/chunks/postcss-import.js +10 -10
- package/dist/vite/node/cli.js +3 -3
- package/dist/vite/node/index.d.ts +141 -16
- package/dist/vite/node/index.js +1 -1
- package/dist/vite/node/module-runner.js +6 -6
- package/dist/vite/types/importGlob.d.ts +48 -6
- package/package.json +15 -21
package/LICENSE
CHANGED
|
@@ -217,6 +217,36 @@ Repository: https://github.com/rollup/plugins
|
|
|
217
217
|
|
|
218
218
|
---------------------------------------
|
|
219
219
|
|
|
220
|
+
## @tsdown/css, @tsdown/exe, tsdown
|
|
221
|
+
License: MIT
|
|
222
|
+
By: Kevin Deng <sxzz@sxzz.moe>
|
|
223
|
+
Repositories: https://github.com/rolldown/tsdown, https://github.com/rolldown/tsdown, https://github.com/rolldown/tsdown
|
|
224
|
+
|
|
225
|
+
> The MIT License (MIT)
|
|
226
|
+
>
|
|
227
|
+
> Copyright (c) 2025-present VoidZero Inc. & Contributors
|
|
228
|
+
> Copyright (c) 2024 Kevin Deng (https://github.com/sxzz)
|
|
229
|
+
>
|
|
230
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
231
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
232
|
+
> in the Software without restriction, including without limitation the rights
|
|
233
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
234
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
235
|
+
> furnished to do so, subject to the following conditions:
|
|
236
|
+
>
|
|
237
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
238
|
+
> copies or substantial portions of the Software.
|
|
239
|
+
>
|
|
240
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
241
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
242
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
243
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
244
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
245
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
246
|
+
> SOFTWARE.
|
|
247
|
+
|
|
248
|
+
---------------------------------------
|
|
249
|
+
|
|
220
250
|
## @vercel/detect-agent
|
|
221
251
|
License: Apache-2.0
|
|
222
252
|
By: Vercel
|
|
@@ -483,6 +513,34 @@ Repository: https://github.com/vitest-dev/vitest
|
|
|
483
513
|
|
|
484
514
|
---------------------------------------
|
|
485
515
|
|
|
516
|
+
## @voidzero-dev/vite-task-client
|
|
517
|
+
License: MIT
|
|
518
|
+
Repository: https://github.com/voidzero-dev/vite-task
|
|
519
|
+
|
|
520
|
+
> MIT License
|
|
521
|
+
>
|
|
522
|
+
> Copyright (c) 2026-present, VoidZero Inc.
|
|
523
|
+
>
|
|
524
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
525
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
526
|
+
> in the Software without restriction, including without limitation the rights
|
|
527
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
528
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
529
|
+
> furnished to do so, subject to the following conditions:
|
|
530
|
+
>
|
|
531
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
532
|
+
> copies or substantial portions of the Software.
|
|
533
|
+
>
|
|
534
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
535
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
536
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
537
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
538
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
539
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
540
|
+
> SOFTWARE.
|
|
541
|
+
|
|
542
|
+
---------------------------------------
|
|
543
|
+
|
|
486
544
|
## anymatch
|
|
487
545
|
License: ISC
|
|
488
546
|
By: Elan Shanker
|
|
@@ -811,6 +869,37 @@ Repository: https://github.com/unjs/consola
|
|
|
811
869
|
|
|
812
870
|
---------------------------------------
|
|
813
871
|
|
|
872
|
+
## convert-source-map
|
|
873
|
+
License: MIT
|
|
874
|
+
By: Thorsten Lorenz
|
|
875
|
+
Repository: https://github.com/thlorenz/convert-source-map
|
|
876
|
+
|
|
877
|
+
> Copyright 2013 Thorsten Lorenz.
|
|
878
|
+
> All rights reserved.
|
|
879
|
+
>
|
|
880
|
+
> Permission is hereby granted, free of charge, to any person
|
|
881
|
+
> obtaining a copy of this software and associated documentation
|
|
882
|
+
> files (the "Software"), to deal in the Software without
|
|
883
|
+
> restriction, including without limitation the rights to use,
|
|
884
|
+
> copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
885
|
+
> copies of the Software, and to permit persons to whom the
|
|
886
|
+
> Software is furnished to do so, subject to the following
|
|
887
|
+
> conditions:
|
|
888
|
+
>
|
|
889
|
+
> The above copyright notice and this permission notice shall be
|
|
890
|
+
> included in all copies or substantial portions of the Software.
|
|
891
|
+
>
|
|
892
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
893
|
+
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
894
|
+
> OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
895
|
+
> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
896
|
+
> HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
897
|
+
> WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
898
|
+
> FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
899
|
+
> OTHER DEALINGS IN THE SOFTWARE.
|
|
900
|
+
|
|
901
|
+
---------------------------------------
|
|
902
|
+
|
|
814
903
|
## cors
|
|
815
904
|
License: MIT
|
|
816
905
|
By: Troy Goode <troygoode@gmail.com> (https://github.com/troygoode/)
|
|
@@ -1056,24 +1145,6 @@ Repository: https://github.com/fb55/entities
|
|
|
1056
1145
|
|
|
1057
1146
|
---------------------------------------
|
|
1058
1147
|
|
|
1059
|
-
## es-module-lexer
|
|
1060
|
-
License: MIT
|
|
1061
|
-
By: Guy Bedford
|
|
1062
|
-
Repository: https://github.com/guybedford/es-module-lexer
|
|
1063
|
-
|
|
1064
|
-
> MIT License
|
|
1065
|
-
> -----------
|
|
1066
|
-
>
|
|
1067
|
-
> Copyright (C) 2018-2022 Guy Bedford
|
|
1068
|
-
>
|
|
1069
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
1070
|
-
>
|
|
1071
|
-
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
1072
|
-
>
|
|
1073
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1074
|
-
|
|
1075
|
-
---------------------------------------
|
|
1076
|
-
|
|
1077
1148
|
## escape-html
|
|
1078
1149
|
License: MIT
|
|
1079
1150
|
Repository: https://github.com/component/escape-html
|
|
@@ -1221,6 +1292,35 @@ Repository: https://github.com/follow-redirects/follow-redirects
|
|
|
1221
1292
|
|
|
1222
1293
|
---------------------------------------
|
|
1223
1294
|
|
|
1295
|
+
## fresh-import
|
|
1296
|
+
License: MIT
|
|
1297
|
+
By: sapphi-red (https://github.com/sapphi-red)
|
|
1298
|
+
Repository: https://github.com/sapphi-red/fresh-import
|
|
1299
|
+
|
|
1300
|
+
> MIT License
|
|
1301
|
+
>
|
|
1302
|
+
> Copyright (c) 2026 sapphi-red
|
|
1303
|
+
>
|
|
1304
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1305
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
1306
|
+
> in the Software without restriction, including without limitation the rights
|
|
1307
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1308
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
1309
|
+
> furnished to do so, subject to the following conditions:
|
|
1310
|
+
>
|
|
1311
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
1312
|
+
> copies or substantial portions of the Software.
|
|
1313
|
+
>
|
|
1314
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1315
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1316
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1317
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1318
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1319
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1320
|
+
> SOFTWARE.
|
|
1321
|
+
|
|
1322
|
+
---------------------------------------
|
|
1323
|
+
|
|
1224
1324
|
## generic-names
|
|
1225
1325
|
License: MIT
|
|
1226
1326
|
By: Alexey Litvinov
|
|
@@ -2749,36 +2849,6 @@ Repository: https://github.com/pkrumins/node-tree-kill
|
|
|
2749
2849
|
|
|
2750
2850
|
---------------------------------------
|
|
2751
2851
|
|
|
2752
|
-
## tsdown
|
|
2753
|
-
License: MIT
|
|
2754
|
-
By: Kevin Deng <sxzz@sxzz.moe>
|
|
2755
|
-
Repository: https://github.com/rolldown/tsdown
|
|
2756
|
-
|
|
2757
|
-
> The MIT License (MIT)
|
|
2758
|
-
>
|
|
2759
|
-
> Copyright (c) 2025-present VoidZero Inc. & Contributors
|
|
2760
|
-
> Copyright (c) 2024 Kevin Deng (https://github.com/sxzz)
|
|
2761
|
-
>
|
|
2762
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2763
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
2764
|
-
> in the Software without restriction, including without limitation the rights
|
|
2765
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2766
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
2767
|
-
> furnished to do so, subject to the following conditions:
|
|
2768
|
-
>
|
|
2769
|
-
> The above copyright notice and this permission notice shall be included in all
|
|
2770
|
-
> copies or substantial portions of the Software.
|
|
2771
|
-
>
|
|
2772
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2773
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2774
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2775
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2776
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2777
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
2778
|
-
> SOFTWARE.
|
|
2779
|
-
|
|
2780
|
-
---------------------------------------
|
|
2781
|
-
|
|
2782
2852
|
## unconfig-core
|
|
2783
2853
|
License: MIT
|
|
2784
2854
|
By: Anthony Fu <anthonyfu117@hotmail.com>
|
|
@@ -3304,6 +3374,34 @@ Repository: https://github.com/vitejs/vite
|
|
|
3304
3374
|
>
|
|
3305
3375
|
> ---------------------------------------
|
|
3306
3376
|
>
|
|
3377
|
+
> ## @voidzero-dev/vite-task-client
|
|
3378
|
+
> License: MIT
|
|
3379
|
+
> Repository: https://github.com/voidzero-dev/vite-task
|
|
3380
|
+
>
|
|
3381
|
+
> > MIT License
|
|
3382
|
+
> >
|
|
3383
|
+
> > Copyright (c) 2026-present, VoidZero Inc.
|
|
3384
|
+
> >
|
|
3385
|
+
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3386
|
+
> > of this software and associated documentation files (the "Software"), to deal
|
|
3387
|
+
> > in the Software without restriction, including without limitation the rights
|
|
3388
|
+
> > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
3389
|
+
> > copies of the Software, and to permit persons to whom the Software is
|
|
3390
|
+
> > furnished to do so, subject to the following conditions:
|
|
3391
|
+
> >
|
|
3392
|
+
> > The above copyright notice and this permission notice shall be included in all
|
|
3393
|
+
> > copies or substantial portions of the Software.
|
|
3394
|
+
> >
|
|
3395
|
+
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
3396
|
+
> > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
3397
|
+
> > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
3398
|
+
> > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
3399
|
+
> > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
3400
|
+
> > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
3401
|
+
> > SOFTWARE.
|
|
3402
|
+
>
|
|
3403
|
+
> ---------------------------------------
|
|
3404
|
+
>
|
|
3307
3405
|
> ## anymatch
|
|
3308
3406
|
> License: ISC
|
|
3309
3407
|
> By: Elan Shanker
|
|
@@ -3897,6 +3995,35 @@ Repository: https://github.com/vitejs/vite
|
|
|
3897
3995
|
>
|
|
3898
3996
|
> ---------------------------------------
|
|
3899
3997
|
>
|
|
3998
|
+
> ## fresh-import
|
|
3999
|
+
> License: MIT
|
|
4000
|
+
> By: sapphi-red
|
|
4001
|
+
> Repository: https://github.com/sapphi-red/fresh-import
|
|
4002
|
+
>
|
|
4003
|
+
> > MIT License
|
|
4004
|
+
> >
|
|
4005
|
+
> > Copyright (c) 2026 sapphi-red
|
|
4006
|
+
> >
|
|
4007
|
+
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4008
|
+
> > of this software and associated documentation files (the "Software"), to deal
|
|
4009
|
+
> > in the Software without restriction, including without limitation the rights
|
|
4010
|
+
> > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
4011
|
+
> > copies of the Software, and to permit persons to whom the Software is
|
|
4012
|
+
> > furnished to do so, subject to the following conditions:
|
|
4013
|
+
> >
|
|
4014
|
+
> > The above copyright notice and this permission notice shall be included in all
|
|
4015
|
+
> > copies or substantial portions of the Software.
|
|
4016
|
+
> >
|
|
4017
|
+
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
4018
|
+
> > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
4019
|
+
> > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
4020
|
+
> > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
4021
|
+
> > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
4022
|
+
> > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
4023
|
+
> > SOFTWARE.
|
|
4024
|
+
>
|
|
4025
|
+
> ---------------------------------------
|
|
4026
|
+
>
|
|
3900
4027
|
> ## generic-names
|
|
3901
4028
|
> License: MIT
|
|
3902
4029
|
> By: Alexey Litvinov
|
package/dist/rolldown/cli.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
2
|
-
import { C as version, S as description } from "./shared/bindingify-input-options
|
|
1
|
+
import { n as onExit, t as watch } from "./shared/watch-ECGr-_QS.mjs";
|
|
2
|
+
import { C as version, S as description } from "./shared/bindingify-input-options-Cmm60vfj.mjs";
|
|
3
3
|
import { t as arraify } from "./shared/misc-CoQm4NHO.mjs";
|
|
4
|
-
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-
|
|
5
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
6
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
4
|
+
import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-Cs2iVJuw.mjs";
|
|
5
|
+
import { t as rolldown } from "./shared/rolldown-Bnp916iM.mjs";
|
|
6
|
+
import { t as loadConfig } from "./shared/load-config-CVVMWSlg.mjs";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import g$1 from "node:process";
|
|
9
9
|
import { performance } from "node:perf_hooks";
|
|
10
10
|
//#region ../../../node_modules/.pnpm/cac@7.0.0/node_modules/cac/dist/index.js
|
|
11
11
|
function toArr(any) {
|
|
@@ -679,7 +679,7 @@ function camelCaseToKebabCase(str) {
|
|
|
679
679
|
}
|
|
680
680
|
//#endregion
|
|
681
681
|
//#region src/cli/arguments/normalize.ts
|
|
682
|
-
const reservedKeys = new Set([
|
|
682
|
+
const reservedKeys = /* @__PURE__ */ new Set([
|
|
683
683
|
"help",
|
|
684
684
|
"version",
|
|
685
685
|
"config",
|
|
@@ -736,8 +736,7 @@ const options = Object.fromEntries(Object.entries(schemaInfo).filter(([_key, inf
|
|
|
736
736
|
};
|
|
737
737
|
if (config?.abbreviation) result.short = config.abbreviation;
|
|
738
738
|
if (config?.hint) result.hint = config.hint;
|
|
739
|
-
|
|
740
|
-
return [config?.reverse ? `no-${kebabKey}` : kebabKey, result];
|
|
739
|
+
return [config?.reverse ? `no-${key}` : key, result];
|
|
741
740
|
}));
|
|
742
741
|
const knownKeys = new Set(Object.keys(schemaInfo));
|
|
743
742
|
for (const key of Object.keys(schemaInfo)) {
|
|
@@ -746,6 +745,18 @@ for (const key of Object.keys(schemaInfo)) {
|
|
|
746
745
|
}
|
|
747
746
|
const shortAliases = /* @__PURE__ */ new Set();
|
|
748
747
|
for (const config of Object.values(alias)) if (config?.abbreviation) shortAliases.add(config.abbreviation);
|
|
748
|
+
function kebabToCamelCase(input) {
|
|
749
|
+
return input.replaceAll(/([a-z])-([a-z])/g, (_, p1, p2) => {
|
|
750
|
+
return p1 + p2.toUpperCase();
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
function camelizeNestedKeys(value) {
|
|
754
|
+
const result = {};
|
|
755
|
+
for (const [key, nestedValue] of Object.entries(value)) if (Array.isArray(nestedValue)) result[kebabToCamelCase(key)] = nestedValue;
|
|
756
|
+
else if (nestedValue && typeof nestedValue === "object") result[kebabToCamelCase(key)] = camelizeNestedKeys(nestedValue);
|
|
757
|
+
else result[kebabToCamelCase(key)] = nestedValue;
|
|
758
|
+
return result;
|
|
759
|
+
}
|
|
749
760
|
function parseCliArguments() {
|
|
750
761
|
const cli = cac("rolldown");
|
|
751
762
|
for (const [key, info] of Object.entries(schemaInfo)) {
|
|
@@ -790,6 +801,7 @@ function parseCliArguments() {
|
|
|
790
801
|
const single = unknownKeys.length === 1;
|
|
791
802
|
logger.warn(`Option \`${unknownKeys.join(",")}\` ${single ? "is" : "are"} unrecognized. We will ignore ${single ? "this" : "those"} option${single ? "" : "s"}.`);
|
|
792
803
|
}
|
|
804
|
+
parsedOptions = camelizeNestedKeys(parsedOptions);
|
|
793
805
|
const rawArgs = { ...parsedOptions };
|
|
794
806
|
for (const key of unknownKeys) delete parsedOptions[key];
|
|
795
807
|
for (const [key, value] of Object.entries(parsedOptions)) {
|
|
@@ -847,7 +859,7 @@ function getClearScreenFunction(options) {
|
|
|
847
859
|
};
|
|
848
860
|
}
|
|
849
861
|
//#endregion
|
|
850
|
-
//#region \0@oxc-project+runtime@0.
|
|
862
|
+
//#region \0@oxc-project+runtime@0.138.0/helpers/esm/usingCtx.js
|
|
851
863
|
function _usingCtx() {
|
|
852
864
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
853
865
|
var n = Error();
|
|
@@ -1121,7 +1133,6 @@ function generateHelpText() {
|
|
|
1121
1133
|
return a.localeCompare(b);
|
|
1122
1134
|
}).map(([option, { type, short, hint, description }]) => {
|
|
1123
1135
|
let optionStr = ` --${option} `;
|
|
1124
|
-
option = camelCaseToKebabCase(option);
|
|
1125
1136
|
if (short) optionStr += `-${short}, `;
|
|
1126
1137
|
if (type === "string") optionStr += `<${hint ?? option}>`;
|
|
1127
1138
|
if (description && description.length > 0) description = description[0].toUpperCase() + description.slice(1);
|
|
@@ -1155,14 +1166,14 @@ function checkNodeVersion(nodeVersion) {
|
|
|
1155
1166
|
}
|
|
1156
1167
|
//#endregion
|
|
1157
1168
|
//#region src/cli/index.ts
|
|
1158
|
-
if (!checkNodeVersion(
|
|
1169
|
+
if (!checkNodeVersion(g$1.versions.node)) logger.warn(`You are using Node.js ${g$1.versions.node}. Rolldown requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.`);
|
|
1159
1170
|
async function main() {
|
|
1160
1171
|
const { rawArgs, ...cliOptions } = parseCliArguments();
|
|
1161
1172
|
if (cliOptions.environment) {
|
|
1162
1173
|
const environment = Array.isArray(cliOptions.environment) ? cliOptions.environment : [cliOptions.environment];
|
|
1163
1174
|
for (const argument of environment) for (const pair of argument.split(",")) {
|
|
1164
1175
|
const [key, ...value] = pair.split(":");
|
|
1165
|
-
|
|
1176
|
+
g$1.env[key] = value.length === 0 ? String(true) : value.join(":");
|
|
1166
1177
|
}
|
|
1167
1178
|
}
|
|
1168
1179
|
if (cliOptions.help) {
|
|
@@ -1185,7 +1196,7 @@ async function main() {
|
|
|
1185
1196
|
}
|
|
1186
1197
|
main().catch((err) => {
|
|
1187
1198
|
logger.error(err);
|
|
1188
|
-
|
|
1199
|
+
g$1.exit(1);
|
|
1189
1200
|
});
|
|
1190
1201
|
//#endregion
|
|
1191
1202
|
export {};
|
package/dist/rolldown/config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x as VERSION } from "./shared/bindingify-input-options
|
|
1
|
+
import { x as VERSION } from "./shared/bindingify-input-options-Cmm60vfj.mjs";
|
|
2
2
|
import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
|
|
3
|
-
import { t as loadConfig } from "./shared/load-config-
|
|
3
|
+
import { t as loadConfig } from "./shared/load-config-CVVMWSlg.mjs";
|
|
4
4
|
export { VERSION, defineConfig, loadConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as ResolveResult, C as BindingViteManifestPluginConfig, G as isolatedDeclaration, I as NapiResolveOptions, K as isolatedDeclarationSync, M as IsolatedDeclarationsResult, O as BindingViteTransformPluginConfig, V as ResolverFactory, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsOptions, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState } from "./shared/binding-
|
|
2
|
-
import { Jt as RolldownOutput, P as BuiltinPlugin, Ut as StringOrRegExp, Xt as freeExternalMemory, Z as defineParallelPlugin, ct as NormalizedOutputOptions, l as InputOptions, zt as OutputOptions } from "./shared/define-config-
|
|
3
|
-
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-
|
|
4
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin,
|
|
1
|
+
import { B as ResolveResult, C as BindingViteManifestPluginConfig, G as isolatedDeclaration, I as NapiResolveOptions, K as isolatedDeclarationSync, M as IsolatedDeclarationsResult, O as BindingViteTransformPluginConfig, V as ResolverFactory, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsOptions, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState } from "./shared/binding-B1q9aYT-.mjs";
|
|
2
|
+
import { Jt as RolldownOutput, P as BuiltinPlugin, Ut as StringOrRegExp, Xt as freeExternalMemory, Z as defineParallelPlugin, ct as NormalizedOutputOptions, l as InputOptions, zt as OutputOptions } from "./shared/define-config-BBz954-q.mjs";
|
|
3
|
+
import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-CEmFsvJW.mjs";
|
|
4
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-2i1T9YcF.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/api/dev/dev-options.d.ts
|
|
7
7
|
type DevOnHmrUpdates = (result: Error | {
|
|
@@ -9,6 +9,7 @@ type DevOnHmrUpdates = (result: Error | {
|
|
|
9
9
|
changedFiles: string[];
|
|
10
10
|
}) => void | Promise<void>;
|
|
11
11
|
type DevOnOutput = (result: Error | RolldownOutput) => void | Promise<void>;
|
|
12
|
+
type DevOnAdditionalAssets = (output: RolldownOutput) => void | Promise<void>;
|
|
12
13
|
interface DevWatchOptions {
|
|
13
14
|
/**
|
|
14
15
|
* If `true`, files are not written to disk.
|
|
@@ -69,6 +70,15 @@ interface DevOptions {
|
|
|
69
70
|
onHmrUpdates?: DevOnHmrUpdates;
|
|
70
71
|
onOutput?: DevOnOutput;
|
|
71
72
|
/**
|
|
73
|
+
* Called with assets emitted while generating an HMR patch or compiling a
|
|
74
|
+
* lazy entry (e.g. an image newly imported by the changed/lazy module).
|
|
75
|
+
*
|
|
76
|
+
* These never go through {@link onOutput}, so a consumer that serves built
|
|
77
|
+
* files (e.g. Vite's bundled dev server) must register this to receive them
|
|
78
|
+
* and write them to its in-memory file store before the client requests them.
|
|
79
|
+
*/
|
|
80
|
+
onAdditionalAssets?: DevOnAdditionalAssets;
|
|
81
|
+
/**
|
|
72
82
|
* Strategy for triggering rebuilds after HMR updates.
|
|
73
83
|
* - `'always'`: Always trigger a rebuild after HMR updates
|
|
74
84
|
* - `'auto'`: Trigger rebuild only if HMR updates contain full reload updates
|
|
@@ -267,4 +277,4 @@ type TsconfigRawOptions = BindingTsconfigRawOptions;
|
|
|
267
277
|
/** @deprecated Use from `rolldown/utils` instead. */
|
|
268
278
|
type TsconfigCompilerOptions = BindingTsconfigCompilerOptions;
|
|
269
279
|
//#endregion
|
|
270
|
-
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin,
|
|
280
|
+
export { type BindingClientHmrUpdate, BindingRebuildStrategy, DevEngine, type DevOptions, type DevWatchOptions, type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, MinifyOptions, MinifyResult, ParseResult, ParserOptions, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, TransformOptions, TransformResult, TsconfigCache, TsconfigCompilerOptions, TsconfigRawOptions, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-
|
|
3
|
-
import { o as transformToRollupOutput } from "./shared/bindingify-input-options
|
|
4
|
-
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-
|
|
5
|
-
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-
|
|
6
|
-
import { n as parseSync$1, t as parse$1 } from "./shared/parse-
|
|
7
|
-
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin,
|
|
8
|
-
import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BmkJW3Wy.mjs";
|
|
2
|
+
import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-BYkbbGqQ.mjs";
|
|
3
|
+
import { o as transformToRollupOutput } from "./shared/bindingify-input-options-Cmm60vfj.mjs";
|
|
4
|
+
import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-Cs2iVJuw.mjs";
|
|
5
|
+
import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-BlQ0-ek7.mjs";
|
|
6
|
+
import { n as parseSync$1, t as parse$1 } from "./shared/parse-Dphnedsw.mjs";
|
|
7
|
+
import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-CE6zZSUt.mjs";
|
|
8
|
+
import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-CdIAR1Eb.mjs";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
|
10
10
|
//#region src/api/dev/dev-engine.ts
|
|
11
11
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
@@ -29,15 +29,20 @@ var DevEngine = class DevEngine {
|
|
|
29
29
|
});
|
|
30
30
|
} : void 0;
|
|
31
31
|
const userOnOutput = devOptions.onOutput;
|
|
32
|
+
const bindingOnOutput = userOnOutput ? function(rawResult) {
|
|
33
|
+
const result = normalizeBindingResult(rawResult);
|
|
34
|
+
if (result instanceof Error) {
|
|
35
|
+
userOnOutput(result);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
userOnOutput(transformToRollupOutput(result));
|
|
39
|
+
} : void 0;
|
|
40
|
+
const userOnAdditionalAssets = devOptions.onAdditionalAssets;
|
|
32
41
|
const bindingDevOptions = {
|
|
33
42
|
onHmrUpdates: bindingOnHmrUpdates,
|
|
34
|
-
onOutput:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
userOnOutput(result);
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
userOnOutput(transformToRollupOutput(result));
|
|
43
|
+
onOutput: bindingOnOutput,
|
|
44
|
+
onAdditionalAssets: userOnAdditionalAssets ? function(output) {
|
|
45
|
+
userOnAdditionalAssets(transformToRollupOutput(output));
|
|
41
46
|
} : void 0,
|
|
42
47
|
rebuildStrategy: devOptions.rebuildStrategy ? devOptions.rebuildStrategy === "always" ? import_binding.BindingRebuildStrategy.Always : devOptions.rebuildStrategy === "auto" ? import_binding.BindingRebuildStrategy.Auto : import_binding.BindingRebuildStrategy.Never : void 0,
|
|
43
48
|
watch: devOptions.watch && {
|
|
@@ -52,7 +57,8 @@ var DevEngine = class DevEngine {
|
|
|
52
57
|
exclude: normalizedStringOrRegex(devOptions.watch.exclude)
|
|
53
58
|
}
|
|
54
59
|
};
|
|
55
|
-
|
|
60
|
+
const inner = new import_binding.BindingDevEngine(options.bundlerOptions, bindingDevOptions);
|
|
61
|
+
return new DevEngine(inner);
|
|
56
62
|
}
|
|
57
63
|
constructor(inner) {
|
|
58
64
|
this.#inner = inner;
|
|
@@ -322,4 +328,4 @@ var ResolverFactory = import_binding.ResolverFactory;
|
|
|
322
328
|
var isolatedDeclaration = import_binding.isolatedDeclaration;
|
|
323
329
|
var isolatedDeclarationSync = import_binding.isolatedDeclarationSync;
|
|
324
330
|
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
325
|
-
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin,
|
|
331
|
+
export { BindingRebuildStrategy, DevEngine, ResolverFactory, TsconfigCache, bundleAnalyzerPlugin, defineParallelPlugin, dev, viteDynamicImportVarsPlugin as dynamicImportVarsPlugin, viteDynamicImportVarsPlugin, freeExternalMemory, viteImportGlobPlugin as importGlobPlugin, viteImportGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, isolatedDeclarationSync, memfs, minify, minifySync, moduleRunnerTransform, oxcRuntimePlugin, parse, parseSync, resolveTsconfig, scan, transform, transformSync, viteAliasPlugin, viteBuildImportAnalysisPlugin, viteJsonPlugin, viteLoadFallbackPlugin, viteManifestPlugin, viteModulePreloadPolyfillPlugin, viteReactRefreshWrapperPlugin, viteReporterPlugin, viteResolvePlugin, viteTransformPlugin, viteWebWorkerPostPlugin };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as withFilter } from "./shared/define-config-
|
|
1
|
+
import { N as withFilter } from "./shared/define-config-BBz954-q.mjs";
|
|
2
2
|
|
|
3
3
|
//#region ../../../node_modules/.pnpm/@rolldown+pluginutils@1.0.1/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts
|
|
4
4
|
//#region src/filter/composable-filters.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-BSNejiLS.mjs";
|
|
2
|
-
import { z as PreRenderedChunk } from "./shared/binding-
|
|
3
|
-
import { $ as PluginContextMeta, A as RolldownPluginOption, At as CodeSplittingGroup, B as OutputBundle, Bt as PreRenderedAsset, C as ParallelPluginHooks, Ct as build, D as ResolveIdResult, Dt as BuiltinModuleTag, E as ResolveIdExtraOptions, Et as AdvancedChunksOptions, F as RUNTIME_MODULE_ID, Ft as GeneratedCodePreset, G as EmittedFile, Gt as OutputChunk, H as TransformPluginContext, Ht as PartialNull, I as VERSION, It as GlobalsFunction, J as PluginContext, Jt as RolldownOutput, K as EmittedPrebuiltChunk, Kt as RenderedChunk, L as BundleError, Lt as MinifyOptions, M as TransformResult, Mt as CodeSplittingOptions, Nt as CommentsOptions, O as ResolvedId, Ot as ChunkFileNamesFunction, Pt as GeneratedCodeOptions, Q as MinimalPluginContext, Qt as SourcemapIgnoreListOption, R as ExistingRawSourceMap, Rt as ModuleFormat, S as ObjectHook, St as BuildOptions, T as Plugin, Tt as AdvancedChunksGroup, U as EmittedAsset, V as TreeshakingOptions, W as EmittedChunk, Wt as OutputAsset, X as DefineParallelPluginResult, Y as PluginContextResolveOptions, Yt as SourceMap, Zt as ModuleInfo, _ as HookFilterExtension, _t as RolldownWatcherEvent, a as ChunkOptimizationOptions, at as RolldownFileStats, b as ModuleOptions, bt as rolldown, c as InputOption, ct as NormalizedOutputOptions, d as OptimizationOptions, dt as ChecksOptions, et as GeneralHookFilter, f as WatcherFileWatcherOptions, ft as LoggingFunction, g as FunctionPluginHooks, gt as RolldownWatcher, h as CustomPluginOptions, ht as watch, i as RolldownOptions, it as RolldownDirectoryEntry, j as SourceDescription, jt as CodeSplittingNameFunction, k as RolldownPlugin, kt as ChunkingContext, l as InputOptions, lt as NormalizedInputOptions, m as AsyncPluginHooks, mt as RolldownMagicString, n as RolldownOptionsFunction, nt as ModuleTypeFilter, o as ExternalOption, ot as RolldownFsModule, p as WatcherOptions, pt as WarningHandlerWithDefault, q as GetModuleInfo, qt as RenderedModule, r as defineConfig, rt as BufferEncoding, s as ExternalOptionFunction, st as InternalModuleFormat, t as ConfigExport, tt as HookFilter, u as ModuleTypes, ut as TransformOptions, v as ImportKind, vt as RolldownWatcherWatcherEventMap, w as PartialResolvedId, wt as AddonFunction, x as ModuleType, xt as RolldownBuild, y as LoadResult, yt as WatchOptions, z as SourceMapInput, zt as OutputOptions } from "./shared/define-config-
|
|
2
|
+
import { z as PreRenderedChunk } from "./shared/binding-B1q9aYT-.mjs";
|
|
3
|
+
import { $ as PluginContextMeta, A as RolldownPluginOption, At as CodeSplittingGroup, B as OutputBundle, Bt as PreRenderedAsset, C as ParallelPluginHooks, Ct as build, D as ResolveIdResult, Dt as BuiltinModuleTag, E as ResolveIdExtraOptions, Et as AdvancedChunksOptions, F as RUNTIME_MODULE_ID, Ft as GeneratedCodePreset, G as EmittedFile, Gt as OutputChunk, H as TransformPluginContext, Ht as PartialNull, I as VERSION, It as GlobalsFunction, J as PluginContext, Jt as RolldownOutput, K as EmittedPrebuiltChunk, Kt as RenderedChunk, L as BundleError, Lt as MinifyOptions, M as TransformResult, Mt as CodeSplittingOptions, Nt as CommentsOptions, O as ResolvedId, Ot as ChunkFileNamesFunction, Pt as GeneratedCodeOptions, Q as MinimalPluginContext, Qt as SourcemapIgnoreListOption, R as ExistingRawSourceMap, Rt as ModuleFormat, S as ObjectHook, St as BuildOptions, T as Plugin, Tt as AdvancedChunksGroup, U as EmittedAsset, V as TreeshakingOptions, W as EmittedChunk, Wt as OutputAsset, X as DefineParallelPluginResult, Y as PluginContextResolveOptions, Yt as SourceMap, Zt as ModuleInfo, _ as HookFilterExtension, _t as RolldownWatcherEvent, a as ChunkOptimizationOptions, at as RolldownFileStats, b as ModuleOptions, bt as rolldown, c as InputOption, ct as NormalizedOutputOptions, d as OptimizationOptions, dt as ChecksOptions, et as GeneralHookFilter, f as WatcherFileWatcherOptions, ft as LoggingFunction, g as FunctionPluginHooks, gt as RolldownWatcher, h as CustomPluginOptions, ht as watch, i as RolldownOptions, it as RolldownDirectoryEntry, j as SourceDescription, jt as CodeSplittingNameFunction, k as RolldownPlugin, kt as ChunkingContext, l as InputOptions, lt as NormalizedInputOptions, m as AsyncPluginHooks, mt as RolldownMagicString, n as RolldownOptionsFunction, nt as ModuleTypeFilter, o as ExternalOption, ot as RolldownFsModule, p as WatcherOptions, pt as WarningHandlerWithDefault, q as GetModuleInfo, qt as RenderedModule, r as defineConfig, rt as BufferEncoding, s as ExternalOptionFunction, st as InternalModuleFormat, t as ConfigExport, tt as HookFilter, u as ModuleTypes, ut as TransformOptions, v as ImportKind, vt as RolldownWatcherWatcherEventMap, w as PartialResolvedId, wt as AddonFunction, x as ModuleType, xt as RolldownBuild, y as LoadResult, yt as WatchOptions, z as SourceMapInput, zt as OutputOptions } from "./shared/define-config-BBz954-q.mjs";
|
|
4
4
|
export { type AddonFunction, type AdvancedChunksGroup, type AdvancedChunksOptions, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, type BuiltinModuleTag, type BundleError, type ChecksOptions, type ChunkFileNamesFunction, type ChunkOptimizationOptions, type ChunkingContext, type CodeSplittingGroup, type CodeSplittingNameFunction, type CodeSplittingOptions, type CommentsOptions, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedChunk, type EmittedFile, type EmittedPrebuiltChunk, type ExistingRawSourceMap, type ExternalOption, type ExternalOptionFunction, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PluginContextResolveOptions, type PreRenderedAsset, type PreRenderedChunk, RUNTIME_MODULE_ID, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownError, type RolldownError as RollupError, type RolldownFileStats, type RolldownFsModule, type RolldownLog, type RolldownLog as RollupLog, type RolldownLogWithString, type RolldownLogWithString as RollupLogWithString, RolldownMagicString, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RolldownWatcherWatcherEventMap, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformOptions, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherFileWatcherOptions, type WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/rolldown/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import { n as onExit, t as watch } from "./shared/watch-
|
|
3
|
-
import {
|
|
4
|
-
import { t as rolldown } from "./shared/rolldown-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BmkJW3Wy.mjs";
|
|
2
|
+
import { n as onExit, t as watch } from "./shared/watch-ECGr-_QS.mjs";
|
|
3
|
+
import { b as RUNTIME_MODULE_ID, r as RolldownMagicString, x as VERSION } from "./shared/bindingify-input-options-Cmm60vfj.mjs";
|
|
4
|
+
import { t as rolldown } from "./shared/rolldown-Bnp916iM.mjs";
|
|
5
5
|
import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
|
|
6
6
|
import { isMainThread } from "node:worker_threads";
|
|
7
7
|
//#region src/setup.ts
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./shared/binding-
|
|
2
|
-
import {
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./shared/binding-BmkJW3Wy.mjs";
|
|
2
|
+
import { i as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-Cmm60vfj.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
//#region src/parallel-plugin-worker.ts
|
|
5
5
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
6
6
|
const { registryId, pluginInfos, threadNumber } = workerData;
|
|
7
7
|
(async () => {
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const plugins = await Promise.all(pluginInfos.map(async (pluginInfo) => {
|
|
10
10
|
const definePluginImpl = (await import(pluginInfo.fileUrl)).default;
|
|
11
11
|
const plugin = await definePluginImpl(pluginInfo.options, { threadNumber });
|
|
12
12
|
return {
|
|
13
13
|
index: pluginInfo.index,
|
|
14
14
|
plugin: bindingifyPlugin(plugin, {}, {}, new PluginContextData(() => {}, {}, [], []), [], () => {}, "info", false)
|
|
15
15
|
};
|
|
16
|
-
}))
|
|
16
|
+
}));
|
|
17
|
+
(0, import_binding.registerPlugins)(registryId, plugins);
|
|
17
18
|
parentPort.postMessage({ type: "success" });
|
|
18
19
|
} catch (error) {
|
|
19
20
|
parentPort.postMessage({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Plugin, Vt as MaybePromise } from "./shared/define-config-
|
|
1
|
+
import { T as Plugin, Vt as MaybePromise } from "./shared/define-config-BBz954-q.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
4
4
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-aMKUxRpj.mjs";
|
|
2
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
2
|
+
import { n as parseSync, t as parse } from "./shared/parse-Dphnedsw.mjs";
|
|
3
3
|
//#region src/parse-ast-index.ts
|
|
4
4
|
function wrap(result, filename, sourceText) {
|
|
5
5
|
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as BindingReplacePluginConfig } from "./shared/binding-
|
|
2
|
-
import { P as BuiltinPlugin } from "./shared/define-config-
|
|
3
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { m as BindingReplacePluginConfig } from "./shared/binding-B1q9aYT-.mjs";
|
|
2
|
+
import { P as BuiltinPlugin } from "./shared/define-config-BBz954-q.mjs";
|
|
3
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-2i1T9YcF.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-
|
|
2
|
-
import { t as esmExternalRequirePlugin } from "./shared/constructors-
|
|
1
|
+
import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-BYkbbGqQ.mjs";
|
|
2
|
+
import { t as esmExternalRequirePlugin } from "./shared/constructors-CE6zZSUt.mjs";
|
|
3
3
|
//#region src/builtin-plugin/replace-plugin.ts
|
|
4
4
|
/**
|
|
5
5
|
* Replaces targeted strings in files while bundling.
|