@powerlines/plugin-swc 0.5.56 → 0.5.58
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/README.md +8 -2
- package/dist/index-BgAdqTbb.d.mts +1 -0
- package/dist/index-CEgs-Dz2.d.cts +1 -0
- package/dist/index.cjs +1 -7
- package/dist/index.d.cts +7 -26
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +15 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-0DvTYD6D.d.cts +1659 -0
- package/dist/plugin-0DvTYD6D.d.cts.map +1 -0
- package/dist/plugin-Bvn-he2n.mjs +1 -0
- package/dist/plugin-D_MOT-RB.d.mts +1659 -0
- package/dist/plugin-D_MOT-RB.d.mts.map +1 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +3 -23
- package/dist/types/index.d.mts +3 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +1 -1
- package/dist/types/plugin.d.cts +2 -23
- package/dist/types/plugin.d.mts +2 -0
- package/dist/types/plugin.mjs +1 -0
- package/dist/types-B7VYa_Pp.mjs +1 -0
- package/dist/types-DHkg7xmX.cjs +0 -0
- package/package.json +47 -29
- package/dist/index-BNZRoIES.d.cts +0 -1570
- package/dist/index-BNZRoIES.d.ts +0 -1570
- package/dist/index.d.ts +0 -34
- package/dist/index.js +0 -7
- package/dist/types/index.d.ts +0 -23
- package/dist/types/index.js +0 -1
- package/dist/types/plugin.d.ts +0 -23
- /package/dist/{types/plugin.js → plugin-DHXHjv16.cjs} +0 -0
package/dist/index.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { S as SwcPluginContext, a as SwcPluginOptions, P as Plugin } from './index-BNZRoIES.js';
|
|
2
|
-
export { c as SwcPluginResolvedConfig, b as SwcPluginUserConfig, f as __ΩSwcPluginContext, _ as __ΩSwcPluginOptions, e as __ΩSwcPluginResolvedConfig, d as __ΩSwcPluginUserConfig } from './index-BNZRoIES.js';
|
|
3
|
-
import '@swc/core';
|
|
4
|
-
import '@storm-software/build-tools/types';
|
|
5
|
-
import '@storm-software/config-tools/types';
|
|
6
|
-
import '@storm-software/config/types';
|
|
7
|
-
import '@stryke/types/base';
|
|
8
|
-
import '@stryke/types/configuration';
|
|
9
|
-
import '@stryke/types/file';
|
|
10
|
-
import 'vite';
|
|
11
|
-
import '@stryke/env/get-env-paths';
|
|
12
|
-
import '@stryke/http/fetch';
|
|
13
|
-
import '@stryke/types/package-json';
|
|
14
|
-
import 'jiti';
|
|
15
|
-
import 'magic-string';
|
|
16
|
-
import 'oxc-parser';
|
|
17
|
-
import 'semver';
|
|
18
|
-
import 'ts-morph';
|
|
19
|
-
import 'undici';
|
|
20
|
-
import 'unplugin';
|
|
21
|
-
import '@stryke/fs/resolve';
|
|
22
|
-
import '@stryke/types/tsconfig';
|
|
23
|
-
import 'typescript';
|
|
24
|
-
import '@stryke/types/array';
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* A Powerlines plugin to integrate SWC for code transformation.
|
|
28
|
-
*
|
|
29
|
-
* @param options - The plugin options.
|
|
30
|
-
* @returns A Powerlines plugin instance.
|
|
31
|
-
*/
|
|
32
|
-
declare const plugin: <TContext extends SwcPluginContext = SwcPluginContext>(options?: SwcPluginOptions) => Plugin<TContext>;
|
|
33
|
-
|
|
34
|
-
export { SwcPluginContext, SwcPluginOptions, plugin as default, plugin };
|
package/dist/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import {transform}from'@swc/core';import f from'defu';export*from'./types';/*****************************************
|
|
2
|
-
*
|
|
3
|
-
* ⚡ Built by Storm Software
|
|
4
|
-
*
|
|
5
|
-
*****************************************/
|
|
6
|
-
|
|
7
|
-
var i=Object.defineProperty;var e=(t,o)=>i(t,"name",{value:o,configurable:true});const m=e((t={})=>({name:"swc",config(){return {transform:{swc:f(t,{outputPath:this.config.output.buildPath,cwd:this.config.projectRoot,envName:this.config.mode,configFile:false})}}},async transform(o,n){const r=await transform(o,{...this.config.transform.swc,filename:n});return {id:n,code:r.code,map:r.map}}}),"plugin");var h=m;export{h as default,m as plugin};
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig, f as __ΩSwcPluginContext, _ as __ΩSwcPluginOptions, e as __ΩSwcPluginResolvedConfig, d as __ΩSwcPluginUserConfig } from '../index-BNZRoIES.js';
|
|
2
|
-
import '@swc/core';
|
|
3
|
-
import '@storm-software/build-tools/types';
|
|
4
|
-
import '@storm-software/config-tools/types';
|
|
5
|
-
import '@storm-software/config/types';
|
|
6
|
-
import '@stryke/types/base';
|
|
7
|
-
import '@stryke/types/configuration';
|
|
8
|
-
import '@stryke/types/file';
|
|
9
|
-
import 'vite';
|
|
10
|
-
import '@stryke/env/get-env-paths';
|
|
11
|
-
import '@stryke/http/fetch';
|
|
12
|
-
import '@stryke/types/package-json';
|
|
13
|
-
import 'jiti';
|
|
14
|
-
import 'magic-string';
|
|
15
|
-
import 'oxc-parser';
|
|
16
|
-
import 'semver';
|
|
17
|
-
import 'ts-morph';
|
|
18
|
-
import 'undici';
|
|
19
|
-
import 'unplugin';
|
|
20
|
-
import '@stryke/fs/resolve';
|
|
21
|
-
import '@stryke/types/tsconfig';
|
|
22
|
-
import 'typescript';
|
|
23
|
-
import '@stryke/types/array';
|
package/dist/types/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export*from'./plugin';
|
package/dist/types/plugin.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import '@swc/core';
|
|
2
|
-
export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig, f as __ΩSwcPluginContext, _ as __ΩSwcPluginOptions, e as __ΩSwcPluginResolvedConfig, d as __ΩSwcPluginUserConfig } from '../index-BNZRoIES.js';
|
|
3
|
-
import '@storm-software/build-tools/types';
|
|
4
|
-
import '@storm-software/config-tools/types';
|
|
5
|
-
import '@storm-software/config/types';
|
|
6
|
-
import '@stryke/types/base';
|
|
7
|
-
import '@stryke/types/configuration';
|
|
8
|
-
import '@stryke/types/file';
|
|
9
|
-
import 'vite';
|
|
10
|
-
import '@stryke/env/get-env-paths';
|
|
11
|
-
import '@stryke/http/fetch';
|
|
12
|
-
import '@stryke/types/package-json';
|
|
13
|
-
import 'jiti';
|
|
14
|
-
import 'magic-string';
|
|
15
|
-
import 'oxc-parser';
|
|
16
|
-
import 'semver';
|
|
17
|
-
import 'ts-morph';
|
|
18
|
-
import 'undici';
|
|
19
|
-
import 'unplugin';
|
|
20
|
-
import '@stryke/fs/resolve';
|
|
21
|
-
import '@stryke/types/tsconfig';
|
|
22
|
-
import 'typescript';
|
|
23
|
-
import '@stryke/types/array';
|
|
File without changes
|