vite-plugin-qingkuai 1.0.19 → 1.0.20
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/dist/index.cjs +3 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -302,11 +302,13 @@ function qingkuai() {
|
|
|
302
302
|
id,
|
|
303
303
|
{
|
|
304
304
|
sourcemap,
|
|
305
|
+
lang: "ts",
|
|
305
306
|
loader: "ts",
|
|
306
307
|
target: "esnext"
|
|
307
308
|
},
|
|
308
309
|
sourcemap ? {
|
|
309
310
|
version: 3,
|
|
311
|
+
names: [],
|
|
310
312
|
sources: [id],
|
|
311
313
|
sourcesContent: [src],
|
|
312
314
|
mappings: compileRes.mappings
|
|
@@ -329,7 +331,7 @@ function qingkuai() {
|
|
|
329
331
|
})
|
|
330
332
|
};
|
|
331
333
|
} catch (err) {
|
|
332
|
-
if (err.loc
|
|
334
|
+
if (err.loc && "start" in err.loc && "index" in err.loc.start) {
|
|
333
335
|
err.pos = err.loc.start.index, this.error(err);
|
|
334
336
|
} else {
|
|
335
337
|
this.error(
|
package/dist/index.js
CHANGED
|
@@ -281,11 +281,13 @@ function qingkuai() {
|
|
|
281
281
|
id,
|
|
282
282
|
{
|
|
283
283
|
sourcemap,
|
|
284
|
+
lang: "ts",
|
|
284
285
|
loader: "ts",
|
|
285
286
|
target: "esnext"
|
|
286
287
|
},
|
|
287
288
|
sourcemap ? {
|
|
288
289
|
version: 3,
|
|
290
|
+
names: [],
|
|
289
291
|
sources: [id],
|
|
290
292
|
sourcesContent: [src],
|
|
291
293
|
mappings: compileRes.mappings
|
|
@@ -308,7 +310,7 @@ function qingkuai() {
|
|
|
308
310
|
})
|
|
309
311
|
};
|
|
310
312
|
} catch (err) {
|
|
311
|
-
if (err.loc
|
|
313
|
+
if (err.loc && "start" in err.loc && "index" in err.loc.start) {
|
|
312
314
|
err.pos = err.loc.start.index, this.error(err);
|
|
313
315
|
} else {
|
|
314
316
|
this.error(
|