runtime-compiler 2.0.10 → 2.0.11

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/index.d.ts CHANGED
@@ -32,15 +32,11 @@ export declare const getDependency: <T>(idx: ExportedDependency<T>) => T;
32
32
  /**
33
33
  * Add extra code after dependency building
34
34
  */
35
- export declare let extraCode: string;
36
- /**
37
- * Add extra code after dependency building
38
- */
39
35
  export declare const addExtraCode: (str: string) => void;
40
36
  /**
41
37
  * Inject an external dependency.
42
38
  */
43
- export declare const injectExternalDependency: (val: any) => string;
39
+ export declare const injectExternalDependency: <T>(val: T) => LocalDependency<T>;
44
40
  /**
45
41
  * Get external dependency names.
46
42
  * Use in `default` and `build` mode.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runtime-compiler",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Universal compiler system",
5
5
  "keywords": [],
6
6
  "repository": {},
@@ -8,13 +8,13 @@
8
8
  "license": "MIT",
9
9
  "type": "module",
10
10
  "exports": {
11
- ".": "./index.js",
12
- "./config": "./config/index.js",
13
11
  "./call": "./call.js",
12
+ "./utils": "./utils.js",
14
13
  "./config/loader/hydrate": "./config/loader/hydrate.js",
14
+ ".": "./index.js",
15
15
  "./config/mode/build": "./config/mode/build.js",
16
- "./utils": "./utils.js",
17
16
  "./config/mode/hydrate": "./config/mode/hydrate.js",
17
+ "./config": "./config/index.js",
18
18
  "./config/loader/build": "./config/loader/build.js"
19
19
  }
20
20
  }
package/utils.d.ts CHANGED
@@ -3,12 +3,12 @@
3
3
  */
4
4
  export declare const noOp: () => string;
5
5
  /**
6
- * Inject a constant.
6
+ * Inject a serializable constant.
7
7
  * Use in `default` and `build` mode.
8
8
  */
9
9
  export declare const injectConst: (val: any) => string;
10
10
  /**
11
- * Inject an argument list.
11
+ * Inject a serializable argument list.
12
12
  * Use in `default` and `build` mode.
13
13
  */
14
14
  export declare const injectArgsList: (list: any[]) => string;