powerlines 0.40.14 → 0.40.16
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/{api-DQepfTQv.mjs → api-CT1HMNLh.mjs} +23 -20
- package/dist/{api-DQepfTQv.mjs.map → api-CT1HMNLh.mjs.map} +1 -1
- package/dist/{api-Dmv0-53g.cjs → api-Cq1cUeLx.cjs} +22 -19
- package/dist/astro.cjs +2 -2
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.mts +5 -5
- package/dist/astro.mjs +2 -2
- package/dist/{config-zlkThEoC.d.mts → config-CK756s0L.d.mts} +11 -4
- package/dist/config-CK756s0L.d.mts.map +1 -0
- package/dist/{config-BXRlCZ9z.d.cts → config-CiPXgwzt.d.mts} +2 -2
- package/dist/{config-BS54DOEG.d.mts.map → config-CiPXgwzt.d.mts.map} +1 -1
- package/dist/{config-BS54DOEG.d.mts → config-J74ORCFY.d.cts} +2 -2
- package/dist/{config-BXRlCZ9z.d.cts.map → config-J74ORCFY.d.cts.map} +1 -1
- package/dist/{config-CqsFCFR8.d.cts → config-vnrrSxEB.d.cts} +11 -4
- package/dist/config-vnrrSxEB.d.cts.map +1 -0
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +2 -2
- package/dist/context/index.cjs +1 -1
- package/dist/context/index.d.cts +3 -3
- package/dist/context/index.d.cts.map +1 -1
- package/dist/context/index.d.mts +6 -6
- package/dist/context/index.d.mts.map +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/{esbuild-CtBc3XFz.mjs → esbuild-DuyGcO2M.mjs} +2 -2
- package/dist/{esbuild-CtBc3XFz.mjs.map → esbuild-DuyGcO2M.mjs.map} +1 -1
- package/dist/{esbuild-BExd6U76.cjs → esbuild-ZfmZH2rH.cjs} +1 -1
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.mts +4 -4
- package/dist/esbuild.mjs +2 -2
- package/dist/farm.cjs +1 -1
- package/dist/farm.d.cts +1 -1
- package/dist/farm.d.mts +4 -4
- package/dist/farm.mjs +1 -1
- package/dist/{index-BPdDWzbp.d.cts → index-6BLROVtJ.d.mts} +2 -2
- package/dist/{index-BPdDWzbp.d.cts.map → index-6BLROVtJ.d.mts.map} +1 -1
- package/dist/{index-PJqBw8CG.d.mts → index-C7W0kmm7.d.mts} +2 -2
- package/dist/{index-PJqBw8CG.d.mts.map → index-C7W0kmm7.d.mts.map} +1 -1
- package/dist/{plugin-DA2mmmii.d.cts → index-CK6YPeaO.d.mts} +8 -6
- package/dist/index-CK6YPeaO.d.mts.map +1 -0
- package/dist/{index-CRLhknww.d.mts → index-DJ-k0GOX.d.cts} +2 -2
- package/dist/{index-CRLhknww.d.mts.map → index-DJ-k0GOX.d.cts.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +1 -1
- package/dist/next.cjs +2 -2
- package/dist/next.mjs +2 -2
- package/dist/nuxt.cjs +3 -3
- package/dist/nuxt.d.cts +1 -1
- package/dist/nuxt.d.mts +4 -4
- package/dist/nuxt.mjs +3 -3
- package/dist/{plugin-CUXcGRD_.d.mts → plugin-BE3wmhoU.d.cts} +2 -2
- package/dist/{plugin-CUXcGRD_.d.mts.map → plugin-BE3wmhoU.d.cts.map} +1 -1
- package/dist/{index-slvFsJYX.d.mts → plugin-BEVE4I3A.d.cts} +8 -6
- package/dist/plugin-BEVE4I3A.d.cts.map +1 -0
- package/dist/{plugin-jeRiyjfy.d.cts → plugin-C_8RhG5V.d.mts} +2 -2
- package/dist/{plugin-jeRiyjfy.d.cts.map → plugin-C_8RhG5V.d.mts.map} +1 -1
- package/dist/plugin-utils.d.cts +7 -7
- package/dist/plugin-utils.d.cts.map +1 -1
- package/dist/plugin-utils.d.mts +11 -11
- package/dist/plugin-utils.d.mts.map +1 -1
- package/dist/{rolldown-zLtY1EjE.mjs → rolldown-5_RAKPoC.mjs} +2 -2
- package/dist/{rolldown-zLtY1EjE.mjs.map → rolldown-5_RAKPoC.mjs.map} +1 -1
- package/dist/{rolldown-CAMp461r.cjs → rolldown-UH28mDes.cjs} +1 -1
- package/dist/rolldown.cjs +2 -2
- package/dist/rolldown.d.cts +1 -1
- package/dist/rolldown.d.mts +4 -4
- package/dist/rolldown.mjs +2 -2
- package/dist/rollup.cjs +1 -1
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.mts +4 -4
- package/dist/rollup.mjs +1 -1
- package/dist/rspack.cjs +1 -1
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.mts +4 -4
- package/dist/rspack.mjs +1 -1
- package/dist/storage/index.d.cts +1 -1
- package/dist/storage/index.d.cts.map +1 -1
- package/dist/storage/index.d.mts +4 -4
- package/dist/tsdown.cjs +2 -2
- package/dist/tsdown.d.cts +1 -1
- package/dist/tsdown.d.mts +4 -5
- package/dist/tsdown.d.mts.map +1 -1
- package/dist/tsdown.mjs +2 -2
- package/dist/tsup.cjs +2 -2
- package/dist/tsup.d.cts +1 -1
- package/dist/tsup.d.mts +4 -4
- package/dist/tsup.mjs +2 -2
- package/dist/typescript/index.d.cts +1 -1
- package/dist/typescript/index.d.mts +4 -4
- package/dist/unloader.cjs +1 -1
- package/dist/unloader.d.cts +1 -1
- package/dist/unloader.d.mts +4 -4
- package/dist/unloader.mjs +1 -1
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.mts +4 -4
- package/dist/unplugin.mjs +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.mts +2 -2
- package/dist/{vite-C129CZ5h.mjs → vite-62muOctS.mjs} +2 -2
- package/dist/{vite-C129CZ5h.mjs.map → vite-62muOctS.mjs.map} +1 -1
- package/dist/{vite-CR5tH32u.cjs → vite-DwAQ0nZ5.cjs} +1 -1
- package/dist/vite.cjs +2 -2
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.mts +5 -5
- package/dist/vite.mjs +2 -2
- package/dist/{webpack-BSZWqSNX.cjs → webpack-0YhRQr-B.cjs} +1 -1
- package/dist/{webpack-jBz7I37E.mjs → webpack-Bca7BjFU.mjs} +2 -2
- package/dist/{webpack-jBz7I37E.mjs.map → webpack-Bca7BjFU.mjs.map} +1 -1
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.mts +4 -4
- package/dist/webpack.mjs +2 -2
- package/dist/{write-file-D9MsaQ36.d.cts → write-file-CpNWY8SV.d.cts} +2 -2
- package/dist/{write-file-D9MsaQ36.d.cts.map → write-file-CpNWY8SV.d.cts.map} +1 -1
- package/package.json +13 -13
- package/dist/config-CqsFCFR8.d.cts.map +0 -1
- package/dist/config-zlkThEoC.d.mts.map +0 -1
- package/dist/index-slvFsJYX.d.mts.map +0 -1
- package/dist/plugin-DA2mmmii.d.cts.map +0 -1
package/dist/rolldown.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
require('./api-
|
|
2
|
+
require('./api-Cq1cUeLx.cjs');
|
|
3
3
|
require('./tsconfig-C8M8X6U0.cjs');
|
|
4
4
|
require('./plugin-utils-Ck3cx3w6.cjs');
|
|
5
5
|
require('./plugin-CZ_PJPpQ.cjs');
|
|
@@ -10,7 +10,7 @@ require('./utils-BbDma_5Y.cjs');
|
|
|
10
10
|
require('./virtual-B1MLgqnQ.cjs');
|
|
11
11
|
require('./resolve-options-vyFhhkLp.cjs');
|
|
12
12
|
require('./resolve-options-lxQ2pm0W.cjs');
|
|
13
|
-
const require_rolldown = require('./rolldown-
|
|
13
|
+
const require_rolldown = require('./rolldown-UH28mDes.cjs');
|
|
14
14
|
|
|
15
15
|
exports.default = require_rolldown.rolldown_default;
|
|
16
16
|
exports["module.exports"] = require_rolldown.unplugin;
|
package/dist/rolldown.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as PluginContext, N as UserConfig,
|
|
1
|
+
import { Et as PluginContext, N as UserConfig, er as Plugin, j as ResolvedConfig } from "./config-vnrrSxEB.cjs";
|
|
2
2
|
import * as rolldown0 from "rolldown";
|
|
3
3
|
import { RolldownOptions } from "rolldown";
|
|
4
4
|
|
package/dist/rolldown.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Et as PluginContext, N as UserConfig,
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
1
|
+
import { Et as PluginContext, N as UserConfig, er as Plugin, j as ResolvedConfig } from "./config-CK756s0L.mjs";
|
|
2
|
+
import "./config-CiPXgwzt.mjs";
|
|
3
|
+
import "./index-C7W0kmm7.mjs";
|
|
4
|
+
import "./index-CK6YPeaO.mjs";
|
|
5
5
|
import * as rolldown0 from "rolldown";
|
|
6
6
|
import { RolldownOptions } from "rolldown";
|
|
7
7
|
|
package/dist/rolldown.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./api-
|
|
1
|
+
import "./api-CT1HMNLh.mjs";
|
|
2
2
|
import "./tsconfig-B92heKit.mjs";
|
|
3
3
|
import "./plugin-utils-C3HnZJl1.mjs";
|
|
4
4
|
import "./plugin-E5foRD0k.mjs";
|
|
@@ -9,6 +9,6 @@ import "./utils-DoQcX7Sk.mjs";
|
|
|
9
9
|
import "./virtual-B9imjOqe.mjs";
|
|
10
10
|
import "./resolve-options-6sXFqzEA.mjs";
|
|
11
11
|
import "./resolve-options-D-RGs8j8.mjs";
|
|
12
|
-
import { n as unplugin, r as src_default, t as rolldown_default } from "./rolldown-
|
|
12
|
+
import { n as unplugin, r as src_default, t as rolldown_default } from "./rolldown-5_RAKPoC.mjs";
|
|
13
13
|
|
|
14
14
|
export { rolldown_default as default, unplugin as "module.exports", unplugin, src_default as plugin, src_default as rolldown };
|
package/dist/rollup.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-Cq1cUeLx.cjs');
|
|
4
4
|
require('./tsconfig-C8M8X6U0.cjs');
|
|
5
5
|
require('./plugin-utils-Ck3cx3w6.cjs');
|
|
6
6
|
require('./plugin-CZ_PJPpQ.cjs');
|
package/dist/rollup.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as PluginContext, N as UserConfig,
|
|
1
|
+
import { Et as PluginContext, N as UserConfig, er as Plugin, j as ResolvedConfig } from "./config-vnrrSxEB.cjs";
|
|
2
2
|
import * as rollup0 from "rollup";
|
|
3
3
|
import { RollupOptions } from "rollup";
|
|
4
4
|
|
package/dist/rollup.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Et as PluginContext, N as UserConfig,
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
1
|
+
import { Et as PluginContext, N as UserConfig, er as Plugin, j as ResolvedConfig } from "./config-CK756s0L.mjs";
|
|
2
|
+
import "./config-CiPXgwzt.mjs";
|
|
3
|
+
import "./index-C7W0kmm7.mjs";
|
|
4
|
+
import "./index-CK6YPeaO.mjs";
|
|
5
5
|
import * as rollup0 from "rollup";
|
|
6
6
|
import { RollupOptions } from "rollup";
|
|
7
7
|
|
package/dist/rollup.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createUnpluginFactory, o as createUnplugin } from "./api-
|
|
1
|
+
import { a as createUnpluginFactory, o as createUnplugin } from "./api-CT1HMNLh.mjs";
|
|
2
2
|
import "./tsconfig-B92heKit.mjs";
|
|
3
3
|
import "./plugin-utils-C3HnZJl1.mjs";
|
|
4
4
|
import "./plugin-E5foRD0k.mjs";
|
package/dist/rspack.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-Cq1cUeLx.cjs');
|
|
4
4
|
require('./tsconfig-C8M8X6U0.cjs');
|
|
5
5
|
require('./plugin-utils-Ck3cx3w6.cjs');
|
|
6
6
|
require('./plugin-CZ_PJPpQ.cjs');
|
package/dist/rspack.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as PluginContext, N as UserConfig,
|
|
1
|
+
import { Et as PluginContext, N as UserConfig, er as Plugin, j as ResolvedConfig } from "./config-vnrrSxEB.cjs";
|
|
2
2
|
import * as unplugin0 from "unplugin";
|
|
3
3
|
import { Configuration } from "@rspack/core";
|
|
4
4
|
|
package/dist/rspack.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Et as PluginContext, N as UserConfig,
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
1
|
+
import { Et as PluginContext, N as UserConfig, er as Plugin, j as ResolvedConfig } from "./config-CK756s0L.mjs";
|
|
2
|
+
import "./config-CiPXgwzt.mjs";
|
|
3
|
+
import "./index-C7W0kmm7.mjs";
|
|
4
|
+
import "./index-CK6YPeaO.mjs";
|
|
5
5
|
import * as unplugin0 from "unplugin";
|
|
6
6
|
import { Configuration } from "@rspack/core";
|
|
7
7
|
|
package/dist/rspack.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createUnpluginFactory, o as createUnplugin } from "./api-
|
|
1
|
+
import { a as createUnpluginFactory, o as createUnplugin } from "./api-CT1HMNLh.mjs";
|
|
2
2
|
import "./tsconfig-B92heKit.mjs";
|
|
3
3
|
import "./plugin-utils-C3HnZJl1.mjs";
|
|
4
4
|
import "./plugin-E5foRD0k.mjs";
|
package/dist/storage/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Br as
|
|
1
|
+
import { Br as StorageAdapter, Hr as StoragePreset, _t as Context } from "../config-vnrrSxEB.cjs";
|
|
2
2
|
import { MaybePromise } from "@stryke/types/base";
|
|
3
3
|
import { writeFile, writeFileSync } from "@stryke/fs/write-file";
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/storage/base.ts","../../src/storage/file-system.ts","../../src/storage/helpers.ts","../../src/storage/virtual.ts"],"sourcesContent":[],"mappings":";;;;;UAyBiB,qBAAA;;;EAAA,MAAA,CAAA,EAAA,MAAA,GAAA,MAAqB,EAAA;AAStC;;;;AAgBkB,uBAhBI,kBAgBJ,CAAA,iBAfC,qBAeD,GAfyB,qBAezB,CAAA,YAdL,cAcK,CAAA;EAQS,CAAA,OAAA;EASJ,UAAA,OAAA,EAAA,OAAA;EACV;;;EAyDmC,SAAA,IAAA,EAAA,MAAA;EAkBT;;;EA+EH,OAAA,EA5KlB,QA4KkB;EAoBE;;;;;;EA9MzB,SAAA,MAAA,CAAA,EAsBc,aAtBd,GAAA,IAAA;EAAc;;;;;ACJ3B;EACY,WAAA,CAAA,OAAU,EDkCC,OClCoB,EAAA,OAAR,CAAV,EDmCZ,QCnCsB;EAKtB;;;;;;EAgJgC,SAAA,UAAA,CAAA,GAAA,EAAA,MAAA,CAAA,EAAA,OAAA;EAoBG;;;;;;uBDjHZ;;;AE/DpC;AAUA;AAaA;;;;ACxBA;;;;;EAA2C,GAAA,CAAA,GAAA,EAAA,MAAA,CAAA,EHkFV,OGlFU,CAAA,MAAA,GAAA,IAAA,CAAA;EAAkB;;;;;;;;;;;;;mCHoGb;;;;;;;;;;;;0BAkBT;;;;;;;;;;;;uBAgBH;;;;;;;;;;;;;wBAgCC;;;;;;;;;;;;;;uBA+BD;;;;;;;;;;;;;;4BAoBE;;;;;;;;;;;;;;uBAoBL;;;;;;aASb;;;;;;GASJ,MAAA,CAAO,YAAA,KAAa;;;;;;;;;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AA,EGcoC,qBHdpC;EAAc;;;;;ACJ3B;EACY,UAAA,CAAA,GAAU,EAAA,MAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/storage/base.ts","../../src/storage/file-system.ts","../../src/storage/helpers.ts","../../src/storage/virtual.ts"],"sourcesContent":[],"mappings":";;;;;UAyBiB,qBAAA;;;EAAA,MAAA,CAAA,EAAA,MAAA,GAAA,MAAqB,EAAA;AAStC;;;;AAgBkB,uBAhBI,kBAgBJ,CAAA,iBAfC,qBAeD,GAfyB,qBAezB,CAAA,YAdL,cAcK,CAAA;EAQS,CAAA,OAAA;EASJ,UAAA,OAAA,EAAA,OAAA;EACV;;;EAyDmC,SAAA,IAAA,EAAA,MAAA;EAkBT;;;EA+EH,OAAA,EA5KlB,QA4KkB;EAoBE;;;;;;EA9MzB,SAAA,MAAA,CAAA,EAsBc,aAtBd,GAAA,IAAA;EAAc;;;;;ACJ3B;EACY,WAAA,CAAA,OAAU,EDkCC,OClCoB,EAAA,OAAR,CAAV,EDmCZ,QCnCsB;EAKtB;;;;;;EAgJgC,SAAA,UAAA,CAAA,GAAA,EAAA,MAAA,CAAA,EAAA,OAAA;EAoBG;;;;;;uBDjHZ;;;AE/DpC;AAUA;AAaA;;;;ACxBA;;;;;EAA2C,GAAA,CAAA,GAAA,EAAA,MAAA,CAAA,EHkFV,OGlFU,CAAA,MAAA,GAAA,IAAA,CAAA;EAAkB;;;;;;;;;;;;;mCHoGb;;;;;;;;;;;;0BAkBT;;;;;;;;;;;;uBAgBH;;;;;;;;;;;;;wBAgCC;;;;;;;;;;;;;;uBA+BD;;;;;;;;;;;;;;4BAoBE;;;;;;;;;;;;;;uBAoBL;;;;;;aASb;;;;;;GASJ,MAAA,CAAO,YAAA,KAAa;;;;;;;;;;;;;;;;;;;;;;;;;wBA+CN;;;;;KCvSlB,cAAA,GAAiB,kBAAkB;KACnC,UAAA,GAAa,kBAAkB;ADR3C;AASA;;AAC2C,cCG9B,wBA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CAAA,GAAA,EAAA,MAAA,CAAA,EAAA,MAAA,GAAA,IAAA;EAoBG;;;;;;;;;AChLhD;AAUA;AAaA;;;;ACxBA;;;;EA2FmC,QAAA,CAAA,IAAA,CAAA,EAAA,MAAA,CAAA,EAAA,MAAA,EAAA;EA3FQ;;;;;aA2FR"}
|
package/dist/storage/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Br as
|
|
2
|
-
import "../config-
|
|
3
|
-
import "../index-
|
|
4
|
-
import "../index-
|
|
1
|
+
import { Br as StorageAdapter, Hr as StoragePreset, _t as Context } from "../config-CK756s0L.mjs";
|
|
2
|
+
import "../config-CiPXgwzt.mjs";
|
|
3
|
+
import "../index-C7W0kmm7.mjs";
|
|
4
|
+
import "../index-CK6YPeaO.mjs";
|
|
5
5
|
import "../types-Bh_vLuQ0.mjs";
|
|
6
6
|
import { writeFile, writeFileSync } from "@stryke/fs/write-file";
|
|
7
7
|
import { MaybePromise } from "@stryke/types/base";
|
package/dist/tsdown.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-Cq1cUeLx.cjs');
|
|
4
4
|
require('./tsconfig-C8M8X6U0.cjs');
|
|
5
5
|
const require_plugin_utils = require('./plugin-utils-Ck3cx3w6.cjs');
|
|
6
6
|
require('./plugin-CZ_PJPpQ.cjs');
|
|
@@ -11,7 +11,7 @@ require('./utils-BbDma_5Y.cjs');
|
|
|
11
11
|
require('./virtual-B1MLgqnQ.cjs');
|
|
12
12
|
require('./resolve-options-vyFhhkLp.cjs');
|
|
13
13
|
require('./resolve-options-lxQ2pm0W.cjs');
|
|
14
|
-
const require_rolldown = require('./rolldown-
|
|
14
|
+
const require_rolldown = require('./rolldown-UH28mDes.cjs');
|
|
15
15
|
let __stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
16
16
|
let __stryke_path_append = require("@stryke/path/append");
|
|
17
17
|
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
package/dist/tsdown.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as PluginContext,
|
|
1
|
+
import { Et as PluginContext, er as Plugin, j as ResolvedConfig } from "./config-vnrrSxEB.cjs";
|
|
2
2
|
import { UserConfig } from "tsdown/config";
|
|
3
3
|
import { UserConfig as UserConfig$1 } from "tsdown";
|
|
4
4
|
|
package/dist/tsdown.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Et as PluginContext,
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "rolldown";
|
|
1
|
+
import { Et as PluginContext, er as Plugin, j as ResolvedConfig } from "./config-CK756s0L.mjs";
|
|
2
|
+
import "./config-CiPXgwzt.mjs";
|
|
3
|
+
import "./index-C7W0kmm7.mjs";
|
|
4
|
+
import "./index-CK6YPeaO.mjs";
|
|
6
5
|
import { UserConfig } from "tsdown";
|
|
7
6
|
import { Format } from "@storm-software/build-tools/types";
|
|
8
7
|
import { UserConfig as UserConfig$1 } from "tsdown/config";
|
package/dist/tsdown.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tsdown.d.mts","names":[],"sources":["../../plugin-tsdown/src/types/build.ts","../../plugin-tsdown/src/types/plugin.ts","../../plugin-tsdown/src/index.ts","../src/tsdown.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tsdown.d.mts","names":[],"sources":["../../plugin-tsdown/src/types/build.ts","../../plugin-tsdown/src/types/plugin.ts","../../plugin-tsdown/src/index.ts","../src/tsdown.ts"],"sourcesContent":[],"mappings":";;;;;;;;;KAoBY,aAAA,GAAgB,QAC1B,KACE;;;KCDQ,mBAAA,GAAsB,QAAQ;UAMzB,0BAAA,SAAmC;UAC1C;;ADRE,KCWA,mBDXa,CAAA,wBCYC,0BDZD,GCarB,0BDbqB,CAAA,GCcrB,aDdqB,CCcP,eDdO,CAAA;;;;;aEeZ;;;AFfb;;;AAA4B,cEsBf,MFtBe,EAAA,CAAA,iBEuBT,mBFvBS,GEuBa,mBFvBb,CAAA,CAAA,OAAA,CAAA,EEyBjB,mBFzBiB,EAAA,GE0BzB,MF1ByB,CE0BlB,QF1BkB,CAAA;;;;;;;;;;AAA5B;;;;;;;;ACCA;AAMA;AAIA;;;;;;iBEyBgB,QAAA,WAAkB,eAAkB"}
|
package/dist/tsdown.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as createUnplugin } from "./api-
|
|
1
|
+
import { o as createUnplugin } from "./api-CT1HMNLh.mjs";
|
|
2
2
|
import "./tsconfig-B92heKit.mjs";
|
|
3
3
|
import { r as formatPackageJson, w as getDependencyConfig } from "./plugin-utils-C3HnZJl1.mjs";
|
|
4
4
|
import "./plugin-E5foRD0k.mjs";
|
|
@@ -9,7 +9,7 @@ import "./utils-DoQcX7Sk.mjs";
|
|
|
9
9
|
import "./virtual-B9imjOqe.mjs";
|
|
10
10
|
import "./resolve-options-6sXFqzEA.mjs";
|
|
11
11
|
import "./resolve-options-D-RGs8j8.mjs";
|
|
12
|
-
import { t as rolldown_default } from "./rolldown-
|
|
12
|
+
import { t as rolldown_default } from "./rolldown-5_RAKPoC.mjs";
|
|
13
13
|
import { toArray } from "@stryke/convert/to-array";
|
|
14
14
|
import { appendPath } from "@stryke/path/append";
|
|
15
15
|
import { joinPaths } from "@stryke/path/join-paths";
|
package/dist/tsup.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-Cq1cUeLx.cjs');
|
|
4
4
|
require('./tsconfig-C8M8X6U0.cjs');
|
|
5
5
|
require('./plugin-utils-Ck3cx3w6.cjs');
|
|
6
6
|
require('./plugin-CZ_PJPpQ.cjs');
|
|
@@ -10,7 +10,7 @@ require('./config-D86Vw7SC.cjs');
|
|
|
10
10
|
require('./utils-BbDma_5Y.cjs');
|
|
11
11
|
require('./virtual-B1MLgqnQ.cjs');
|
|
12
12
|
const require_resolve_options = require('./resolve-options-BQnTgg3V.cjs');
|
|
13
|
-
const require_esbuild = require('./esbuild-
|
|
13
|
+
const require_esbuild = require('./esbuild-ZfmZH2rH.cjs');
|
|
14
14
|
let __stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
15
15
|
let __stryke_helpers_omit = require("@stryke/helpers/omit");
|
|
16
16
|
let __stryke_path_append = require("@stryke/path/append");
|
package/dist/tsup.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as PluginContext,
|
|
1
|
+
import { Et as PluginContext, er as Plugin, j as ResolvedConfig } from "./config-vnrrSxEB.cjs";
|
|
2
2
|
import { Options } from "tsup";
|
|
3
3
|
import { BuildOptions } from "@storm-software/tsup/types";
|
|
4
4
|
|
package/dist/tsup.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Et as PluginContext,
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
1
|
+
import { Et as PluginContext, er as Plugin, j as ResolvedConfig } from "./config-CK756s0L.mjs";
|
|
2
|
+
import "./config-CiPXgwzt.mjs";
|
|
3
|
+
import "./index-C7W0kmm7.mjs";
|
|
4
|
+
import "./index-CK6YPeaO.mjs";
|
|
5
5
|
import { resolveOptions } from "@storm-software/tsup";
|
|
6
6
|
import { Options } from "tsup";
|
|
7
7
|
import { BuildOptions as BuildOptions$1 } from "@storm-software/tsup/types";
|
package/dist/tsup.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as createUnplugin } from "./api-
|
|
1
|
+
import { o as createUnplugin } from "./api-CT1HMNLh.mjs";
|
|
2
2
|
import "./tsconfig-B92heKit.mjs";
|
|
3
3
|
import "./plugin-utils-C3HnZJl1.mjs";
|
|
4
4
|
import "./plugin-E5foRD0k.mjs";
|
|
@@ -8,7 +8,7 @@ import "./config-D4Fh2gQL.mjs";
|
|
|
8
8
|
import "./utils-DoQcX7Sk.mjs";
|
|
9
9
|
import "./virtual-B9imjOqe.mjs";
|
|
10
10
|
import { n as resolveEntry } from "./resolve-options-DHL3RM8F.mjs";
|
|
11
|
-
import { t as esbuild_default } from "./esbuild-
|
|
11
|
+
import { t as esbuild_default } from "./esbuild-DuyGcO2M.mjs";
|
|
12
12
|
import { toArray } from "@stryke/convert/to-array";
|
|
13
13
|
import { omit } from "@stryke/helpers/omit";
|
|
14
14
|
import { appendPath } from "@stryke/path/append";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _t as Context,
|
|
1
|
+
import { _t as Context, cn as ParsedTypeScriptConfig, pn as TSConfig } from "../config-vnrrSxEB.cjs";
|
|
2
2
|
import { FilterPattern } from "@stryke/types/file";
|
|
3
3
|
import ts from "typescript";
|
|
4
4
|
import { FileSystemHost, InMemoryFileSystemHost, Project, ProjectOptions, RuntimeDirEntry } from "ts-morph";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _t as Context,
|
|
2
|
-
import "../config-
|
|
3
|
-
import "../index-
|
|
4
|
-
import "../index-
|
|
1
|
+
import { _t as Context, cn as ParsedTypeScriptConfig, pn as TSConfig } from "../config-CK756s0L.mjs";
|
|
2
|
+
import "../config-CiPXgwzt.mjs";
|
|
3
|
+
import "../index-C7W0kmm7.mjs";
|
|
4
|
+
import "../index-CK6YPeaO.mjs";
|
|
5
5
|
import { FileSystemHost, InMemoryFileSystemHost, Project, ProjectOptions, RuntimeDirEntry } from "ts-morph";
|
|
6
6
|
import ts from "typescript";
|
|
7
7
|
import { FilterPattern } from "@stryke/types/file";
|
package/dist/unloader.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
3
|
-
const require_api = require('./api-
|
|
3
|
+
const require_api = require('./api-Cq1cUeLx.cjs');
|
|
4
4
|
require('./tsconfig-C8M8X6U0.cjs');
|
|
5
5
|
require('./plugin-utils-Ck3cx3w6.cjs');
|
|
6
6
|
require('./plugin-CZ_PJPpQ.cjs');
|
package/dist/unloader.d.cts
CHANGED
package/dist/unloader.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { N as UserConfig } from "./config-
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
1
|
+
import { N as UserConfig } from "./config-CK756s0L.mjs";
|
|
2
|
+
import "./config-CiPXgwzt.mjs";
|
|
3
|
+
import "./index-C7W0kmm7.mjs";
|
|
4
|
+
import "./index-CK6YPeaO.mjs";
|
|
5
5
|
import * as unloader0 from "unloader";
|
|
6
6
|
|
|
7
7
|
//#region src/unloader.d.ts
|
package/dist/unloader.mjs
CHANGED
package/dist/unplugin.cjs
CHANGED
package/dist/unplugin.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as createUnplugin, c as __ΩCreateUnpluginModuleResolutionFunctionsOptions, d as isUnpluginBuilderVariant, i as __ΩCreateUnpluginResolverOptions, l as createUnpluginModuleResolutionFunctions, n as CreateUnpluginResolverOptions, o as createUnpluginResolver, r as __ΩCreateUnpluginOptions, s as CreateUnpluginModuleResolutionFunctionsOptions, t as CreateUnpluginOptions, u as combineContexts } from "./plugin-
|
|
1
|
+
import { Cr as UnpluginFactory, Nr as API, Sr as UnpluginBuilderVariant, _t as Context, wr as UnpluginOptions$1 } from "./config-vnrrSxEB.cjs";
|
|
2
|
+
import { a as createUnplugin, c as __ΩCreateUnpluginModuleResolutionFunctionsOptions, d as isUnpluginBuilderVariant, i as __ΩCreateUnpluginResolverOptions, l as createUnpluginModuleResolutionFunctions, n as CreateUnpluginResolverOptions, o as createUnpluginResolver, r as __ΩCreateUnpluginOptions, s as CreateUnpluginModuleResolutionFunctionsOptions, t as CreateUnpluginOptions, u as combineContexts } from "./plugin-BEVE4I3A.cjs";
|
|
3
3
|
import { UnpluginOptions } from "unplugin";
|
|
4
4
|
|
|
5
5
|
//#region src/unplugin.d.ts
|
package/dist/unplugin.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./index-
|
|
4
|
-
import { a as createUnplugin, c as __ΩCreateUnpluginModuleResolutionFunctionsOptions, d as isUnpluginBuilderVariant, i as __ΩCreateUnpluginResolverOptions, l as createUnpluginModuleResolutionFunctions, n as CreateUnpluginResolverOptions, o as createUnpluginResolver, r as __ΩCreateUnpluginOptions, s as CreateUnpluginModuleResolutionFunctionsOptions, t as CreateUnpluginOptions, u as combineContexts } from "./index-
|
|
1
|
+
import { Cr as UnpluginFactory, Nr as API, Sr as UnpluginBuilderVariant, _t as Context, wr as UnpluginOptions$1 } from "./config-CK756s0L.mjs";
|
|
2
|
+
import "./config-CiPXgwzt.mjs";
|
|
3
|
+
import "./index-C7W0kmm7.mjs";
|
|
4
|
+
import { a as createUnplugin, c as __ΩCreateUnpluginModuleResolutionFunctionsOptions, d as isUnpluginBuilderVariant, i as __ΩCreateUnpluginResolverOptions, l as createUnpluginModuleResolutionFunctions, n as CreateUnpluginResolverOptions, o as createUnpluginResolver, r as __ΩCreateUnpluginOptions, s as CreateUnpluginModuleResolutionFunctionsOptions, t as CreateUnpluginOptions, u as combineContexts } from "./index-CK6YPeaO.mjs";
|
|
5
5
|
import { UnpluginOptions } from "unplugin";
|
|
6
6
|
|
|
7
7
|
//#region src/unplugin.d.ts
|
package/dist/unplugin.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createUnpluginFactory, c as createUnpluginModuleResolutionFunctions, l as combineContexts, o as createUnplugin, s as createUnpluginResolver, u as isUnpluginBuilderVariant } from "./api-
|
|
1
|
+
import { a as createUnpluginFactory, c as createUnpluginModuleResolutionFunctions, l as combineContexts, o as createUnplugin, s as createUnpluginResolver, u as isUnpluginBuilderVariant } from "./api-CT1HMNLh.mjs";
|
|
2
2
|
import "./tsconfig-B92heKit.mjs";
|
|
3
3
|
import "./plugin-utils-C3HnZJl1.mjs";
|
|
4
4
|
import "./plugin-E5foRD0k.mjs";
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as resolveInputs, S as resolveInput, _ as extendLog, a as getString, b as isTypeDefinition, c as FileHeaderOptions, d as getFileHeaderWarning, f as getFileHeaderWarningText, g as createLog, h as __ΩCreateLogOptions, i as getSourceFile, l as __ΩFileHeaderOptions, m as CreateLogOptions, n as generateSourceMap, o as format, p as getTypescriptFileHeader, r as getMagicString, s as formatFolder, t as writeFile, u as getFileHeader, v as getUniqueInputs, w as resolveInputsSync, x as resolveEntryOutput, y as isResolvedEntryTypeDefinition } from "./write-file-
|
|
1
|
+
import { C as resolveInputs, S as resolveInput, _ as extendLog, a as getString, b as isTypeDefinition, c as FileHeaderOptions, d as getFileHeaderWarning, f as getFileHeaderWarningText, g as createLog, h as __ΩCreateLogOptions, i as getSourceFile, l as __ΩFileHeaderOptions, m as CreateLogOptions, n as generateSourceMap, o as format, p as getTypescriptFileHeader, r as getMagicString, s as formatFolder, t as writeFile, u as getFileHeader, v as getUniqueInputs, w as resolveInputsSync, x as resolveEntryOutput, y as isResolvedEntryTypeDefinition } from "./write-file-CpNWY8SV.cjs";
|
|
2
2
|
export { CreateLogOptions, FileHeaderOptions, __ΩCreateLogOptions, __ΩFileHeaderOptions, createLog, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./config-
|
|
2
|
-
import { C as resolveInputs, S as resolveInput, _ as extendLog, a as getString, b as isTypeDefinition, c as FileHeaderOptions, d as getFileHeaderWarning, f as getFileHeaderWarningText, g as createLog, h as __ΩCreateLogOptions, i as getSourceFile, l as __ΩFileHeaderOptions, m as CreateLogOptions, n as generateSourceMap, o as format, p as getTypescriptFileHeader, r as getMagicString, s as formatFolder, t as writeFile, u as getFileHeader, v as getUniqueInputs, w as resolveInputsSync, x as resolveEntryOutput, y as isResolvedEntryTypeDefinition } from "./index-
|
|
1
|
+
import "./config-CK756s0L.mjs";
|
|
2
|
+
import { C as resolveInputs, S as resolveInput, _ as extendLog, a as getString, b as isTypeDefinition, c as FileHeaderOptions, d as getFileHeaderWarning, f as getFileHeaderWarningText, g as createLog, h as __ΩCreateLogOptions, i as getSourceFile, l as __ΩFileHeaderOptions, m as CreateLogOptions, n as generateSourceMap, o as format, p as getTypescriptFileHeader, r as getMagicString, s as formatFolder, t as writeFile, u as getFileHeader, v as getUniqueInputs, w as resolveInputsSync, x as resolveEntryOutput, y as isResolvedEntryTypeDefinition } from "./index-C7W0kmm7.mjs";
|
|
3
3
|
export { CreateLogOptions, FileHeaderOptions, __ΩCreateLogOptions, __ΩFileHeaderOptions, createLog, extendLog, format, formatFolder, generateSourceMap, getFileHeader, getFileHeaderWarning, getFileHeaderWarningText, getMagicString, getSourceFile, getString, getTypescriptFileHeader, getUniqueInputs, isResolvedEntryTypeDefinition, isTypeDefinition, resolveEntryOutput, resolveInput, resolveInputs, resolveInputsSync, writeFile };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createUnpluginFactory, o as createUnplugin } from "./api-
|
|
1
|
+
import { a as createUnpluginFactory, o as createUnplugin } from "./api-CT1HMNLh.mjs";
|
|
2
2
|
import { r as resolveOptions$1 } from "./resolve-options-DHL3RM8F.mjs";
|
|
3
3
|
import { n as resolveOptions$3 } from "./resolve-options-6sXFqzEA.mjs";
|
|
4
4
|
import { t as resolveOptions$2 } from "./resolve-options-D-RGs8j8.mjs";
|
|
@@ -168,4 +168,4 @@ var vite_default = unplugin;
|
|
|
168
168
|
|
|
169
169
|
//#endregion
|
|
170
170
|
export { vite_default as n, src_default as r, unplugin as t };
|
|
171
|
-
//# sourceMappingURL=vite-
|
|
171
|
+
//# sourceMappingURL=vite-62muOctS.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-C129CZ5h.mjs","names":["DEFAULT_VITE_CONFIG: Partial<ViteOptions>","resolveEsbuildOptions","resolveRolldownOptions","resolveRollupOptions","createVitePlugin","createViteUnplugin","createVitePlugin","plugin"],"sources":["../../plugin-vite/src/helpers/resolve-options.ts","../../plugin-vite/src/helpers/unplugin.ts","../../plugin-vite/src/index.ts","../src/vite.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Context } from \"@powerlines/core\";\nimport { resolveOptions as resolveEsbuildOptions } from \"@powerlines/plugin-esbuild/helpers/resolve-options\";\nimport { resolveOptions as resolveRolldownOptions } from \"@powerlines/plugin-rolldown/helpers/resolve-options\";\nimport { resolveOptions as resolveRollupOptions } from \"@powerlines/plugin-rollup/helpers/resolve-options\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport defu from \"defu\";\nimport { ESBuildOptions } from \"vite\";\nimport { VitePluginResolvedConfig } from \"../types\";\nimport { ViteOptions } from \"../types/build\";\n\nexport const DEFAULT_VITE_CONFIG: Partial<ViteOptions> = {\n resolve: {\n extensions: [\".mjs\", \".js\", \".mts\", \".ts\", \".jsx\", \".tsx\", \".json\"]\n },\n json: {\n stringify: true\n },\n logLevel: \"silent\",\n clearScreen: true\n};\n\n/**\n * Resolves the options for [vite](https://vitejs.dev/).\n *\n * @param context - The build context.\n * @returns The resolved options.\n */\nexport function resolveOptions(context: Context): ViteOptions {\n return defu(\n {\n resolve: {\n alias: Object.entries(context.alias).reduce(\n (ret, [id, path]) => {\n if (!ret.find(e => e.find === id)) {\n ret.push({\n find: id,\n replacement: path\n });\n } else {\n context.warn(\n `Duplicate alias entry for '${id}' detected. The first entry will be used.`\n );\n }\n\n return ret;\n },\n [] as { find: string; replacement: string }[]\n ),\n dedupe: context.config.resolve.dedupe,\n mainFields: context.config.resolve.mainFields,\n conditions: context.config.resolve.conditions,\n extensions: context.config.resolve.extensions\n }\n },\n (context.config as VitePluginResolvedConfig).vite\n ? defu(\n (context.config as VitePluginResolvedConfig).vite,\n {\n optimizeDeps:\n (context.config as VitePluginResolvedConfig).vite?.optimizeDeps ??\n {}\n },\n {\n optimizeDeps: {\n extensions: context.config.resolve.extensions\n }\n }\n )\n : {},\n {\n define: context.config.define,\n rootDir: context.fs.existsSync(joinPaths(context.config.root, \"src\"))\n ? joinPaths(context.config.root, \"src\")\n : context.config.root,\n platform: context.config.platform,\n mode:\n context.config.mode === \"development\" ? \"development\" : \"production\",\n cacheDir: joinPaths(context.cachePath, \"vite\"),\n build: {\n minify: context.config.mode !== \"development\",\n metafile: context.config.mode === \"development\",\n sourcemap: context.config.mode === \"development\",\n outDir: context.config.output.buildPath,\n tsconfig: context.tsconfig.tsconfigFilePath,\n tsconfigRaw: context.tsconfig.tsconfigJson\n },\n esbuild: resolveEsbuildOptions(context) as ESBuildOptions,\n optimizeDeps: {\n rolldownOptions: resolveRolldownOptions(context),\n rollupOptions: resolveRollupOptions(context),\n esbuildOptions: resolveEsbuildOptions(context)\n },\n logLevel: context.config.logLevel ?? undefined,\n envDir: context.config.root\n } as ViteOptions,\n DEFAULT_VITE_CONFIG\n ) as ViteOptions;\n}\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createUnplugin } from \"@powerlines/core/lib/unplugin\";\nimport { createVitePlugin as createViteUnplugin } from \"unplugin\";\nimport { VitePluginContext } from \"../types/plugin\";\n\nexport function createVitePlugin(context: VitePluginContext) {\n return createViteUnplugin(createUnplugin(context))({});\n}\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Context, Plugin } from \"@powerlines/core\";\nimport defu from \"defu\";\nimport { build, InlineConfig } from \"vite\";\nimport { DEFAULT_VITE_CONFIG, resolveOptions } from \"./helpers/resolve-options\";\nimport { createVitePlugin } from \"./helpers/unplugin\";\nimport { UNSAFE_VitePluginContext } from \"./types/_internal\";\nimport {\n VitePluginContext,\n VitePluginOptions,\n VitePluginResolvedConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface Config {\n vite?: VitePluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <TContext extends VitePluginContext = VitePluginContext>(\n options: VitePluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"vite\",\n config() {\n this.trace(\n \"Providing default configuration for the Powerlines `vite` build plugin.\"\n );\n\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n vite: {\n ...DEFAULT_VITE_CONFIG,\n ...options\n },\n singleBuild: true\n } as Partial<VitePluginResolvedConfig>;\n },\n async build() {\n this.trace(`Building the Powerlines plugin.`);\n\n const environments = (this as unknown as UNSAFE_VitePluginContext)\n ?.$$internal?.api?.context?.environments;\n if (!environments || Object.keys(environments).length === 0) {\n throw new Error(\n `No environments found in the Powerlines context. At least one environment should have been generated - please report this issue to https://github.com/storm-software/powerlines/issues.`\n );\n }\n\n this.trace(\n `Running Vite for ${Object.keys(environments).length} environments.`\n );\n\n const config = defu(\n {\n config: false,\n entry: this.entry,\n environments: Object.fromEntries(\n Object.entries(environments).map(([name, env]) => [\n name,\n resolveOptions(env as Context)\n ])\n )\n },\n resolveOptions(this),\n {\n plugins: [createVitePlugin(this)]\n }\n );\n\n await build(config as InlineConfig);\n }\n };\n};\n\nexport default plugin;\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { resolveOptions } from \"@powerlines/plugin-vite/helpers/resolve-options\";\nimport {\n ViteOptions,\n VitePluginUserConfig\n} from \"@powerlines/plugin-vite/types\";\nimport { isDevelopmentMode, isTestMode } from \"@stryke/env/environment-checks\";\nimport defu from \"defu\";\nimport { createVitePlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport { default as plugin, default as vite } from \"@powerlines/plugin-vite\";\n\n/**\n * A Vite plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://vitejs.dev/guide/api-plugin.html#plugin-api\n *\n * @example\n * ```ts\n * // vite.config.ts\n * import powerlines from \"powerlines/vite\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * });\n *\n * ```\n */\nexport const unplugin = createVitePlugin<Partial<VitePluginUserConfig>>(\n createUnpluginFactory(\"vite\", (api, plugin) => {\n return {\n ...plugin,\n vite: {\n sharedDuringBuild: true,\n\n async hotUpdate(options) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"vite:hotUpdate\", { environment }, options);\n },\n async config(config, env) {\n api.context.config.mode = isDevelopmentMode(env.mode)\n ? \"development\"\n : isTestMode(env.mode)\n ? \"test\"\n : \"production\";\n\n const environment = await api.context.getEnvironment();\n const result = await api.callHook(\n \"vite:config\",\n { environment },\n config,\n env\n );\n\n return defu(\n resolveOptions(api.context),\n // Need to use `any` here to avoid excessive type complexity\n result?.build ?? {},\n config\n ) as Omit<ViteOptions, \"plugins\">;\n },\n async configResolved(_config) {\n const environment = await api.context.getEnvironment();\n\n await api.callHook(\"configResolved\", { environment });\n },\n async configureServer(server) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"vite:configureServer\", { environment }, server);\n },\n async configurePreviewServer(server) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\n \"vite:configurePreviewServer\",\n { environment },\n server\n );\n },\n async transformIndexHtml(html, ctx) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\n \"vite:transformIndexHtml\",\n { environment },\n html,\n ctx\n );\n },\n async handleHotUpdate(ctx) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"vite:handleHotUpdate\", { environment }, ctx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Partial<ViteOptions>","resolveEsbuildOptions","resolveRolldownOptions","resolveRollupOptions","createVitePlugin","createViteUnplugin","createVitePlugin","plugin"],"sources":["../../plugin-vite/src/helpers/resolve-options.ts","../../plugin-vite/src/helpers/unplugin.ts","../../plugin-vite/src/index.ts","../src/vite.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Context } from \"@powerlines/core\";\nimport { resolveOptions as resolveEsbuildOptions } from \"@powerlines/plugin-esbuild/helpers/resolve-options\";\nimport { resolveOptions as resolveRolldownOptions } from \"@powerlines/plugin-rolldown/helpers/resolve-options\";\nimport { resolveOptions as resolveRollupOptions } from \"@powerlines/plugin-rollup/helpers/resolve-options\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport defu from \"defu\";\nimport { ESBuildOptions } from \"vite\";\nimport { VitePluginResolvedConfig } from \"../types\";\nimport { ViteOptions } from \"../types/build\";\n\nexport const DEFAULT_VITE_CONFIG: Partial<ViteOptions> = {\n resolve: {\n extensions: [\".mjs\", \".js\", \".mts\", \".ts\", \".jsx\", \".tsx\", \".json\"]\n },\n json: {\n stringify: true\n },\n logLevel: \"silent\",\n clearScreen: true\n};\n\n/**\n * Resolves the options for [vite](https://vitejs.dev/).\n *\n * @param context - The build context.\n * @returns The resolved options.\n */\nexport function resolveOptions(context: Context): ViteOptions {\n return defu(\n {\n resolve: {\n alias: Object.entries(context.alias).reduce(\n (ret, [id, path]) => {\n if (!ret.find(e => e.find === id)) {\n ret.push({\n find: id,\n replacement: path\n });\n } else {\n context.warn(\n `Duplicate alias entry for '${id}' detected. The first entry will be used.`\n );\n }\n\n return ret;\n },\n [] as { find: string; replacement: string }[]\n ),\n dedupe: context.config.resolve.dedupe,\n mainFields: context.config.resolve.mainFields,\n conditions: context.config.resolve.conditions,\n extensions: context.config.resolve.extensions\n }\n },\n (context.config as VitePluginResolvedConfig).vite\n ? defu(\n (context.config as VitePluginResolvedConfig).vite,\n {\n optimizeDeps:\n (context.config as VitePluginResolvedConfig).vite?.optimizeDeps ??\n {}\n },\n {\n optimizeDeps: {\n extensions: context.config.resolve.extensions\n }\n }\n )\n : {},\n {\n define: context.config.define,\n rootDir: context.fs.existsSync(joinPaths(context.config.root, \"src\"))\n ? joinPaths(context.config.root, \"src\")\n : context.config.root,\n platform: context.config.platform,\n mode:\n context.config.mode === \"development\" ? \"development\" : \"production\",\n cacheDir: joinPaths(context.cachePath, \"vite\"),\n build: {\n minify: context.config.mode !== \"development\",\n metafile: context.config.mode === \"development\",\n sourcemap: context.config.mode === \"development\",\n outDir: context.config.output.buildPath,\n tsconfig: context.tsconfig.tsconfigFilePath,\n tsconfigRaw: context.tsconfig.tsconfigJson\n },\n esbuild: resolveEsbuildOptions(context) as ESBuildOptions,\n optimizeDeps: {\n rolldownOptions: resolveRolldownOptions(context),\n rollupOptions: resolveRollupOptions(context),\n esbuildOptions: resolveEsbuildOptions(context)\n },\n logLevel: context.config.logLevel ?? undefined,\n envDir: context.config.root\n } as ViteOptions,\n DEFAULT_VITE_CONFIG\n ) as ViteOptions;\n}\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createUnplugin } from \"@powerlines/core/lib/unplugin\";\nimport { createVitePlugin as createViteUnplugin } from \"unplugin\";\nimport { VitePluginContext } from \"../types/plugin\";\n\nexport function createVitePlugin(context: VitePluginContext) {\n return createViteUnplugin(createUnplugin(context))({});\n}\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Context, Plugin } from \"@powerlines/core\";\nimport defu from \"defu\";\nimport { build, InlineConfig } from \"vite\";\nimport { DEFAULT_VITE_CONFIG, resolveOptions } from \"./helpers/resolve-options\";\nimport { createVitePlugin } from \"./helpers/unplugin\";\nimport { UNSAFE_VitePluginContext } from \"./types/_internal\";\nimport {\n VitePluginContext,\n VitePluginOptions,\n VitePluginResolvedConfig\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface Config {\n vite?: VitePluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <TContext extends VitePluginContext = VitePluginContext>(\n options: VitePluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"vite\",\n config() {\n this.trace(\n \"Providing default configuration for the Powerlines `vite` build plugin.\"\n );\n\n return {\n output: {\n format: [\"cjs\", \"esm\"]\n },\n vite: {\n ...DEFAULT_VITE_CONFIG,\n ...options\n },\n singleBuild: true\n } as Partial<VitePluginResolvedConfig>;\n },\n async build() {\n this.trace(`Building the Powerlines plugin.`);\n\n const environments = (this as unknown as UNSAFE_VitePluginContext)\n ?.$$internal?.api?.context?.environments;\n if (!environments || Object.keys(environments).length === 0) {\n throw new Error(\n `No environments found in the Powerlines context. At least one environment should have been generated - please report this issue to https://github.com/storm-software/powerlines/issues.`\n );\n }\n\n this.trace(\n `Running Vite for ${Object.keys(environments).length} environments.`\n );\n\n const config = defu(\n {\n config: false,\n entry: this.entry,\n environments: Object.fromEntries(\n Object.entries(environments).map(([name, env]) => [\n name,\n resolveOptions(env as Context)\n ])\n )\n },\n resolveOptions(this),\n {\n plugins: [createVitePlugin(this)]\n }\n );\n\n await build(config as InlineConfig);\n }\n };\n};\n\nexport default plugin;\n","/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { resolveOptions } from \"@powerlines/plugin-vite/helpers/resolve-options\";\nimport {\n ViteOptions,\n VitePluginUserConfig\n} from \"@powerlines/plugin-vite/types\";\nimport { isDevelopmentMode, isTestMode } from \"@stryke/env/environment-checks\";\nimport defu from \"defu\";\nimport { createVitePlugin } from \"unplugin\";\nimport { createUnpluginFactory } from \"./unplugin\";\n\nexport { default as plugin, default as vite } from \"@powerlines/plugin-vite\";\n\n/**\n * A Vite plugin that will invoke the Powerlines API hooks during the build process.\n *\n * @see https://vitejs.dev/guide/api-plugin.html#plugin-api\n *\n * @example\n * ```ts\n * // vite.config.ts\n * import powerlines from \"powerlines/vite\";\n *\n * export default defineConfig({\n * plugins: [powerlines({ name: \"example-app\", ... })],\n * });\n *\n * ```\n */\nexport const unplugin = createVitePlugin<Partial<VitePluginUserConfig>>(\n createUnpluginFactory(\"vite\", (api, plugin) => {\n return {\n ...plugin,\n vite: {\n sharedDuringBuild: true,\n\n async hotUpdate(options) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"vite:hotUpdate\", { environment }, options);\n },\n async config(config, env) {\n api.context.config.mode = isDevelopmentMode(env.mode)\n ? \"development\"\n : isTestMode(env.mode)\n ? \"test\"\n : \"production\";\n\n const environment = await api.context.getEnvironment();\n const result = await api.callHook(\n \"vite:config\",\n { environment },\n config,\n env\n );\n\n return defu(\n resolveOptions(api.context),\n // Need to use `any` here to avoid excessive type complexity\n result?.build ?? {},\n config\n ) as Omit<ViteOptions, \"plugins\">;\n },\n async configResolved(_config) {\n const environment = await api.context.getEnvironment();\n\n await api.callHook(\"configResolved\", { environment });\n },\n async configureServer(server) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"vite:configureServer\", { environment }, server);\n },\n async configurePreviewServer(server) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\n \"vite:configurePreviewServer\",\n { environment },\n server\n );\n },\n async transformIndexHtml(html, ctx) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\n \"vite:transformIndexHtml\",\n { environment },\n html,\n ctx\n );\n },\n async handleHotUpdate(ctx) {\n const environment = await api.context.getEnvironment();\n\n return api.callHook(\"vite:handleHotUpdate\", { environment }, ctx);\n }\n }\n };\n })\n);\n\nexport default unplugin;\n\nexport { unplugin as \"module.exports\" };\n"],"mappings":";;;;;;;;;;;AA4BA,MAAaA,sBAA4C;CACvD,SAAS,EACP,YAAY;EAAC;EAAQ;EAAO;EAAQ;EAAO;EAAQ;EAAQ;EAAQ,EACpE;CACD,MAAM,EACJ,WAAW,MACZ;CACD,UAAU;CACV,aAAa;CACd;;;;;;;AAQD,SAAgB,eAAe,SAA+B;AAC5D,QAAO,KACL,EACE,SAAS;EACP,OAAO,OAAO,QAAQ,QAAQ,MAAM,CAAC,QAClC,KAAK,CAAC,IAAI,UAAU;AACnB,OAAI,CAAC,IAAI,MAAK,MA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AO,KACL,eAAe,IAAI,QAAQ,EAE3B,QAAQ,SAAS,EAAE,EACnB,OACD;;GAEH,MAAM,eAAe,SAAS;IAC5B,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,UAAM,IAAI,SAAS,kBAAkB,EAAE,aAAa,CAAC;;GAEvD,MAAM,gBAAgB,QAAQ;IAC5B,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,WAAO,IAAI,SAAS,wBAAwB,EAAE,aAAa,EAAE,OAAO;;GAEtE,MAAM,uBAAuB,QAAQ;IACnC,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,WAAO,IAAI,SACT,+BACA,EAAE,aAAa,EACf,OACD;;GAEH,MAAM,mBAAmB,MAAM,KAAK;IAClC,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,WAAO,IAAI,SACT,2BACA,EAAE,aAAa,EACf,MACA,IACD;;GAEH,MAAM,gBAAgB,KAAK;IACzB,MAAM,cAAc,MAAM,IAAI,QAAQ,gBAAgB;AAEtD,WAAO,IAAI,SAAS,wBAAwB,EAAE,aAAa,EAAE,IAAI;;GAEpE;EACF;EACD,CACH;AAED,mBAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_api = require('./api-
|
|
2
|
+
const require_api = require('./api-Cq1cUeLx.cjs');
|
|
3
3
|
const require_resolve_options = require('./resolve-options-BQnTgg3V.cjs');
|
|
4
4
|
const require_resolve_options$1 = require('./resolve-options-vyFhhkLp.cjs');
|
|
5
5
|
const require_resolve_options$2 = require('./resolve-options-lxQ2pm0W.cjs');
|
package/dist/vite.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
require('./api-
|
|
2
|
+
require('./api-Cq1cUeLx.cjs');
|
|
3
3
|
require('./tsconfig-C8M8X6U0.cjs');
|
|
4
4
|
require('./plugin-utils-Ck3cx3w6.cjs');
|
|
5
5
|
require('./plugin-CZ_PJPpQ.cjs');
|
|
@@ -11,7 +11,7 @@ require('./virtual-B1MLgqnQ.cjs');
|
|
|
11
11
|
require('./resolve-options-BQnTgg3V.cjs');
|
|
12
12
|
require('./resolve-options-vyFhhkLp.cjs');
|
|
13
13
|
require('./resolve-options-lxQ2pm0W.cjs');
|
|
14
|
-
const require_vite = require('./vite-
|
|
14
|
+
const require_vite = require('./vite-DwAQ0nZ5.cjs');
|
|
15
15
|
|
|
16
16
|
exports.default = require_vite.vite_default;
|
|
17
17
|
exports["module.exports"] = require_vite.unplugin;
|
package/dist/vite.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as VitePluginOptions, r as VitePluginUserConfig, t as VitePluginContext } from "./plugin-
|
|
1
|
+
import { er as Plugin } from "./config-vnrrSxEB.cjs";
|
|
2
|
+
import { n as VitePluginOptions, r as VitePluginUserConfig, t as VitePluginContext } from "./plugin-BE3wmhoU.cjs";
|
|
3
3
|
import * as vite0 from "vite";
|
|
4
4
|
|
|
5
5
|
//#region ../plugin-vite/src/index.d.ts
|
package/dist/vite.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./config-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import { n as VitePluginOptions, r as VitePluginUserConfig, t as VitePluginContext } from "./plugin-
|
|
1
|
+
import { er as Plugin } from "./config-CK756s0L.mjs";
|
|
2
|
+
import "./config-CiPXgwzt.mjs";
|
|
3
|
+
import "./index-C7W0kmm7.mjs";
|
|
4
|
+
import "./index-CK6YPeaO.mjs";
|
|
5
|
+
import { n as VitePluginOptions, r as VitePluginUserConfig, t as VitePluginContext } from "./plugin-C_8RhG5V.mjs";
|
|
6
6
|
import * as vite0 from "vite";
|
|
7
7
|
|
|
8
8
|
//#region ../plugin-vite/src/index.d.ts
|
package/dist/vite.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./api-
|
|
1
|
+
import "./api-CT1HMNLh.mjs";
|
|
2
2
|
import "./tsconfig-B92heKit.mjs";
|
|
3
3
|
import "./plugin-utils-C3HnZJl1.mjs";
|
|
4
4
|
import "./plugin-E5foRD0k.mjs";
|
|
@@ -10,6 +10,6 @@ import "./virtual-B9imjOqe.mjs";
|
|
|
10
10
|
import "./resolve-options-DHL3RM8F.mjs";
|
|
11
11
|
import "./resolve-options-6sXFqzEA.mjs";
|
|
12
12
|
import "./resolve-options-D-RGs8j8.mjs";
|
|
13
|
-
import { n as vite_default, r as src_default, t as unplugin } from "./vite-
|
|
13
|
+
import { n as vite_default, r as src_default, t as unplugin } from "./vite-62muOctS.mjs";
|
|
14
14
|
|
|
15
15
|
export { vite_default as default, unplugin as "module.exports", unplugin, src_default as plugin, src_default as vite };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-CbDLau6x.cjs');
|
|
2
|
-
const require_api = require('./api-
|
|
2
|
+
const require_api = require('./api-Cq1cUeLx.cjs');
|
|
3
3
|
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
4
4
|
let defu = require("defu");
|
|
5
5
|
defu = require_chunk.__toESM(defu);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createUnpluginFactory, o as createUnplugin } from "./api-
|
|
1
|
+
import { a as createUnpluginFactory, o as createUnplugin } from "./api-CT1HMNLh.mjs";
|
|
2
2
|
import { joinPaths } from "@stryke/path/join-paths";
|
|
3
3
|
import defu from "defu";
|
|
4
4
|
import { createWebpackPlugin } from "unplugin";
|
|
@@ -85,4 +85,4 @@ var webpack_default = unplugin;
|
|
|
85
85
|
|
|
86
86
|
//#endregion
|
|
87
87
|
export { webpack_default as n, src_default as r, unplugin as t };
|
|
88
|
-
//# sourceMappingURL=webpack-
|
|
88
|
+
//# sourceMappingURL=webpack-Bca7BjFU.mjs.map
|