@intlify/message-compiler 11.1.2 → 12.0.0-alpha.2

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2020 kazuya kawaguchi
3
+ Copyright (c) 2020-present kazuya kawaguchi and contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
@@ -21,7 +21,7 @@ declare interface CodeGenResult {
21
21
  map?: RawSourceMap;
22
22
  }
23
23
 
24
- export declare const COMPILE_ERROR_CODES_EXTEND_POINT = 17;
24
+ export declare const COMPILE_ERROR_CODES_EXTEND_POINT: number;
25
25
 
26
26
  export declare type CompileDomain = 'tokenizer' | 'parser' | 'generator' | 'transformer' | 'optimizer' | 'minifier';
27
27
 
@@ -63,7 +63,7 @@ export declare interface CompileErrorOptions {
63
63
 
64
64
  export declare type CompileOptions = {
65
65
  optimize?: boolean;
66
- minify?: boolean;
66
+ mangle?: boolean;
67
67
  jit?: boolean;
68
68
  } & TransformOptions & CodeGenOptions & ParserOptions & TokenizeOptions;
69
69
 
@@ -133,6 +133,8 @@ export declare interface LiteralNode extends Node_2 {
133
133
 
134
134
  export declare const LOCATION_STUB: SourceLocation;
135
135
 
136
+ export declare function mangle(node: Node_2): void;
137
+
136
138
  declare type MessageElementNode = TextNode | NamedNode | ListNode | LiteralNode | LinkedNode;
137
139
 
138
140
  export declare interface MessageNode extends Node_2 {
@@ -172,6 +174,8 @@ export declare const enum NodeTypes {
172
174
  Literal = 9
173
175
  }
174
176
 
177
+ export declare function optimize(ast: ResourceNode): ResourceNode;
178
+
175
179
  export declare interface Parser {
176
180
  parse(source: string): ResourceNode;
177
181
  }