@hot-updater/rock 0.20.4

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,26 @@
1
+ import { BasePluginArgs, BuildPlugin, BuildPluginConfig } from "@hot-updater/plugin-core";
2
+
3
+ //#region src/index.d.ts
4
+ interface RockPluginConfig extends BuildPluginConfig {
5
+ /**
6
+ * @default "index.js"
7
+ * The entry file to bundle.
8
+ */
9
+ entryFile?: string;
10
+ /**
11
+ * @default false
12
+ * Whether to generate sourcemap for the bundle.
13
+ */
14
+ sourcemap?: boolean;
15
+ /**
16
+ * Whether to use Hermes to compile the bundle
17
+ * Since React Native v0.70+, Hermes is enabled by default, so it's recommended to enable it.
18
+ * @default true
19
+ */
20
+ hermes?: boolean;
21
+ }
22
+ declare const rock: (config?: RockPluginConfig) => ({
23
+ cwd
24
+ }: BasePluginArgs) => BuildPlugin;
25
+ //#endregion
26
+ export { RockPluginConfig, rock };
@@ -0,0 +1,26 @@
1
+ import { BasePluginArgs, BuildPlugin, BuildPluginConfig } from "@hot-updater/plugin-core";
2
+
3
+ //#region src/index.d.ts
4
+ interface RockPluginConfig extends BuildPluginConfig {
5
+ /**
6
+ * @default "index.js"
7
+ * The entry file to bundle.
8
+ */
9
+ entryFile?: string;
10
+ /**
11
+ * @default false
12
+ * Whether to generate sourcemap for the bundle.
13
+ */
14
+ sourcemap?: boolean;
15
+ /**
16
+ * Whether to use Hermes to compile the bundle
17
+ * Since React Native v0.70+, Hermes is enabled by default, so it's recommended to enable it.
18
+ * @default true
19
+ */
20
+ hermes?: boolean;
21
+ }
22
+ declare const rock: (config?: RockPluginConfig) => ({
23
+ cwd
24
+ }: BasePluginArgs) => BuildPlugin;
25
+ //#endregion
26
+ export { RockPluginConfig, rock };