@powerlines/plugin-swc 0.5.247 → 0.5.249
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-BgAdqTbb.d.mts +1 -0
- package/dist/index-CEgs-Dz2.d.cts +1 -0
- package/dist/index.cjs +30 -2
- package/dist/index.d.cts +4 -3
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +4 -3
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-BZj5kStn.d.mts +25 -0
- package/dist/plugin-BZj5kStn.d.mts.map +1 -0
- package/dist/plugin-C3MaN5jp.mjs +1 -0
- package/dist/plugin-DHXHjv16.cjs +0 -0
- package/dist/plugin-IyIHe2lt.d.cts +25 -0
- package/dist/plugin-IyIHe2lt.d.cts.map +1 -0
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +2 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.mjs +3 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +1 -23
- package/dist/types/plugin.d.mts +1 -23
- package/dist/types/plugin.mjs +2 -0
- package/dist/types-CTUnla4x.mjs +1 -0
- package/dist/types-DHkg7xmX.cjs +0 -0
- package/package.json +4 -4
- package/dist/_virtual/rolldown_runtime.cjs +0 -29
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,36 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
2
|
+
//#region rolldown:runtime
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
14
|
+
__defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
require('./plugin-DHXHjv16.cjs');
|
|
30
|
+
require('./types-DHkg7xmX.cjs');
|
|
3
31
|
let __swc_core = require("@swc/core");
|
|
4
32
|
let defu = require("defu");
|
|
5
|
-
defu =
|
|
33
|
+
defu = __toESM(defu);
|
|
6
34
|
|
|
7
35
|
//#region src/index.ts
|
|
8
36
|
/**
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SwcPluginContext,
|
|
2
|
-
import "./
|
|
1
|
+
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "./plugin-IyIHe2lt.cjs";
|
|
2
|
+
import "./index-CEgs-Dz2.cjs";
|
|
3
3
|
import { Plugin } from "powerlines/types/plugin";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
@@ -12,4 +12,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
12
12
|
*/
|
|
13
13
|
declare const plugin: <TContext extends SwcPluginContext = SwcPluginContext>(options?: SwcPluginOptions) => Plugin<TContext>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { SwcPluginContext, SwcPluginOptions, SwcPluginResolvedConfig, SwcPluginUserConfig, __ΩSwcPluginContext, __ΩSwcPluginOptions, __ΩSwcPluginResolvedConfig, __ΩSwcPluginUserConfig, plugin as default, plugin };
|
|
15
|
+
export { SwcPluginContext, SwcPluginOptions, SwcPluginResolvedConfig, SwcPluginUserConfig, __ΩSwcPluginContext, __ΩSwcPluginOptions, __ΩSwcPluginResolvedConfig, __ΩSwcPluginUserConfig, plugin as default, plugin };
|
|
16
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA+BA;;;;AAEU,cAFG,MAEH,EAAA,CAAA,iBAF8B,gBAE9B,GAFiD,gBAEjD,CAAA,CAAA,OAAA,CAAA,EADC,gBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SwcPluginContext,
|
|
2
|
-
import "./
|
|
1
|
+
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "./plugin-BZj5kStn.mjs";
|
|
2
|
+
import "./index-BgAdqTbb.mjs";
|
|
3
3
|
import { Plugin } from "powerlines/types/plugin";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
@@ -12,4 +12,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
12
12
|
*/
|
|
13
13
|
declare const plugin: <TContext extends SwcPluginContext = SwcPluginContext>(options?: SwcPluginOptions) => Plugin<TContext>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { SwcPluginContext, SwcPluginOptions, SwcPluginResolvedConfig, SwcPluginUserConfig, __ΩSwcPluginContext, __ΩSwcPluginOptions, __ΩSwcPluginResolvedConfig, __ΩSwcPluginUserConfig, plugin as default, plugin };
|
|
15
|
+
export { SwcPluginContext, SwcPluginOptions, SwcPluginResolvedConfig, SwcPluginUserConfig, __ΩSwcPluginContext, __ΩSwcPluginOptions, __ΩSwcPluginResolvedConfig, __ΩSwcPluginUserConfig, plugin as default, plugin };
|
|
16
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA+BA;;;;AAEU,cAFG,MAEH,EAAA,CAAA,iBAF8B,gBAE9B,GAFiD,gBAEjD,CAAA,CAAA,OAAA,CAAA,EADC,gBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "./plugin-C3MaN5jp.mjs";
|
|
2
|
+
import "./types-CTUnla4x.mjs";
|
|
1
3
|
import { transform } from "@swc/core";
|
|
2
4
|
import defu from "defu";
|
|
3
5
|
|
|
@@ -35,4 +37,5 @@ const plugin = (options = {}) => {
|
|
|
35
37
|
var src_default = plugin;
|
|
36
38
|
|
|
37
39
|
//#endregion
|
|
38
|
-
export { src_default as default, plugin };
|
|
40
|
+
export { src_default as default, plugin };
|
|
41
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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 { transform } from \"@swc/core\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { SwcPluginContext, SwcPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\n/**\n * A Powerlines plugin to integrate SWC for code transformation.\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <TContext extends SwcPluginContext = SwcPluginContext>(\n options: SwcPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"swc\",\n config() {\n return {\n transform: {\n swc: defu(options, {\n outputPath: this.config.output.buildPath,\n cwd: this.config.projectRoot,\n envName: this.config.mode,\n configFile: false\n })\n }\n };\n },\n async transform(code, id) {\n const result = await transform(code, {\n ...this.config.transform.swc,\n filename: id\n });\n\n return { id, code: result.code, map: result.map };\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AA+BA,MAAa,UACX,UAA4B,EAAE,KACT;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO,EACL,WAAW,EACT,KAAK,KAAK,SAAS;IACjB,YAAY,KAAK,OAAO,OAAO;IAC/B,KAAK,KAAK,OAAO;IACjB,SAAS,KAAK,OAAO;IACrB,YAAY;IACb,CAAC,EACH,EACF;;EAEH,MAAM,UAAU,MAAM,IAAI;GACxB,MAAM,SAAS,MAAM,UAAU,MAAM;IACnC,GAAG,KAAK,OAAO,UAAU;IACzB,UAAU;IACX,CAAC;AAEF,UAAO;IAAE;IAAI,MAAM,OAAO;IAAM,KAAK,OAAO;IAAK;;EAEpD;;AAGH,kBAAe"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Options } from "@swc/core";
|
|
2
|
+
import { UserConfig } from "powerlines/types/config";
|
|
3
|
+
import { PluginContext } from "powerlines/types/context";
|
|
4
|
+
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
+
|
|
6
|
+
//#region src/types/plugin.d.ts
|
|
7
|
+
type SwcPluginOptions = Partial<Omit<Options, "filename">>;
|
|
8
|
+
type SwcPluginUserConfig = UserConfig & {
|
|
9
|
+
transform?: {
|
|
10
|
+
swc?: SwcPluginOptions;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type SwcPluginResolvedConfig = ResolvedConfig & {
|
|
14
|
+
transform?: {
|
|
15
|
+
swc?: SwcPluginOptions;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
type SwcPluginContext<TResolvedConfig extends SwcPluginResolvedConfig = SwcPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
19
|
+
declare type __ΩSwcPluginOptions = any[];
|
|
20
|
+
declare type __ΩSwcPluginUserConfig = any[];
|
|
21
|
+
declare type __ΩSwcPluginResolvedConfig = any[];
|
|
22
|
+
declare type __ΩSwcPluginContext = any[];
|
|
23
|
+
//#endregion
|
|
24
|
+
export { __ΩSwcPluginContext as a, __ΩSwcPluginUserConfig as c, SwcPluginUserConfig as i, SwcPluginOptions as n, __ΩSwcPluginOptions as o, SwcPluginResolvedConfig as r, __ΩSwcPluginResolvedConfig as s, SwcPluginContext as t };
|
|
25
|
+
//# sourceMappingURL=plugin-BZj5kStn.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-BZj5kStn.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAuBY,gBAAA,GAAmB,QAAQ,KAAK;KAEhC,mBAAA,GAAsB;EAFtB,SAAA,CAAA,EAAA;IAAgC,GAAA,CAAA,EAIlC,gBAJkC;EAAL,CAAA;CAAR;AAAO,KAQ1B,uBAAA,GAA0B,cARA,GAAA;EAE1B,SAAA,CAAA,EAAA;IAMA,GAAA,CAAA,EAEF,gBAFyB;EAMvB,CAAA;CACc;AAA0B,KADxC,gBACwC,CAAA,wBAA1B,uBAA0B,GAAA,uBAAA,CAAA,GAChD,aADgD,CAClC,eADkC,CAAA;AAClC,mCAAA,GAAA,EAAA;AAAd,sCAAA,GAAA,EAAA;AAAa,0CAAA,GAAA,EAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Options } from "@swc/core";
|
|
2
|
+
import { UserConfig } from "powerlines/types/config";
|
|
3
|
+
import { PluginContext } from "powerlines/types/context";
|
|
4
|
+
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
+
|
|
6
|
+
//#region src/types/plugin.d.ts
|
|
7
|
+
type SwcPluginOptions = Partial<Omit<Options, "filename">>;
|
|
8
|
+
type SwcPluginUserConfig = UserConfig & {
|
|
9
|
+
transform?: {
|
|
10
|
+
swc?: SwcPluginOptions;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type SwcPluginResolvedConfig = ResolvedConfig & {
|
|
14
|
+
transform?: {
|
|
15
|
+
swc?: SwcPluginOptions;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
type SwcPluginContext<TResolvedConfig extends SwcPluginResolvedConfig = SwcPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
19
|
+
declare type __ΩSwcPluginOptions = any[];
|
|
20
|
+
declare type __ΩSwcPluginUserConfig = any[];
|
|
21
|
+
declare type __ΩSwcPluginResolvedConfig = any[];
|
|
22
|
+
declare type __ΩSwcPluginContext = any[];
|
|
23
|
+
//#endregion
|
|
24
|
+
export { __ΩSwcPluginContext as a, __ΩSwcPluginUserConfig as c, SwcPluginUserConfig as i, SwcPluginOptions as n, __ΩSwcPluginOptions as o, SwcPluginResolvedConfig as r, __ΩSwcPluginResolvedConfig as s, SwcPluginContext as t };
|
|
25
|
+
//# sourceMappingURL=plugin-IyIHe2lt.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-IyIHe2lt.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAuBY,gBAAA,GAAmB,QAAQ,KAAK;KAEhC,mBAAA,GAAsB;EAFtB,SAAA,CAAA,EAAA;IAAgC,GAAA,CAAA,EAIlC,gBAJkC;EAAL,CAAA;CAAR;AAAO,KAQ1B,uBAAA,GAA0B,cARA,GAAA;EAE1B,SAAA,CAAA,EAAA;IAMA,GAAA,CAAA,EAEF,gBAFyB;EAMvB,CAAA;CACc;AAA0B,KADxC,gBACwC,CAAA,wBAA1B,uBAA0B,GAAA,uBAAA,CAAA,GAChD,aADgD,CAClC,eADkC,CAAA;AAClC,mCAAA,GAAA,EAAA;AAAd,sCAAA,GAAA,EAAA;AAAa,0CAAA,GAAA,EAAA"}
|
package/dist/types/index.cjs
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { SwcPluginContext,
|
|
1
|
+
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "../plugin-IyIHe2lt.cjs";
|
|
2
|
+
import "../index-CEgs-Dz2.cjs";
|
|
2
3
|
export { SwcPluginContext, SwcPluginOptions, SwcPluginResolvedConfig, SwcPluginUserConfig, __ΩSwcPluginContext, __ΩSwcPluginOptions, __ΩSwcPluginResolvedConfig, __ΩSwcPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { SwcPluginContext,
|
|
1
|
+
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "../plugin-BZj5kStn.mjs";
|
|
2
|
+
import "../index-BgAdqTbb.mjs";
|
|
2
3
|
export { SwcPluginContext, SwcPluginOptions, SwcPluginResolvedConfig, SwcPluginUserConfig, __ΩSwcPluginContext, __ΩSwcPluginOptions, __ΩSwcPluginResolvedConfig, __ΩSwcPluginUserConfig };
|
package/dist/types/index.mjs
CHANGED
package/dist/types/plugin.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('../plugin-DHXHjv16.cjs');
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,24 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UserConfig } from "powerlines/types/config";
|
|
3
|
-
import { PluginContext } from "powerlines/types/context";
|
|
4
|
-
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
-
|
|
6
|
-
//#region src/types/plugin.d.ts
|
|
7
|
-
type SwcPluginOptions = Partial<Omit<Options, "filename">>;
|
|
8
|
-
type SwcPluginUserConfig = UserConfig & {
|
|
9
|
-
transform?: {
|
|
10
|
-
swc?: SwcPluginOptions;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
type SwcPluginResolvedConfig = ResolvedConfig & {
|
|
14
|
-
transform?: {
|
|
15
|
-
swc?: SwcPluginOptions;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
type SwcPluginContext<TResolvedConfig extends SwcPluginResolvedConfig = SwcPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
19
|
-
declare type __ΩSwcPluginOptions = any[];
|
|
20
|
-
declare type __ΩSwcPluginUserConfig = any[];
|
|
21
|
-
declare type __ΩSwcPluginResolvedConfig = any[];
|
|
22
|
-
declare type __ΩSwcPluginContext = any[];
|
|
23
|
-
//#endregion
|
|
1
|
+
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "../plugin-IyIHe2lt.cjs";
|
|
24
2
|
export { SwcPluginContext, SwcPluginOptions, SwcPluginResolvedConfig, SwcPluginUserConfig, __ΩSwcPluginContext, __ΩSwcPluginOptions, __ΩSwcPluginResolvedConfig, __ΩSwcPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,24 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UserConfig } from "powerlines/types/config";
|
|
3
|
-
import { PluginContext } from "powerlines/types/context";
|
|
4
|
-
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
5
|
-
|
|
6
|
-
//#region src/types/plugin.d.ts
|
|
7
|
-
type SwcPluginOptions = Partial<Omit<Options, "filename">>;
|
|
8
|
-
type SwcPluginUserConfig = UserConfig & {
|
|
9
|
-
transform?: {
|
|
10
|
-
swc?: SwcPluginOptions;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
type SwcPluginResolvedConfig = ResolvedConfig & {
|
|
14
|
-
transform?: {
|
|
15
|
-
swc?: SwcPluginOptions;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
type SwcPluginContext<TResolvedConfig extends SwcPluginResolvedConfig = SwcPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
19
|
-
declare type __ΩSwcPluginOptions = any[];
|
|
20
|
-
declare type __ΩSwcPluginUserConfig = any[];
|
|
21
|
-
declare type __ΩSwcPluginResolvedConfig = any[];
|
|
22
|
-
declare type __ΩSwcPluginContext = any[];
|
|
23
|
-
//#endregion
|
|
1
|
+
import { a as __ΩSwcPluginContext, c as __ΩSwcPluginUserConfig, i as SwcPluginUserConfig, n as SwcPluginOptions, o as __ΩSwcPluginOptions, r as SwcPluginResolvedConfig, s as __ΩSwcPluginResolvedConfig, t as SwcPluginContext } from "../plugin-BZj5kStn.mjs";
|
|
24
2
|
export { SwcPluginContext, SwcPluginOptions, SwcPluginResolvedConfig, SwcPluginUserConfig, __ΩSwcPluginContext, __ΩSwcPluginOptions, __ΩSwcPluginResolvedConfig, __ΩSwcPluginUserConfig };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-swc",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.249",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to transform project code with SWC.",
|
|
6
6
|
"repository": {
|
|
@@ -91,13 +91,13 @@
|
|
|
91
91
|
"dependencies": {
|
|
92
92
|
"@swc/core": "^1.15.10",
|
|
93
93
|
"defu": "^6.1.4",
|
|
94
|
-
"powerlines": "^0.38.
|
|
94
|
+
"powerlines": "^0.38.7"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
97
|
+
"@powerlines/plugin-plugin": "^0.12.191",
|
|
98
98
|
"@types/node": "^24.10.9"
|
|
99
99
|
},
|
|
100
100
|
"publishConfig": { "access": "public" },
|
|
101
101
|
"types": "./dist/index.d.cts",
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "d389997536baee28d116675d7916d9bfa5596dce"
|
|
103
103
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
-
value: mod,
|
|
24
|
-
enumerable: true
|
|
25
|
-
}) : target, mod));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
|
|
29
|
-
exports.__toESM = __toESM;
|