@powerlines/plugin-swc 0.5.8 → 0.5.9
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-BBUp8QFO.d.cts +1318 -0
- package/dist/index-BBUp8QFO.d.ts +1318 -0
- package/dist/src/index.cjs +7 -0
- package/dist/src/index.d.cts +33 -0
- package/dist/src/index.d.ts +33 -0
- package/dist/src/index.js +7 -0
- package/dist/types/index.cjs +1 -0
- package/dist/types/index.d.cts +22 -0
- package/dist/types/index.d.ts +22 -0
- package/dist/types/index.js +1 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +22 -0
- package/dist/types/plugin.d.ts +22 -0
- package/dist/types/plugin.js +0 -0
- package/package.json +7 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var core=require('@swc/core'),s=require('defu'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var s__default=/*#__PURE__*/_interopDefault(s);/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
var e=Object.defineProperty;var r=(t,o)=>e(t,"name",{value:o,configurable:true});const u=r((t={})=>({name:"swc",config(){return {transform:{swc:s__default.default(t,{outputPath:this.config.output.outputPath,cwd:this.config.projectRoot,envName:this.config.mode,configFile:false})}}},async transform(o,n){const i=await core.transform(o,{...this.config.transform.swc,filename:n});return {id:n,code:i.code,map:i.map}}}),"plugin");var S=u;exports.default=S;exports.plugin=u;Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { S as SwcPluginContext, a as SwcPluginOptions, P as Plugin } from '../index-BBUp8QFO.cjs';
|
|
2
|
+
export { c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-BBUp8QFO.cjs';
|
|
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/types/package-json';
|
|
13
|
+
import 'jiti';
|
|
14
|
+
import 'oxc-parser';
|
|
15
|
+
import 'semver';
|
|
16
|
+
import 'unplugin';
|
|
17
|
+
import '@stryke/types/tsconfig';
|
|
18
|
+
import 'typescript';
|
|
19
|
+
import '@stryke/json/types';
|
|
20
|
+
import 'memfs';
|
|
21
|
+
import 'node:fs';
|
|
22
|
+
import 'unionfs';
|
|
23
|
+
import '@stryke/types/array';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A Powerlines plugin to integrate SWC for code transformation.
|
|
27
|
+
*
|
|
28
|
+
* @param options - The plugin options.
|
|
29
|
+
* @returns A Powerlines plugin instance.
|
|
30
|
+
*/
|
|
31
|
+
declare const plugin: <TContext extends SwcPluginContext = SwcPluginContext>(options?: SwcPluginOptions) => Plugin<TContext>;
|
|
32
|
+
|
|
33
|
+
export { SwcPluginContext, SwcPluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { S as SwcPluginContext, a as SwcPluginOptions, P as Plugin } from '../index-BBUp8QFO.js';
|
|
2
|
+
export { c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-BBUp8QFO.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/types/package-json';
|
|
13
|
+
import 'jiti';
|
|
14
|
+
import 'oxc-parser';
|
|
15
|
+
import 'semver';
|
|
16
|
+
import 'unplugin';
|
|
17
|
+
import '@stryke/types/tsconfig';
|
|
18
|
+
import 'typescript';
|
|
19
|
+
import '@stryke/json/types';
|
|
20
|
+
import 'memfs';
|
|
21
|
+
import 'node:fs';
|
|
22
|
+
import 'unionfs';
|
|
23
|
+
import '@stryke/types/array';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A Powerlines plugin to integrate SWC for code transformation.
|
|
27
|
+
*
|
|
28
|
+
* @param options - The plugin options.
|
|
29
|
+
* @returns A Powerlines plugin instance.
|
|
30
|
+
*/
|
|
31
|
+
declare const plugin: <TContext extends SwcPluginContext = SwcPluginContext>(options?: SwcPluginOptions) => Plugin<TContext>;
|
|
32
|
+
|
|
33
|
+
export { SwcPluginContext, SwcPluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {transform}from'@swc/core';import s from'defu';export*from'./types';/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
var e=Object.defineProperty;var r=(t,o)=>e(t,"name",{value:o,configurable:true});const u=r((t={})=>({name:"swc",config(){return {transform:{swc:s(t,{outputPath:this.config.output.outputPath,cwd:this.config.projectRoot,envName:this.config.mode,configFile:false})}}},async transform(o,n){const i=await transform(o,{...this.config.transform.swc,filename:n});return {id:n,code:i.code,map:i.map}}}),"plugin");var d=u;export{d as default,u as plugin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var plugin=require('./plugin');Object.keys(plugin).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return plugin[k]}})});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-BBUp8QFO.cjs';
|
|
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/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-BBUp8QFO.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/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from'./plugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import '@swc/core';
|
|
2
|
+
export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-BBUp8QFO.cjs';
|
|
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/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import '@swc/core';
|
|
2
|
+
export { S as SwcPluginContext, a as SwcPluginOptions, c as SwcPluginResolvedConfig, b as SwcPluginUserConfig } from '../index-BBUp8QFO.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/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
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.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to transform project code with SWC.",
|
|
6
6
|
"repository": {
|
|
@@ -127,15 +127,15 @@
|
|
|
127
127
|
"files": ["dist/**/*"],
|
|
128
128
|
"keywords": ["swc", "powerlines", "storm-software", "powerlines-plugin"],
|
|
129
129
|
"dependencies": {
|
|
130
|
-
"@swc/core": "^1.
|
|
130
|
+
"@swc/core": "^1.15.0",
|
|
131
131
|
"defu": "^6.1.4",
|
|
132
|
-
"powerlines": "^0.
|
|
132
|
+
"powerlines": "^0.15.0"
|
|
133
133
|
},
|
|
134
134
|
"devDependencies": {
|
|
135
|
-
"@powerlines/nx": "^0.
|
|
136
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
137
|
-
"@types/node": "^22.
|
|
135
|
+
"@powerlines/nx": "^0.10.0",
|
|
136
|
+
"@powerlines/plugin-plugin": "^0.11.8",
|
|
137
|
+
"@types/node": "^22.19.0"
|
|
138
138
|
},
|
|
139
139
|
"publishConfig": { "access": "public" },
|
|
140
|
-
"gitHead": "
|
|
140
|
+
"gitHead": "b64f9a9d53b6eb8054c361da347f6623a7ba9e45"
|
|
141
141
|
}
|