@mbler/mcx-core 0.0.2 → 0.0.3-alpha.r202603291200
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.d.ts +5 -2
- package/dist/index.js +47 -1381
- package/dist/index.js.map +1 -1
- package/dist/types/compile-mcx/compiler/main.d.ts +2 -0
- package/dist/types/compile-mcx/index.d.ts +1 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/transforms/config.d.ts +1 -0
- package/package.json +7 -7
- package/dist/types/compile-mcx/compiler/bundler.d.ts +0 -2
- package/dist/types/compile-mcx/compiler/str.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CompileOpt } from '@mbler/mcx-types';
|
|
2
2
|
import * as t from '@babel/types';
|
|
3
3
|
import { Expression, CallExpression, SpreadElement, ArgumentPlaceholder, ImportDeclaration, ExportNamedDeclaration, ExportAllDeclaration, ExportDefaultDeclaration } from '@babel/types';
|
|
4
|
-
import { TransformPluginContext } from 'rollup';
|
|
4
|
+
import { Plugin, TransformPluginContext } from 'rollup';
|
|
5
5
|
|
|
6
6
|
interface BaseToken {
|
|
7
7
|
data: string;
|
|
@@ -153,6 +153,8 @@ interface MCXstructureLoc {
|
|
|
153
153
|
}>;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
declare function mcxPlugn(opt: CompileOpt): Plugin;
|
|
157
|
+
|
|
156
158
|
declare function CompileMcxDir(BuildOpt: CompileOpt): Promise<void>;
|
|
157
159
|
|
|
158
160
|
declare class McxUtlis {
|
|
@@ -246,7 +248,8 @@ declare const _default: {
|
|
|
246
248
|
};
|
|
247
249
|
Compiler: typeof Compiler;
|
|
248
250
|
utils: typeof McxUtlis;
|
|
251
|
+
plugin: typeof mcxPlugn;
|
|
249
252
|
transform: typeof transform;
|
|
250
253
|
};
|
|
251
254
|
|
|
252
|
-
export { _default$1 as AST, Compiler, types as PUBTYPE, CompileMcxDir as compile, _default as default, transform, McxUtlis as utils };
|
|
255
|
+
export { _default$1 as AST, Compiler, types as PUBTYPE, CompileMcxDir as compile, _default as default, mcxPlugn as plugin, transform, McxUtlis as utils };
|