@zessjs/compiler 1.0.0

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.
@@ -0,0 +1,17 @@
1
+ export { ESTree } from 'meriyah';
2
+ import { RawSourceMap } from 'source-map';
3
+ export { RawSourceMap } from 'source-map';
4
+
5
+ type CompilerOptions = {
6
+ modulePath?: string
7
+ file?: string
8
+ sourceRoot?: string
9
+ sourcemap?: RawSourceMap
10
+ };
11
+ type CompilerResult = {
12
+ code: string
13
+ map: RawSourceMap
14
+ };
15
+ declare function compile(code: string, options?: CompilerOptions): CompilerResult;
16
+
17
+ export { compile };
@@ -0,0 +1,17 @@
1
+ export { ESTree } from 'meriyah';
2
+ import { RawSourceMap } from 'source-map';
3
+ export { RawSourceMap } from 'source-map';
4
+
5
+ type CompilerOptions = {
6
+ modulePath?: string
7
+ file?: string
8
+ sourceRoot?: string
9
+ sourcemap?: RawSourceMap
10
+ };
11
+ type CompilerResult = {
12
+ code: string
13
+ map: RawSourceMap
14
+ };
15
+ declare function compile(code: string, options?: CompilerOptions): CompilerResult;
16
+
17
+ export { compile };