vite 7.1.1 → 7.1.2
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.
Potentially problematic release.
This version of vite might be problematic. Click here for more details.
- package/LICENSE.md +4 -240
- package/dist/client/client.mjs +8 -8
- package/dist/node/chunks/{dep-B6kJvLFS.js → dep-BDbL9e7d.js} +1 -1
- package/dist/node/chunks/{dep-eRCq8YxU.js → dep-CMEinpL-.js} +67 -154
- package/dist/node/chunks/{dep-Cw8UoqDf.js → dep-CTf3zVuV.js} +1 -1
- package/dist/node/chunks/{dep-DzJShgQJ.js → dep-CtUaBn5f.js} +1 -1
- package/dist/node/chunks/{dep-1xsIeazw.js → dep-DZ4iRZu_.js} +1 -1
- package/dist/node/chunks/{dep-BeJ5EQ78.js → dep-Du_AlPMa.js} +2 -0
- package/dist/node/chunks/{dep-G9cgWHwY.js → dep-zLyvzoxR.js} +2 -0
- package/dist/node/cli.js +5 -5
- package/dist/node/index.js +1 -1
- package/dist/node/module-runner.js +3 -1
- package/package.json +7 -7
package/LICENSE.md
CHANGED
@@ -25,224 +25,15 @@ SOFTWARE.
|
|
25
25
|
|
26
26
|
# Licenses of bundled dependencies
|
27
27
|
The published Vite artifact additionally contains code with the following licenses:
|
28
|
-
|
28
|
+
BSD-2-Clause, CC0-1.0, ISC, MIT
|
29
29
|
|
30
30
|
# Bundled dependencies:
|
31
|
-
## @
|
32
|
-
License: Apache-2.0
|
33
|
-
By: Justin Ridgewell
|
34
|
-
Repository: git+https://github.com/ampproject/remapping.git
|
35
|
-
|
36
|
-
> Apache License
|
37
|
-
> Version 2.0, January 2004
|
38
|
-
> http://www.apache.org/licenses/
|
39
|
-
>
|
40
|
-
> TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
41
|
-
>
|
42
|
-
> 1. Definitions.
|
43
|
-
>
|
44
|
-
> "License" shall mean the terms and conditions for use, reproduction,
|
45
|
-
> and distribution as defined by Sections 1 through 9 of this document.
|
46
|
-
>
|
47
|
-
> "Licensor" shall mean the copyright owner or entity authorized by
|
48
|
-
> the copyright owner that is granting the License.
|
49
|
-
>
|
50
|
-
> "Legal Entity" shall mean the union of the acting entity and all
|
51
|
-
> other entities that control, are controlled by, or are under common
|
52
|
-
> control with that entity. For the purposes of this definition,
|
53
|
-
> "control" means (i) the power, direct or indirect, to cause the
|
54
|
-
> direction or management of such entity, whether by contract or
|
55
|
-
> otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
56
|
-
> outstanding shares, or (iii) beneficial ownership of such entity.
|
57
|
-
>
|
58
|
-
> "You" (or "Your") shall mean an individual or Legal Entity
|
59
|
-
> exercising permissions granted by this License.
|
60
|
-
>
|
61
|
-
> "Source" form shall mean the preferred form for making modifications,
|
62
|
-
> including but not limited to software source code, documentation
|
63
|
-
> source, and configuration files.
|
64
|
-
>
|
65
|
-
> "Object" form shall mean any form resulting from mechanical
|
66
|
-
> transformation or translation of a Source form, including but
|
67
|
-
> not limited to compiled object code, generated documentation,
|
68
|
-
> and conversions to other media types.
|
69
|
-
>
|
70
|
-
> "Work" shall mean the work of authorship, whether in Source or
|
71
|
-
> Object form, made available under the License, as indicated by a
|
72
|
-
> copyright notice that is included in or attached to the work
|
73
|
-
> (an example is provided in the Appendix below).
|
74
|
-
>
|
75
|
-
> "Derivative Works" shall mean any work, whether in Source or Object
|
76
|
-
> form, that is based on (or derived from) the Work and for which the
|
77
|
-
> editorial revisions, annotations, elaborations, or other modifications
|
78
|
-
> represent, as a whole, an original work of authorship. For the purposes
|
79
|
-
> of this License, Derivative Works shall not include works that remain
|
80
|
-
> separable from, or merely link (or bind by name) to the interfaces of,
|
81
|
-
> the Work and Derivative Works thereof.
|
82
|
-
>
|
83
|
-
> "Contribution" shall mean any work of authorship, including
|
84
|
-
> the original version of the Work and any modifications or additions
|
85
|
-
> to that Work or Derivative Works thereof, that is intentionally
|
86
|
-
> submitted to Licensor for inclusion in the Work by the copyright owner
|
87
|
-
> or by an individual or Legal Entity authorized to submit on behalf of
|
88
|
-
> the copyright owner. For the purposes of this definition, "submitted"
|
89
|
-
> means any form of electronic, verbal, or written communication sent
|
90
|
-
> to the Licensor or its representatives, including but not limited to
|
91
|
-
> communication on electronic mailing lists, source code control systems,
|
92
|
-
> and issue tracking systems that are managed by, or on behalf of, the
|
93
|
-
> Licensor for the purpose of discussing and improving the Work, but
|
94
|
-
> excluding communication that is conspicuously marked or otherwise
|
95
|
-
> designated in writing by the copyright owner as "Not a Contribution."
|
96
|
-
>
|
97
|
-
> "Contributor" shall mean Licensor and any individual or Legal Entity
|
98
|
-
> on behalf of whom a Contribution has been received by Licensor and
|
99
|
-
> subsequently incorporated within the Work.
|
100
|
-
>
|
101
|
-
> 2. Grant of Copyright License. Subject to the terms and conditions of
|
102
|
-
> this License, each Contributor hereby grants to You a perpetual,
|
103
|
-
> worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
104
|
-
> copyright license to reproduce, prepare Derivative Works of,
|
105
|
-
> publicly display, publicly perform, sublicense, and distribute the
|
106
|
-
> Work and such Derivative Works in Source or Object form.
|
107
|
-
>
|
108
|
-
> 3. Grant of Patent License. Subject to the terms and conditions of
|
109
|
-
> this License, each Contributor hereby grants to You a perpetual,
|
110
|
-
> worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
111
|
-
> (except as stated in this section) patent license to make, have made,
|
112
|
-
> use, offer to sell, sell, import, and otherwise transfer the Work,
|
113
|
-
> where such license applies only to those patent claims licensable
|
114
|
-
> by such Contributor that are necessarily infringed by their
|
115
|
-
> Contribution(s) alone or by combination of their Contribution(s)
|
116
|
-
> with the Work to which such Contribution(s) was submitted. If You
|
117
|
-
> institute patent litigation against any entity (including a
|
118
|
-
> cross-claim or counterclaim in a lawsuit) alleging that the Work
|
119
|
-
> or a Contribution incorporated within the Work constitutes direct
|
120
|
-
> or contributory patent infringement, then any patent licenses
|
121
|
-
> granted to You under this License for that Work shall terminate
|
122
|
-
> as of the date such litigation is filed.
|
123
|
-
>
|
124
|
-
> 4. Redistribution. You may reproduce and distribute copies of the
|
125
|
-
> Work or Derivative Works thereof in any medium, with or without
|
126
|
-
> modifications, and in Source or Object form, provided that You
|
127
|
-
> meet the following conditions:
|
128
|
-
>
|
129
|
-
> (a) You must give any other recipients of the Work or
|
130
|
-
> Derivative Works a copy of this License; and
|
131
|
-
>
|
132
|
-
> (b) You must cause any modified files to carry prominent notices
|
133
|
-
> stating that You changed the files; and
|
134
|
-
>
|
135
|
-
> (c) You must retain, in the Source form of any Derivative Works
|
136
|
-
> that You distribute, all copyright, patent, trademark, and
|
137
|
-
> attribution notices from the Source form of the Work,
|
138
|
-
> excluding those notices that do not pertain to any part of
|
139
|
-
> the Derivative Works; and
|
140
|
-
>
|
141
|
-
> (d) If the Work includes a "NOTICE" text file as part of its
|
142
|
-
> distribution, then any Derivative Works that You distribute must
|
143
|
-
> include a readable copy of the attribution notices contained
|
144
|
-
> within such NOTICE file, excluding those notices that do not
|
145
|
-
> pertain to any part of the Derivative Works, in at least one
|
146
|
-
> of the following places: within a NOTICE text file distributed
|
147
|
-
> as part of the Derivative Works; within the Source form or
|
148
|
-
> documentation, if provided along with the Derivative Works; or,
|
149
|
-
> within a display generated by the Derivative Works, if and
|
150
|
-
> wherever such third-party notices normally appear. The contents
|
151
|
-
> of the NOTICE file are for informational purposes only and
|
152
|
-
> do not modify the License. You may add Your own attribution
|
153
|
-
> notices within Derivative Works that You distribute, alongside
|
154
|
-
> or as an addendum to the NOTICE text from the Work, provided
|
155
|
-
> that such additional attribution notices cannot be construed
|
156
|
-
> as modifying the License.
|
157
|
-
>
|
158
|
-
> You may add Your own copyright statement to Your modifications and
|
159
|
-
> may provide additional or different license terms and conditions
|
160
|
-
> for use, reproduction, or distribution of Your modifications, or
|
161
|
-
> for any such Derivative Works as a whole, provided Your use,
|
162
|
-
> reproduction, and distribution of the Work otherwise complies with
|
163
|
-
> the conditions stated in this License.
|
164
|
-
>
|
165
|
-
> 5. Submission of Contributions. Unless You explicitly state otherwise,
|
166
|
-
> any Contribution intentionally submitted for inclusion in the Work
|
167
|
-
> by You to the Licensor shall be under the terms and conditions of
|
168
|
-
> this License, without any additional terms or conditions.
|
169
|
-
> Notwithstanding the above, nothing herein shall supersede or modify
|
170
|
-
> the terms of any separate license agreement you may have executed
|
171
|
-
> with Licensor regarding such Contributions.
|
172
|
-
>
|
173
|
-
> 6. Trademarks. This License does not grant permission to use the trade
|
174
|
-
> names, trademarks, service marks, or product names of the Licensor,
|
175
|
-
> except as required for reasonable and customary use in describing the
|
176
|
-
> origin of the Work and reproducing the content of the NOTICE file.
|
177
|
-
>
|
178
|
-
> 7. Disclaimer of Warranty. Unless required by applicable law or
|
179
|
-
> agreed to in writing, Licensor provides the Work (and each
|
180
|
-
> Contributor provides its Contributions) on an "AS IS" BASIS,
|
181
|
-
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
182
|
-
> implied, including, without limitation, any warranties or conditions
|
183
|
-
> of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
184
|
-
> PARTICULAR PURPOSE. You are solely responsible for determining the
|
185
|
-
> appropriateness of using or redistributing the Work and assume any
|
186
|
-
> risks associated with Your exercise of permissions under this License.
|
187
|
-
>
|
188
|
-
> 8. Limitation of Liability. In no event and under no legal theory,
|
189
|
-
> whether in tort (including negligence), contract, or otherwise,
|
190
|
-
> unless required by applicable law (such as deliberate and grossly
|
191
|
-
> negligent acts) or agreed to in writing, shall any Contributor be
|
192
|
-
> liable to You for damages, including any direct, indirect, special,
|
193
|
-
> incidental, or consequential damages of any character arising as a
|
194
|
-
> result of this License or out of the use or inability to use the
|
195
|
-
> Work (including but not limited to damages for loss of goodwill,
|
196
|
-
> work stoppage, computer failure or malfunction, or any and all
|
197
|
-
> other commercial damages or losses), even if such Contributor
|
198
|
-
> has been advised of the possibility of such damages.
|
199
|
-
>
|
200
|
-
> 9. Accepting Warranty or Additional Liability. While redistributing
|
201
|
-
> the Work or Derivative Works thereof, You may choose to offer,
|
202
|
-
> and charge a fee for, acceptance of support, warranty, indemnity,
|
203
|
-
> or other liability obligations and/or rights consistent with this
|
204
|
-
> License. However, in accepting such obligations, You may act only
|
205
|
-
> on Your own behalf and on Your sole responsibility, not on behalf
|
206
|
-
> of any other Contributor, and only if You agree to indemnify,
|
207
|
-
> defend, and hold each Contributor harmless for any liability
|
208
|
-
> incurred by, or claims asserted against, such Contributor by reason
|
209
|
-
> of your accepting any such warranty or additional liability.
|
210
|
-
>
|
211
|
-
> END OF TERMS AND CONDITIONS
|
212
|
-
>
|
213
|
-
> APPENDIX: How to apply the Apache License to your work.
|
214
|
-
>
|
215
|
-
> To apply the Apache License to your work, attach the following
|
216
|
-
> boilerplate notice, with the fields enclosed by brackets "[]"
|
217
|
-
> replaced with your own identifying information. (Don't include
|
218
|
-
> the brackets!) The text should be enclosed in the appropriate
|
219
|
-
> comment syntax for the file format. We also recommend that a
|
220
|
-
> file or class name and description of purpose be included on the
|
221
|
-
> same "printed page" as the copyright notice for easier
|
222
|
-
> identification within third-party archives.
|
223
|
-
>
|
224
|
-
> Copyright [yyyy] [name of copyright owner]
|
225
|
-
>
|
226
|
-
> Licensed under the Apache License, Version 2.0 (the "License");
|
227
|
-
> you may not use this file except in compliance with the License.
|
228
|
-
> You may obtain a copy of the License at
|
229
|
-
>
|
230
|
-
> http://www.apache.org/licenses/LICENSE-2.0
|
231
|
-
>
|
232
|
-
> Unless required by applicable law or agreed to in writing, software
|
233
|
-
> distributed under the License is distributed on an "AS IS" BASIS,
|
234
|
-
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
235
|
-
> See the License for the specific language governing permissions and
|
236
|
-
> limitations under the License.
|
237
|
-
|
238
|
-
---------------------------------------
|
239
|
-
|
240
|
-
## @jridgewell/gen-mapping, @jridgewell/set-array
|
31
|
+
## @jridgewell/gen-mapping, @jridgewell/remapping, @jridgewell/trace-mapping
|
241
32
|
License: MIT
|
242
33
|
By: Justin Ridgewell
|
243
|
-
Repositories: https://github.com/jridgewell/
|
34
|
+
Repositories: git+https://github.com/jridgewell/sourcemaps.git, git+https://github.com/jridgewell/sourcemaps.git, git+https://github.com/jridgewell/sourcemaps.git
|
244
35
|
|
245
|
-
> Copyright
|
36
|
+
> Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
|
246
37
|
>
|
247
38
|
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
248
39
|
> of this software and associated documentation files (the "Software"), to deal
|
@@ -320,33 +111,6 @@ Repository: git+https://github.com/jridgewell/sourcemap-codec.git
|
|
320
111
|
|
321
112
|
---------------------------------------
|
322
113
|
|
323
|
-
## @jridgewell/trace-mapping
|
324
|
-
License: MIT
|
325
|
-
By: Justin Ridgewell
|
326
|
-
Repository: git+https://github.com/jridgewell/sourcemaps.git
|
327
|
-
|
328
|
-
> Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
|
329
|
-
>
|
330
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
331
|
-
> of this software and associated documentation files (the "Software"), to deal
|
332
|
-
> in the Software without restriction, including without limitation the rights
|
333
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
334
|
-
> copies of the Software, and to permit persons to whom the Software is
|
335
|
-
> furnished to do so, subject to the following conditions:
|
336
|
-
>
|
337
|
-
> The above copyright notice and this permission notice shall be included in
|
338
|
-
> all copies or substantial portions of the Software.
|
339
|
-
>
|
340
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
341
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
342
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
343
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
344
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
345
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
346
|
-
> SOFTWARE.
|
347
|
-
|
348
|
-
---------------------------------------
|
349
|
-
|
350
114
|
## @polka/compression
|
351
115
|
License: MIT
|
352
116
|
Repository: lukeed/polka
|
package/dist/client/client.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import "@vite/env";
|
2
2
|
|
3
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
3
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.81.0/node_modules/@oxc-project/runtime/src/helpers/esm/typeof.js
|
4
4
|
function _typeof(o) {
|
5
5
|
"@babel/helpers - typeof";
|
6
6
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
@@ -11,7 +11,7 @@ function _typeof(o) {
|
|
11
11
|
}
|
12
12
|
|
13
13
|
//#endregion
|
14
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
14
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.81.0/node_modules/@oxc-project/runtime/src/helpers/esm/toPrimitive.js
|
15
15
|
function toPrimitive(t, r) {
|
16
16
|
if ("object" != _typeof(t) || !t) return t;
|
17
17
|
var e = t[Symbol.toPrimitive];
|
@@ -24,14 +24,14 @@ function toPrimitive(t, r) {
|
|
24
24
|
}
|
25
25
|
|
26
26
|
//#endregion
|
27
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
27
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.81.0/node_modules/@oxc-project/runtime/src/helpers/esm/toPropertyKey.js
|
28
28
|
function toPropertyKey(t) {
|
29
29
|
var i = toPrimitive(t, "string");
|
30
30
|
return "symbol" == _typeof(i) ? i : i + "";
|
31
31
|
}
|
32
32
|
|
33
33
|
//#endregion
|
34
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
34
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.81.0/node_modules/@oxc-project/runtime/src/helpers/esm/defineProperty.js
|
35
35
|
function _defineProperty(e, r, t) {
|
36
36
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
37
37
|
value: t,
|
@@ -973,13 +973,13 @@ function pingWorkerContentMain(socketUrl) {
|
|
973
973
|
port.addEventListener("message", (event$1) => {
|
974
974
|
const { visibility } = event$1.data;
|
975
975
|
visibilityManager.currentState = visibility;
|
976
|
-
console.debug("new window visibility", visibility);
|
976
|
+
console.debug("[vite] new window visibility", visibility);
|
977
977
|
for (const listener of visibilityManager.listeners) listener(visibility);
|
978
978
|
});
|
979
979
|
port.start();
|
980
|
-
console.debug("connected from window");
|
980
|
+
console.debug("[vite] connected from window");
|
981
981
|
waitForSuccessfulPingInternal(socketUrl, visibilityManager).then(() => {
|
982
|
-
console.debug("ping successful");
|
982
|
+
console.debug("[vite] ping successful");
|
983
983
|
try {
|
984
984
|
port.postMessage({ type: "success" });
|
985
985
|
} catch (error) {
|
@@ -989,7 +989,7 @@ function pingWorkerContentMain(socketUrl) {
|
|
989
989
|
});
|
990
990
|
}
|
991
991
|
}, (error) => {
|
992
|
-
console.debug("error happened", error);
|
992
|
+
console.debug("[vite] error happened", error);
|
993
993
|
try {
|
994
994
|
port.postMessage({
|
995
995
|
type: "error",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-
|
2
|
+
import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-CMEinpL-.js";
|
3
3
|
import "./dep-BDCsDwBr.js";
|
4
4
|
|
5
5
|
export { createBuilder, resolveBuildPlugins };
|
@@ -632,22 +632,22 @@ var TraceMap = class {
|
|
632
632
|
this._bySourceMemos = void 0;
|
633
633
|
}
|
634
634
|
};
|
635
|
-
function cast$
|
635
|
+
function cast$1(map$1) {
|
636
636
|
return map$1;
|
637
637
|
}
|
638
638
|
function encodedMappings(map$1) {
|
639
639
|
var _a, _b;
|
640
|
-
return (_b = (_a = cast$
|
640
|
+
return (_b = (_a = cast$1(map$1))._encoded) != null ? _b : _a._encoded = encode$1(cast$1(map$1)._decoded);
|
641
641
|
}
|
642
642
|
function decodedMappings(map$1) {
|
643
643
|
var _a;
|
644
|
-
return (_a = cast$
|
644
|
+
return (_a = cast$1(map$1))._decoded || (_a._decoded = decode(cast$1(map$1)._encoded));
|
645
645
|
}
|
646
646
|
function traceSegment(map$1, line, column) {
|
647
647
|
const decoded = decodedMappings(map$1);
|
648
648
|
if (line >= decoded.length) return null;
|
649
649
|
const segments = decoded[line];
|
650
|
-
const index = traceSegmentInternal(segments, cast$
|
650
|
+
const index = traceSegmentInternal(segments, cast$1(map$1)._decodedMemo, line, column, GREATEST_LOWER_BOUND);
|
651
651
|
return index === -1 ? null : segments[index];
|
652
652
|
}
|
653
653
|
function originalPositionFor(map$1, needle) {
|
@@ -658,7 +658,7 @@ function originalPositionFor(map$1, needle) {
|
|
658
658
|
const decoded = decodedMappings(map$1);
|
659
659
|
if (line >= decoded.length) return OMapping(null, null, null, null);
|
660
660
|
const segments = decoded[line];
|
661
|
-
const index = traceSegmentInternal(segments, cast$
|
661
|
+
const index = traceSegmentInternal(segments, cast$1(map$1)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
|
662
662
|
if (index === -1) return OMapping(null, null, null, null);
|
663
663
|
const segment = segments[index];
|
664
664
|
if (segment.length === 1) return OMapping(null, null, null, null);
|
@@ -700,52 +700,30 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
|
|
700
700
|
}
|
701
701
|
|
702
702
|
//#endregion
|
703
|
-
//#region ../../node_modules/.pnpm/@jridgewell+
|
704
|
-
/**
|
705
|
-
* SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the
|
706
|
-
* index of the `key` in the backing array.
|
707
|
-
*
|
708
|
-
* This is designed to allow synchronizing a second array with the contents of the backing array,
|
709
|
-
* like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`,
|
710
|
-
* and there are never duplicates.
|
711
|
-
*/
|
703
|
+
//#region ../../node_modules/.pnpm/@jridgewell+gen-mapping@0.3.12/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs
|
712
704
|
var SetArray = class {
|
713
705
|
constructor() {
|
714
706
|
this._indexes = { __proto__: null };
|
715
707
|
this.array = [];
|
716
708
|
}
|
717
709
|
};
|
718
|
-
|
719
|
-
* Typescript doesn't allow friend access to private fields, so this just casts the set into a type
|
720
|
-
* with public access modifiers.
|
721
|
-
*/
|
722
|
-
function cast$1(set) {
|
710
|
+
function cast(set) {
|
723
711
|
return set;
|
724
712
|
}
|
725
|
-
/**
|
726
|
-
* Gets the index associated with `key` in the backing array, if it is already present.
|
727
|
-
*/
|
728
713
|
function get$2(setarr, key) {
|
729
|
-
return cast
|
714
|
+
return cast(setarr)._indexes[key];
|
730
715
|
}
|
731
|
-
/**
|
732
|
-
* Puts `key` into the backing array, if it is not already present. Returns
|
733
|
-
* the index of the `key` in the backing array.
|
734
|
-
*/
|
735
716
|
function put(setarr, key) {
|
736
717
|
const index = get$2(setarr, key);
|
737
718
|
if (index !== void 0) return index;
|
738
|
-
const { array, _indexes: indexes } = cast
|
719
|
+
const { array, _indexes: indexes } = cast(setarr);
|
739
720
|
const length = array.push(key);
|
740
721
|
return indexes[key] = length - 1;
|
741
722
|
}
|
742
|
-
/**
|
743
|
-
* Removes the key, if it exists in the set.
|
744
|
-
*/
|
745
723
|
function remove(setarr, key) {
|
746
724
|
const index = get$2(setarr, key);
|
747
725
|
if (index === void 0) return;
|
748
|
-
const { array, _indexes: indexes } = cast
|
726
|
+
const { array, _indexes: indexes } = cast(setarr);
|
749
727
|
for (let i$1 = index + 1; i$1 < array.length; i$1++) {
|
750
728
|
const k = array[i$1];
|
751
729
|
array[i$1 - 1] = k;
|
@@ -754,18 +732,12 @@ function remove(setarr, key) {
|
|
754
732
|
indexes[key] = void 0;
|
755
733
|
array.pop();
|
756
734
|
}
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
const SOURCE_COLUMN = 3;
|
764
|
-
const NAMES_INDEX = 4;
|
765
|
-
const NO_NAME = -1;
|
766
|
-
/**
|
767
|
-
* Provides the state to generate a sourcemap.
|
768
|
-
*/
|
735
|
+
var COLUMN = 0;
|
736
|
+
var SOURCES_INDEX = 1;
|
737
|
+
var SOURCE_LINE = 2;
|
738
|
+
var SOURCE_COLUMN = 3;
|
739
|
+
var NAMES_INDEX = 4;
|
740
|
+
var NO_NAME = -1;
|
769
741
|
var GenMapping = class {
|
770
742
|
constructor({ file, sourceRoot } = {}) {
|
771
743
|
this._names = new SetArray();
|
@@ -777,42 +749,26 @@ var GenMapping = class {
|
|
777
749
|
this._ignoreList = new SetArray();
|
778
750
|
}
|
779
751
|
};
|
780
|
-
|
781
|
-
* Typescript doesn't allow friend access to private fields, so this just casts the map into a type
|
782
|
-
* with public access modifiers.
|
783
|
-
*/
|
784
|
-
function cast(map$1) {
|
752
|
+
function cast2(map$1) {
|
785
753
|
return map$1;
|
786
754
|
}
|
787
|
-
|
788
|
-
* Same as `addSegment`, but will only add the segment if it generates useful information in the
|
789
|
-
* resulting map. This only works correctly if segments are added **in order**, meaning you should
|
790
|
-
* not add a segment with a lower generated line/column than one that came before.
|
791
|
-
*/
|
792
|
-
const maybeAddSegment = (map$1, genLine, genColumn, source, sourceLine, sourceColumn, name, content) => {
|
755
|
+
var maybeAddSegment = (map$1, genLine, genColumn, source, sourceLine, sourceColumn, name, content) => {
|
793
756
|
return addSegmentInternal(true, map$1, genLine, genColumn, source, sourceLine, sourceColumn, name, content);
|
794
757
|
};
|
795
|
-
/**
|
796
|
-
* Adds/removes the content of the source file to the source map.
|
797
|
-
*/
|
798
758
|
function setSourceContent(map$1, source, content) {
|
799
|
-
const { _sources: sources, _sourcesContent: sourcesContent } =
|
759
|
+
const { _sources: sources, _sourcesContent: sourcesContent } = cast2(map$1);
|
800
760
|
const index = put(sources, source);
|
801
761
|
sourcesContent[index] = content;
|
802
762
|
}
|
803
763
|
function setIgnore(map$1, source, ignore = true) {
|
804
|
-
const { _sources: sources, _sourcesContent: sourcesContent, _ignoreList: ignoreList } =
|
764
|
+
const { _sources: sources, _sourcesContent: sourcesContent, _ignoreList: ignoreList } = cast2(map$1);
|
805
765
|
const index = put(sources, source);
|
806
766
|
if (index === sourcesContent.length) sourcesContent[index] = null;
|
807
767
|
if (ignore) put(ignoreList, index);
|
808
768
|
else remove(ignoreList, index);
|
809
769
|
}
|
810
|
-
/**
|
811
|
-
* Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects
|
812
|
-
* a sourcemap, or to JSON.stringify.
|
813
|
-
*/
|
814
770
|
function toDecodedMap(map$1) {
|
815
|
-
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, _ignoreList: ignoreList } =
|
771
|
+
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, _ignoreList: ignoreList } = cast2(map$1);
|
816
772
|
removeEmptyFinalLines(mappings);
|
817
773
|
return {
|
818
774
|
version: 3,
|
@@ -825,25 +781,23 @@ function toDecodedMap(map$1) {
|
|
825
781
|
ignoreList: ignoreList.array
|
826
782
|
};
|
827
783
|
}
|
828
|
-
/**
|
829
|
-
* Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects
|
830
|
-
* a sourcemap, or to JSON.stringify.
|
831
|
-
*/
|
832
784
|
function toEncodedMap(map$1) {
|
833
785
|
const decoded = toDecodedMap(map$1);
|
834
|
-
return Object.assign(
|
786
|
+
return Object.assign({}, decoded, { mappings: encode$1(decoded.mappings) });
|
835
787
|
}
|
836
788
|
function addSegmentInternal(skipable, map$1, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
|
837
|
-
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names } =
|
838
|
-
const line =
|
789
|
+
const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names } = cast2(map$1);
|
790
|
+
const line = getIndex(mappings, genLine);
|
839
791
|
const index = getColumnIndex(line, genColumn);
|
840
792
|
if (!source) {
|
841
793
|
if (skipable && skipSourceless(line, index)) return;
|
842
794
|
return insert(line, index, [genColumn]);
|
843
795
|
}
|
796
|
+
assert$2(sourceLine);
|
797
|
+
assert$2(sourceColumn);
|
844
798
|
const sourcesIndex = put(sources, source);
|
845
799
|
const namesIndex = name ? put(names, name) : NO_NAME;
|
846
|
-
if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content
|
800
|
+
if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content != null ? content : null;
|
847
801
|
if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) return;
|
848
802
|
return insert(line, index, name ? [
|
849
803
|
genColumn,
|
@@ -858,9 +812,10 @@ function addSegmentInternal(skipable, map$1, genLine, genColumn, source, sourceL
|
|
858
812
|
sourceColumn
|
859
813
|
]);
|
860
814
|
}
|
861
|
-
function
|
862
|
-
|
863
|
-
|
815
|
+
function assert$2(_val) {}
|
816
|
+
function getIndex(arr, index) {
|
817
|
+
for (let i$1 = arr.length; i$1 <= index; i$1++) arr[i$1] = [];
|
818
|
+
return arr[index];
|
864
819
|
}
|
865
820
|
function getColumnIndex(line, genColumn) {
|
866
821
|
let index = line.length;
|
@@ -893,9 +848,9 @@ function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIn
|
|
893
848
|
}
|
894
849
|
|
895
850
|
//#endregion
|
896
|
-
//#region ../../node_modules/.pnpm/@
|
897
|
-
|
898
|
-
|
851
|
+
//#region ../../node_modules/.pnpm/@jridgewell+remapping@2.3.4/node_modules/@jridgewell/remapping/dist/remapping.mjs
|
852
|
+
var SOURCELESS_MAPPING = /* @__PURE__ */ SegmentObject("", -1, -1, "", null, false);
|
853
|
+
var EMPTY_SOURCES = [];
|
899
854
|
function SegmentObject(source, line, column, name, content, ignore) {
|
900
855
|
return {
|
901
856
|
source,
|
@@ -915,24 +870,12 @@ function Source(map$1, sources, source, content, ignore) {
|
|
915
870
|
ignore
|
916
871
|
};
|
917
872
|
}
|
918
|
-
/**
|
919
|
-
* MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes
|
920
|
-
* (which may themselves be SourceMapTrees).
|
921
|
-
*/
|
922
873
|
function MapSource(map$1, sources) {
|
923
874
|
return Source(map$1, sources, "", null, false);
|
924
875
|
}
|
925
|
-
/**
|
926
|
-
* A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive
|
927
|
-
* segment tracing ends at the `OriginalSource`.
|
928
|
-
*/
|
929
876
|
function OriginalSource(source, content, ignore) {
|
930
877
|
return Source(null, EMPTY_SOURCES, source, content, ignore);
|
931
878
|
}
|
932
|
-
/**
|
933
|
-
* traceMappings is only called on the root level SourceMapTree, and begins the process of
|
934
|
-
* resolving each mapping in terms of the original source files.
|
935
|
-
*/
|
936
879
|
function traceMappings(tree) {
|
937
880
|
const gen = new GenMapping({ file: tree.map.file });
|
938
881
|
const { sources: rootSources, map: map$1 } = tree;
|
@@ -945,8 +888,8 @@ function traceMappings(tree) {
|
|
945
888
|
const genCol = segment[0];
|
946
889
|
let traced = SOURCELESS_MAPPING;
|
947
890
|
if (segment.length !== 1) {
|
948
|
-
const
|
949
|
-
traced = originalPositionFor$1(
|
891
|
+
const source2 = rootSources[segment[1]];
|
892
|
+
traced = originalPositionFor$1(source2, segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : "");
|
950
893
|
if (traced == null) continue;
|
951
894
|
}
|
952
895
|
const { column, line, name, content, source, ignore } = traced;
|
@@ -957,10 +900,6 @@ function traceMappings(tree) {
|
|
957
900
|
}
|
958
901
|
return gen;
|
959
902
|
}
|
960
|
-
/**
|
961
|
-
* originalPositionFor is only called on children SourceMapTrees. It recurses down into its own
|
962
|
-
* child SourceMapTrees, until we find the original source map.
|
963
|
-
*/
|
964
903
|
function originalPositionFor$1(source, line, column, name) {
|
965
904
|
if (!source.map) return SegmentObject(source.source, line, column, name, source.content, source.ignore);
|
966
905
|
const segment = traceSegment(source.map, line, column);
|
@@ -972,21 +911,11 @@ function asArray(value$1) {
|
|
972
911
|
if (Array.isArray(value$1)) return value$1;
|
973
912
|
return [value$1];
|
974
913
|
}
|
975
|
-
/**
|
976
|
-
* Recursively builds a tree structure out of sourcemap files, with each node
|
977
|
-
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of
|
978
|
-
* `OriginalSource`s and `SourceMapTree`s.
|
979
|
-
*
|
980
|
-
* Every sourcemap is composed of a collection of source files and mappings
|
981
|
-
* into locations of those source files. When we generate a `SourceMapTree` for
|
982
|
-
* the sourcemap, we attempt to load each source file's own sourcemap. If it
|
983
|
-
* does not have an associated sourcemap, it is considered an original,
|
984
|
-
* unmodified source file.
|
985
|
-
*/
|
986
914
|
function buildSourceMapTree(input, loader$1) {
|
987
915
|
const maps = asArray(input).map((m$2) => new TraceMap(m$2, ""));
|
988
916
|
const map$1 = maps.pop();
|
989
|
-
for (let i$1 = 0; i$1 < maps.length; i$1++) if (maps[i$1].sources.length > 1) throw new Error(`Transformation map ${i$1} must have exactly one source file
|
917
|
+
for (let i$1 = 0; i$1 < maps.length; i$1++) if (maps[i$1].sources.length > 1) throw new Error(`Transformation map ${i$1} must have exactly one source file.
|
918
|
+
Did you specify these with the most recent transformation maps first?`);
|
990
919
|
let tree = build$2(map$1, loader$1, "", 0);
|
991
920
|
for (let i$1 = maps.length - 1; i$1 >= 0; i$1--) tree = MapSource(maps[i$1], [tree]);
|
992
921
|
return tree;
|
@@ -1011,10 +940,6 @@ function build$2(map$1, loader$1, importer, importerDepth) {
|
|
1011
940
|
});
|
1012
941
|
return MapSource(map$1, children);
|
1013
942
|
}
|
1014
|
-
/**
|
1015
|
-
* A SourceMap v3 compatible sourcemap, which only includes fields that were
|
1016
|
-
* provided to it.
|
1017
|
-
*/
|
1018
943
|
var SourceMap$1 = class {
|
1019
944
|
constructor(map$1, options$1) {
|
1020
945
|
const out = options$1.decodedMappings ? toDecodedMap(map$1) : toEncodedMap(map$1);
|
@@ -1031,21 +956,6 @@ var SourceMap$1 = class {
|
|
1031
956
|
return JSON.stringify(this);
|
1032
957
|
}
|
1033
958
|
};
|
1034
|
-
/**
|
1035
|
-
* Traces through all the mappings in the root sourcemap, through the sources
|
1036
|
-
* (and their sourcemaps), all the way back to the original source location.
|
1037
|
-
*
|
1038
|
-
* `loader` will be called every time we encounter a source file. If it returns
|
1039
|
-
* a sourcemap, we will recurse into that sourcemap to continue the trace. If
|
1040
|
-
* it returns a falsey value, that source file is treated as an original,
|
1041
|
-
* unmodified source file.
|
1042
|
-
*
|
1043
|
-
* Pass `excludeContent` to exclude any self-containing source file content
|
1044
|
-
* from the output sourcemap.
|
1045
|
-
*
|
1046
|
-
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of
|
1047
|
-
* VLQ encoded) mappings.
|
1048
|
-
*/
|
1049
959
|
function remapping(input, loader$1, options$1) {
|
1050
960
|
const opts = typeof options$1 === "object" ? options$1 : {
|
1051
961
|
excludeContent: !!options$1,
|
@@ -2209,7 +2119,6 @@ const limitFlattenIdLength = (id, limit = FLATTEN_ID_MAX_FILE_LENGTH) => {
|
|
2209
2119
|
};
|
2210
2120
|
const normalizeId = (id) => id.replace(replaceNestedIdRE, " > ");
|
2211
2121
|
const NODE_BUILTIN_NAMESPACE = "node:";
|
2212
|
-
const NPM_BUILTIN_NAMESPACE = "npm:";
|
2213
2122
|
const BUN_BUILTIN_NAMESPACE = "bun:";
|
2214
2123
|
const nodeBuiltins = builtinModules.filter((id) => !id.includes(":"));
|
2215
2124
|
const isBuiltinCache = /* @__PURE__ */ new WeakMap();
|
@@ -2229,7 +2138,6 @@ function createIsBuiltin(builtins$1) {
|
|
2229
2138
|
const nodeLikeBuiltins = [
|
2230
2139
|
...nodeBuiltins,
|
2231
2140
|
/* @__PURE__ */ new RegExp(`^${NODE_BUILTIN_NAMESPACE}`),
|
2232
|
-
/* @__PURE__ */ new RegExp(`^${NPM_BUILTIN_NAMESPACE}`),
|
2233
2141
|
/* @__PURE__ */ new RegExp(`^${BUN_BUILTIN_NAMESPACE}`)
|
2234
2142
|
];
|
2235
2143
|
function isNodeLikeBuiltin(id) {
|
@@ -5673,7 +5581,7 @@ function throttle(fn) {
|
|
5673
5581
|
}
|
5674
5582
|
|
5675
5583
|
//#endregion
|
5676
|
-
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.
|
5584
|
+
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/util.js
|
5677
5585
|
const POSIX_SEP_RE = new RegExp("\\" + path.posix.sep, "g");
|
5678
5586
|
const NATIVE_SEP_RE = new RegExp("\\" + path.sep, "g");
|
5679
5587
|
/** @type {Map<string,RegExp>}*/
|
@@ -5905,7 +5813,7 @@ function replaceTokens(result) {
|
|
5905
5813
|
}
|
5906
5814
|
|
5907
5815
|
//#endregion
|
5908
|
-
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.
|
5816
|
+
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/find.js
|
5909
5817
|
/**
|
5910
5818
|
* find the closest tsconfig.json file
|
5911
5819
|
*
|
@@ -5964,7 +5872,7 @@ function findUp(dir, { resolve: resolve$4, reject, promise }, options$1) {
|
|
5964
5872
|
}
|
5965
5873
|
|
5966
5874
|
//#endregion
|
5967
|
-
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.
|
5875
|
+
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/find-all.js
|
5968
5876
|
/**
|
5969
5877
|
* @typedef WalkState
|
5970
5878
|
* @interface
|
@@ -5977,7 +5885,7 @@ function findUp(dir, { resolve: resolve$4, reject, promise }, options$1) {
|
|
5977
5885
|
const sep$2 = path.sep;
|
5978
5886
|
|
5979
5887
|
//#endregion
|
5980
|
-
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.
|
5888
|
+
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/to-json.js
|
5981
5889
|
/**
|
5982
5890
|
* convert content of tsconfig.json to regular json
|
5983
5891
|
*
|
@@ -6107,7 +6015,7 @@ function stripBom(string) {
|
|
6107
6015
|
}
|
6108
6016
|
|
6109
6017
|
//#endregion
|
6110
|
-
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.
|
6018
|
+
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/parse.js
|
6111
6019
|
const not_found_result = {
|
6112
6020
|
tsconfigFile: null,
|
6113
6021
|
tsconfig: {}
|
@@ -6399,7 +6307,7 @@ function isJSConfig(configFileName) {
|
|
6399
6307
|
}
|
6400
6308
|
|
6401
6309
|
//#endregion
|
6402
|
-
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.
|
6310
|
+
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/parse-native.js
|
6403
6311
|
/** @typedef TSDiagnosticError {
|
6404
6312
|
code: number;
|
6405
6313
|
category: number;
|
@@ -6408,7 +6316,7 @@ start?: number;
|
|
6408
6316
|
} TSDiagnosticError */
|
6409
6317
|
|
6410
6318
|
//#endregion
|
6411
|
-
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.
|
6319
|
+
//#region ../../node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.2/node_modules/tsconfck/src/cache.js
|
6412
6320
|
/** @template T */
|
6413
6321
|
var TSConfckCache = class {
|
6414
6322
|
/**
|
@@ -8238,7 +8146,7 @@ var require_convert_source_map = /* @__PURE__ */ __commonJS({ "../../node_module
|
|
8238
8146
|
}) });
|
8239
8147
|
|
8240
8148
|
//#endregion
|
8241
|
-
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.
|
8149
|
+
//#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.32/node_modules/@rolldown/pluginutils/dist/index.js
|
8242
8150
|
/**
|
8243
8151
|
* Constructs a RegExp that matches the exact string specified.
|
8244
8152
|
*
|
@@ -8714,8 +8622,8 @@ var require_src$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/lilco
|
|
8714
8622
|
}) });
|
8715
8623
|
|
8716
8624
|
//#endregion
|
8717
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.
|
8718
|
-
var require_req = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.
|
8625
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.1/node_modules/postcss-load-config/src/req.js
|
8626
|
+
var require_req = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.1/node_modules/postcss-load-config/src/req.js": ((exports, module) => {
|
8719
8627
|
const { createRequire: createRequire$2 } = require("node:module");
|
8720
8628
|
const { fileURLToPath: fileURLToPath$1, pathToFileURL: pathToFileURL$1 } = require("node:url");
|
8721
8629
|
const TS_EXT_RE = /\.[mc]?ts$/;
|
@@ -8757,8 +8665,8 @@ var require_req = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss
|
|
8757
8665
|
}) });
|
8758
8666
|
|
8759
8667
|
//#endregion
|
8760
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.
|
8761
|
-
var require_options = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.
|
8668
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.1/node_modules/postcss-load-config/src/options.js
|
8669
|
+
var require_options = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.1/node_modules/postcss-load-config/src/options.js": ((exports, module) => {
|
8762
8670
|
const req$2 = require_req();
|
8763
8671
|
/**
|
8764
8672
|
* Load Options
|
@@ -8792,8 +8700,8 @@ var require_options = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pos
|
|
8792
8700
|
}) });
|
8793
8701
|
|
8794
8702
|
//#endregion
|
8795
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.
|
8796
|
-
var require_plugins = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.
|
8703
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.1/node_modules/postcss-load-config/src/plugins.js
|
8704
|
+
var require_plugins = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.1/node_modules/postcss-load-config/src/plugins.js": ((exports, module) => {
|
8797
8705
|
const req$1 = require_req();
|
8798
8706
|
/**
|
8799
8707
|
* Plugin Loader
|
@@ -8847,8 +8755,8 @@ var require_plugins = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pos
|
|
8847
8755
|
}) });
|
8848
8756
|
|
8849
8757
|
//#endregion
|
8850
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.
|
8851
|
-
var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.
|
8758
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.1/node_modules/postcss-load-config/src/index.js
|
8759
|
+
var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_yaml@2.8.1/node_modules/postcss-load-config/src/index.js": ((exports, module) => {
|
8852
8760
|
const { resolve: resolve$2 } = require("node:path");
|
8853
8761
|
const config$1 = require_src$1();
|
8854
8762
|
const loadOptions = require_options();
|
@@ -31056,7 +30964,7 @@ function createFilterForTransform(idFilter, codeFilter, cwd) {
|
|
31056
30964
|
async function resolvePlugins(config$2, prePlugins, normalPlugins, postPlugins) {
|
31057
30965
|
const isBuild = config$2.command === "build";
|
31058
30966
|
const isWorker = config$2.isWorker;
|
31059
|
-
const buildPlugins = isBuild ? await (await import("./dep-
|
30967
|
+
const buildPlugins = isBuild ? await (await import("./dep-BDbL9e7d.js")).resolveBuildPlugins(config$2) : {
|
31060
30968
|
pre: [],
|
31061
30969
|
post: []
|
31062
30970
|
};
|
@@ -32026,7 +31934,12 @@ function cssPlugin(config$2) {
|
|
32026
31934
|
let resolved = await resolveUrl$1(id$1, importer);
|
32027
31935
|
if (resolved) {
|
32028
31936
|
if (fragment) resolved += "#" + fragment;
|
32029
|
-
|
31937
|
+
let url$4 = await fileToUrl$1(this, resolved);
|
31938
|
+
if (!url$4.startsWith("data:") && this.environment.mode === "dev") {
|
31939
|
+
const mod = [...this.environment.moduleGraph.getModulesByFile(resolved) ?? []].find((mod$1) => mod$1.type === "asset");
|
31940
|
+
if (mod?.lastHMRTimestamp) url$4 = injectQuery(url$4, `t=${mod.lastHMRTimestamp}`);
|
31941
|
+
}
|
31942
|
+
return [url$4, resolved];
|
32030
31943
|
}
|
32031
31944
|
if (config$2.command === "build") {
|
32032
31945
|
const isExternal$1 = config$2.build.rollupOptions.external ? resolveUserExternal(config$2.build.rollupOptions.external, decodedUrl, id$1, false) : false;
|
@@ -32656,8 +32569,8 @@ function createCachedImport(imp) {
|
|
32656
32569
|
return cached;
|
32657
32570
|
};
|
32658
32571
|
}
|
32659
|
-
const importPostcssImport = createCachedImport(() => import("./dep-
|
32660
|
-
const importPostcssModules = createCachedImport(() => import("./dep-
|
32572
|
+
const importPostcssImport = createCachedImport(() => import("./dep-zLyvzoxR.js").then(__toDynamicImportESM(1)));
|
32573
|
+
const importPostcssModules = createCachedImport(() => import("./dep-Du_AlPMa.js").then(__toDynamicImportESM(1)));
|
32661
32574
|
const importPostcss = createCachedImport(() => import("postcss"));
|
32662
32575
|
const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
|
32663
32576
|
let alwaysFakeWorkerWorkerControllerCache;
|
@@ -32751,7 +32664,7 @@ const UrlRewritePostcssPlugin = (opts) => {
|
|
32751
32664
|
if (isCssUrl || isCssImageSet) {
|
32752
32665
|
const replacerForDeclaration = async (rawUrl) => {
|
32753
32666
|
const [newUrl, resolvedId] = await opts.resolver(rawUrl, importer);
|
32754
|
-
if (
|
32667
|
+
if (resolvedId) opts.deps.add(resolvedId);
|
32755
32668
|
return newUrl;
|
32756
32669
|
};
|
32757
32670
|
if (isCssUrl && isCssImageSet) promises$2.push(rewriteCssUrls(declaration.value, replacerForDeclaration).then((url$3) => rewriteCssImageSet(url$3, replacerForDeclaration)).then((url$3) => {
|
@@ -33452,7 +33365,7 @@ async function compileLightningCSS(environment, id, src, deps, workerController,
|
|
33452
33365
|
if (skipUrlReplacer(dep.url)) replaceUrl = dep.url;
|
33453
33366
|
else if (urlResolver) {
|
33454
33367
|
const [newUrl, resolvedId] = await urlResolver(dep.url, dep.loc.filePath.replace(NULL_BYTE_PLACEHOLDER, "\0"));
|
33455
|
-
if (
|
33368
|
+
if (resolvedId) deps.add(resolvedId);
|
33456
33369
|
replaceUrl = newUrl;
|
33457
33370
|
} else replaceUrl = dep.url;
|
33458
33371
|
css = css.replace(dep.placeholder, () => replaceUrl.replaceAll("\"", "\\\""));
|
@@ -36646,7 +36559,7 @@ async function bundleConfigFile(fileName, isESM) {
|
|
36646
36559
|
format: isESM ? "esm" : "cjs",
|
36647
36560
|
mainFields: ["main"],
|
36648
36561
|
sourcemap: "inline",
|
36649
|
-
sourceRoot: path.dirname(fileName) +
|
36562
|
+
sourceRoot: pathToFileURL(path.dirname(fileName)).href + "/",
|
36650
36563
|
metafile: true,
|
36651
36564
|
define: {
|
36652
36565
|
__dirname: dirnameVarName,
|
@@ -36682,7 +36595,7 @@ async function bundleConfigFile(fileName, isESM) {
|
|
36682
36595
|
};
|
36683
36596
|
build$3.onResolve({ filter: /^[^.#].*/ }, async ({ path: id, importer, kind }) => {
|
36684
36597
|
if (kind === "entry-point" || path.isAbsolute(id) || isNodeBuiltin(id)) return;
|
36685
|
-
if (isNodeLikeBuiltin(id)) return { external: true };
|
36598
|
+
if (isNodeLikeBuiltin(id) || id.startsWith("npm:")) return { external: true };
|
36686
36599
|
const isImport = isESM || kind === "dynamic-import";
|
36687
36600
|
let idFsPath;
|
36688
36601
|
try {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies } from "./dep-
|
2
|
+
import { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies } from "./dep-CMEinpL-.js";
|
3
3
|
import "./dep-BDCsDwBr.js";
|
4
4
|
|
5
5
|
export { optimizeDeps };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./dep-
|
2
|
+
import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./dep-CMEinpL-.js";
|
3
3
|
import "./dep-BDCsDwBr.js";
|
4
4
|
|
5
5
|
export { createServer };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { preview, resolvePreviewOptions } from "./dep-
|
2
|
+
import { preview, resolvePreviewOptions } from "./dep-CMEinpL-.js";
|
3
3
|
import "./dep-BDCsDwBr.js";
|
4
4
|
|
5
5
|
export { preview };
|
package/dist/node/cli.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
2
|
import { __toESM } from "./chunks/dep-Drtntmtt.js";
|
3
|
-
import { createLogger, require_picocolors, resolveConfig } from "./chunks/dep-
|
3
|
+
import { createLogger, require_picocolors, resolveConfig } from "./chunks/dep-CMEinpL-.js";
|
4
4
|
import { VERSION } from "./chunks/dep-BDCsDwBr.js";
|
5
5
|
import fs from "node:fs";
|
6
6
|
import path from "node:path";
|
@@ -568,7 +568,7 @@ const convertBase = (v) => {
|
|
568
568
|
cli.option("-c, --config <file>", `[string] use specified config file`).option("--base <path>", `[string] public base path (default: /)`, { type: [convertBase] }).option("-l, --logLevel <level>", `[string] info | warn | error | silent`).option("--clearScreen", `[boolean] allow/disable clear screen when logging`).option("--configLoader <loader>", `[string] use 'bundle' to bundle the config with esbuild, or 'runner' (experimental) to process it on the fly, or 'native' (experimental) to load using the native runtime (default: bundle)`).option("-d, --debug [feat]", `[string | boolean] show debug logs`).option("-f, --filter <filter>", `[string] filter debug logs`).option("-m, --mode <mode>", `[string] set env mode`);
|
569
569
|
cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--open [path]", `[boolean | string] open browser on startup`).option("--cors", `[boolean] enable CORS`).option("--strictPort", `[boolean] exit if specified port is already in use`).option("--force", `[boolean] force the optimizer to ignore the cache and re-bundle`).action(async (root, options) => {
|
570
570
|
filterDuplicateOptions(options);
|
571
|
-
const { createServer } = await import("./chunks/dep-
|
571
|
+
const { createServer } = await import("./chunks/dep-CtUaBn5f.js");
|
572
572
|
try {
|
573
573
|
const server = await createServer({
|
574
574
|
root,
|
@@ -624,7 +624,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
|
|
624
624
|
});
|
625
625
|
cli.command("build [root]", "build for production").option("--target <target>", `[string] transpile target (default: 'baseline-widely-available')`).option("--outDir <dir>", `[string] output directory (default: dist)`).option("--assetsDir <dir>", `[string] directory under outDir to place assets in (default: assets)`).option("--assetsInlineLimit <number>", `[number] static asset base64 inline threshold in bytes (default: 4096)`).option("--ssr [entry]", `[string] build specified entry for server-side rendering`).option("--sourcemap [output]", `[boolean | "inline" | "hidden"] output source maps for build (default: false)`).option("--minify [minifier]", "[boolean | \"terser\" | \"esbuild\"] enable/disable minification, or specify minifier to use (default: esbuild)").option("--manifest [name]", `[boolean | string] emit build manifest json`).option("--ssrManifest [name]", `[boolean | string] emit ssr manifest json`).option("--emptyOutDir", `[boolean] force empty outDir when it's outside of root`).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--app", `[boolean] same as \`builder: {}\``).action(async (root, options) => {
|
626
626
|
filterDuplicateOptions(options);
|
627
|
-
const { createBuilder } = await import("./chunks/dep-
|
627
|
+
const { createBuilder } = await import("./chunks/dep-BDbL9e7d.js");
|
628
628
|
const buildOptions = cleanGlobalCLIOptions(cleanBuilderCLIOptions(options));
|
629
629
|
try {
|
630
630
|
const inlineConfig = {
|
@@ -649,7 +649,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
|
|
649
649
|
});
|
650
650
|
cli.command("optimize [root]", "pre-bundle dependencies (deprecated, the pre-bundle process runs automatically and does not need to be called)").option("--force", `[boolean] force the optimizer to ignore the cache and re-bundle`).action(async (root, options) => {
|
651
651
|
filterDuplicateOptions(options);
|
652
|
-
const { optimizeDeps } = await import("./chunks/dep-
|
652
|
+
const { optimizeDeps } = await import("./chunks/dep-CTf3zVuV.js");
|
653
653
|
try {
|
654
654
|
const config = await resolveConfig({
|
655
655
|
root,
|
@@ -667,7 +667,7 @@ cli.command("optimize [root]", "pre-bundle dependencies (deprecated, the pre-bun
|
|
667
667
|
});
|
668
668
|
cli.command("preview [root]", "locally preview production build").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--strictPort", `[boolean] exit if specified port is already in use`).option("--open [path]", `[boolean | string] open browser on startup`).option("--outDir <dir>", `[string] output directory (default: dist)`).action(async (root, options) => {
|
669
669
|
filterDuplicateOptions(options);
|
670
|
-
const { preview } = await import("./chunks/dep-
|
670
|
+
const { preview } = await import("./chunks/dep-DZ4iRZu_.js");
|
671
671
|
try {
|
672
672
|
const server = await preview({
|
673
673
|
root,
|
package/dist/node/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { BuildEnvironment, DevEnvironment, build, buildErrorMessage, createBuilder, createFilter, createIdResolver, createLogger, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defineConfig, fetchModule, formatPostcssSourceMap, isCSSRequest, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, normalizePath, optimizeDeps, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, ssrTransform, transformWithEsbuild } from "./chunks/dep-
|
2
|
+
import { BuildEnvironment, DevEnvironment, build, buildErrorMessage, createBuilder, createFilter, createIdResolver, createLogger, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defineConfig, fetchModule, formatPostcssSourceMap, isCSSRequest, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, normalizePath, optimizeDeps, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, ssrTransform, transformWithEsbuild } from "./chunks/dep-CMEinpL-.js";
|
3
3
|
import { DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_EXTERNAL_CONDITIONS, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, VERSION, defaultAllowedOrigins } from "./chunks/dep-BDCsDwBr.js";
|
4
4
|
import { parseAst, parseAstAsync } from "rollup/parseAst";
|
5
5
|
import { version as esbuildVersion } from "esbuild";
|
@@ -281,7 +281,9 @@ var EvaluatedModuleNode = class {
|
|
281
281
|
if (!mod) return null;
|
282
282
|
if (mod.map) return mod.map;
|
283
283
|
if (!mod.meta || !("code" in mod.meta)) return null;
|
284
|
-
let
|
284
|
+
let pattern = `//# ${SOURCEMAPPING_URL}=data:application/json;base64,`, lastIndex = mod.meta.code.lastIndexOf(pattern);
|
285
|
+
if (lastIndex === -1) return null;
|
286
|
+
let mapString = MODULE_RUNNER_SOURCEMAPPING_REGEXP.exec(mod.meta.code.slice(lastIndex))?.[1];
|
285
287
|
return mapString ? (mod.map = new DecodedMap(JSON.parse(decodeBase64(mapString)), mod.file), mod.map) : null;
|
286
288
|
}
|
287
289
|
clear() {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vite",
|
3
|
-
"version": "7.1.
|
3
|
+
"version": "7.1.2",
|
4
4
|
"type": "module",
|
5
5
|
"license": "MIT",
|
6
6
|
"author": "Evan You",
|
@@ -79,12 +79,12 @@
|
|
79
79
|
"fsevents": "~2.3.3"
|
80
80
|
},
|
81
81
|
"devDependencies": {
|
82
|
-
"@ampproject/remapping": "^2.3.0",
|
83
82
|
"@babel/parser": "^7.28.0",
|
83
|
+
"@jridgewell/remapping": "^2.3.4",
|
84
84
|
"@jridgewell/trace-mapping": "^0.3.29",
|
85
85
|
"@oxc-project/types": "0.77.0",
|
86
86
|
"@polka/compression": "^1.0.0-next.25",
|
87
|
-
"@rolldown/pluginutils": "^1.0.0-beta.
|
87
|
+
"@rolldown/pluginutils": "^1.0.0-beta.32",
|
88
88
|
"@rollup/plugin-alias": "^5.1.1",
|
89
89
|
"@rollup/plugin-commonjs": "^28.0.6",
|
90
90
|
"@rollup/plugin-dynamic-import-vars": "2.1.4",
|
@@ -92,7 +92,7 @@
|
|
92
92
|
"@types/escape-html": "^1.0.4",
|
93
93
|
"@types/pnpapi": "^0.0.5",
|
94
94
|
"artichokie": "^0.3.2",
|
95
|
-
"baseline-browser-mapping": "^2.
|
95
|
+
"baseline-browser-mapping": "^2.6.3",
|
96
96
|
"cac": "^6.7.14",
|
97
97
|
"chokidar": "^3.6.0",
|
98
98
|
"connect": "^3.7.0",
|
@@ -126,10 +126,10 @@
|
|
126
126
|
"premove": "^4.0.0",
|
127
127
|
"resolve.exports": "^2.0.3",
|
128
128
|
"rolldown": "^1.0.0-beta.31",
|
129
|
-
"rolldown-plugin-dts": "^0.15.
|
129
|
+
"rolldown-plugin-dts": "^0.15.6",
|
130
130
|
"rollup-plugin-license": "^3.6.0",
|
131
|
-
"sass": "^1.
|
132
|
-
"sass-embedded": "^1.
|
131
|
+
"sass": "^1.90.0",
|
132
|
+
"sass-embedded": "^1.90.0",
|
133
133
|
"sirv": "^3.0.1",
|
134
134
|
"strip-literal": "^3.0.0",
|
135
135
|
"terser": "^5.43.1",
|