@marko/compiler 5.23.6 → 5.24.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.
package/config.d.ts ADDED
@@ -0,0 +1,36 @@
1
+ const Config: {
2
+ output?: "html" | "dom" | "hydrate" | "migrate" | "source";
3
+ stripTypes?: boolean;
4
+ runtimeId?: string | null;
5
+ ast?: boolean;
6
+ code?: boolean;
7
+ writeVersionComment?: boolean;
8
+ ignoreUnrecognizedTags?: boolean;
9
+ sourceMaps?: boolean | "inline" | "both";
10
+ translator?: any;
11
+ fileSystem?: typeof import("fs");
12
+ modules?: "esm" | "cjs";
13
+ resolveVirtualDependency?:
14
+ | ((
15
+ filename: string,
16
+ dep: { virtualPath: string; code: string; map?: SourceMap }
17
+ ) => string)
18
+ | null;
19
+ hydrateIncludeImports?: RegExp | ((request: string) => boolean);
20
+ optimize?: boolean;
21
+ cache?: Map<unknown, unknown>;
22
+ hot?: boolean;
23
+ /** @deprecated */
24
+ meta?: boolean;
25
+ babelConfig?: {
26
+ ast?: boolean | null;
27
+ code?: boolean | null;
28
+ comments?: boolean | null;
29
+ compact?: boolean | "auto" | null;
30
+ caller?: { name?: string; [x: string]: unknown };
31
+ minified?: boolean | null;
32
+ [x: string]: unknown;
33
+ };
34
+ };
35
+
36
+ export = Config;
package/config.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require("./dist/config");
package/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { SourceMap } from "magic-string";
2
2
  import { TaglibLookup } from "@marko/babel-utils";
3
3
  import * as types from "./babel-types";
4
- export { types };
4
+ import Config from "./config";
5
+ export { type Config, types };
5
6
 
6
7
  type Dep = {
7
8
  type: string;
@@ -14,41 +15,6 @@ type Dep = {
14
15
  [x: string]: unknown;
15
16
  };
16
17
 
17
- export type Config = {
18
- output?: "html" | "dom" | "hydrate" | "migrate" | "source";
19
- stripTypes?: boolean;
20
- runtimeId?: string | null;
21
- ast?: boolean;
22
- code?: boolean;
23
- writeVersionComment?: boolean;
24
- ignoreUnrecognizedTags?: boolean;
25
- sourceMaps?: boolean | "inline" | "both";
26
- translator?: any;
27
- fileSystem?: typeof import("fs");
28
- modules?: "esm" | "cjs";
29
- resolveVirtualDependency?:
30
- | ((
31
- filename: string,
32
- dep: { virtualPath: string; code: string; map?: SourceMap }
33
- ) => string)
34
- | null;
35
- hydrateIncludeImports?: RegExp | ((request: string) => boolean);
36
- optimize?: boolean;
37
- cache?: Map<unknown, unknown>;
38
- hot?: boolean;
39
- /** @deprecated */
40
- meta?: boolean;
41
- babelConfig?: {
42
- ast?: boolean | null;
43
- code?: boolean | null;
44
- comments?: boolean | null;
45
- compact?: boolean | "auto" | null;
46
- caller?: { name?: string; [x: string]: unknown };
47
- minified?: boolean | null;
48
- [x: string]: unknown;
49
- };
50
- };
51
-
52
18
  export type MarkoMeta = {
53
19
  id: string;
54
20
  component?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marko/compiler",
3
3
  "description": "Marko template to JS compiler.",
4
- "version": "5.23.6",
4
+ "version": "5.24.0",
5
5
  "author": "Dylan Piercey <dpiercey@ebay.com>",
6
6
  "bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md",
7
7
  "dependencies": {
@@ -34,6 +34,8 @@
34
34
  },
35
35
  "files": [
36
36
  "dist",
37
+ "config.js",
38
+ "config.d.ts",
37
39
  "modules.js",
38
40
  "index.d.ts",
39
41
  "babel-types.d.ts",