rollipop 1.0.0-alpha.34 → 1.0.0-beta.1
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/dist/config/index.d.ts +2 -2
- package/dist/config/types.d.ts +24 -7
- package/dist/constants.js +1 -1
- package/dist/core/rolldown.js +28 -15
- package/dist/index.d.ts +3 -3
- package/dist/package.js +1 -1
- package/dist/server/devframe/index.js +1 -1
- package/dist/server/devframe/setup.js +1 -1
- package/dist/storage/file-storage.js +1 -1
- package/dist/types.d.ts +1 -0
- package/package.json +3 -3
package/dist/config/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RolldownOptions, RolldownOptionsConfig, RolldownOptionsContext, RolldownOptionsFunction } from "../core/rolldown.js";
|
|
2
|
-
import { AliasConfig, AnalyzerConfig, BabelTransformConfig, Config, DevConfig, ExperimentalConfig, HmrConfig, OptimizationConfig, OutputConfig, PluginOption, Polyfill, PolyfillOptions, PolyfillType, PolyfillWithCode, PolyfillWithPath, ReactNativeConfig, ResolveConfig,
|
|
2
|
+
import { AliasConfig, AnalyzerConfig, BabelTransformConfig, Config, DevConfig, ExperimentalConfig, FlowConfig, HmrConfig, JsxOptions, OptimizationConfig, OutputConfig, PluginOption, Polyfill, PolyfillOptions, PolyfillType, PolyfillWithCode, PolyfillWithPath, ReactNativeConfig, ResolveConfig, RollipopReactNativeSwcConfig as SwcConfig, RollipopReactNativeWorkletsConfig as WorkletsConfig, SwcTransformConfig, TransformConfig, TransformRule, WatcherConfig } from "./types.js";
|
|
3
3
|
import { DefineConfigContext, DynamicUserConfig, UserConfig, defineConfig } from "./define-config.js";
|
|
4
4
|
import { LoadConfigOptions, flattenPluginOption, invokeConfigResolved, loadConfig, resolvePluginConfig } from "./load-config.js";
|
|
5
5
|
import { PluginFlattenConfig, mergeConfig } from "./merge-config.js";
|
|
6
6
|
import { DefaultConfig, InternalConfig, ResolvedConfig, getDefaultConfig } from "./defaults.js";
|
|
7
|
-
export { type AliasConfig, type AnalyzerConfig, type BabelTransformConfig, type Config, DefaultConfig, DefineConfigContext, type DevConfig, DynamicUserConfig, type ExperimentalConfig, type HmrConfig, InternalConfig, LoadConfigOptions, type OptimizationConfig, type OutputConfig, PluginFlattenConfig, type PluginOption, type Polyfill, type PolyfillOptions, type PolyfillType, type PolyfillWithCode, type PolyfillWithPath, type ReactNativeConfig, type ResolveConfig, ResolvedConfig, type RolldownOptions, type RolldownOptionsConfig, type RolldownOptionsContext, type RolldownOptionsFunction, type
|
|
7
|
+
export { type AliasConfig, type AnalyzerConfig, type BabelTransformConfig, type Config, DefaultConfig, DefineConfigContext, type DevConfig, DynamicUserConfig, type ExperimentalConfig, type FlowConfig, type FlowConfig as RollipopReactNativeFlowConfig, type HmrConfig, InternalConfig, type JsxOptions, LoadConfigOptions, type OptimizationConfig, type OutputConfig, PluginFlattenConfig, type PluginOption, type Polyfill, type PolyfillOptions, type PolyfillType, type PolyfillWithCode, type PolyfillWithPath, type ReactNativeConfig, type ResolveConfig, ResolvedConfig, type RolldownOptions, type RolldownOptionsConfig, type RolldownOptionsContext, type RolldownOptionsFunction, type SwcConfig as RollipopReactNativeSwcConfig, type SwcConfig, type WorkletsConfig as RollipopReactNativeWorkletsConfig, type WorkletsConfig, type SwcTransformConfig, type TransformConfig, type TransformRule, UserConfig, type WatcherConfig, defineConfig, flattenPluginOption, getDefaultConfig, invokeConfigResolved, loadConfig, mergeConfig, resolvePluginConfig };
|
package/dist/config/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MaybePromise, NullValue, Reporter } from "../types.js";
|
|
1
|
+
import { ExtractObject, MaybePromise, NullValue, Reporter } from "../types.js";
|
|
2
2
|
import { RolldownOptions, RolldownOptionsConfig, RolldownOptionsContext, RolldownOptionsFunction } from "../core/rolldown.js";
|
|
3
3
|
import { AliasEntry } from "../core/plugins/alias-plugin.js";
|
|
4
4
|
import "../core/plugins/index.js";
|
|
@@ -6,13 +6,14 @@ import { InteractiveCommand } from "../node/commands/start/setup-interactive-mod
|
|
|
6
6
|
import "../node/cli-utils.js";
|
|
7
7
|
import { Plugin } from "../core/plugins/types.js";
|
|
8
8
|
import * as swc from "@swc/core";
|
|
9
|
-
import { DevWatchOptions, RollipopReactNativeFlowConfig, RollipopReactNativeSwcConfig, RollipopReactNativeWorkletsConfig } from "@rollipop/rolldown/experimental";
|
|
9
|
+
import { DevWatchOptions, RollipopReactNativeFlowConfig as FlowConfig, RollipopReactNativeReactConfig, RollipopReactNativeSwcConfig as SwcConfig, RollipopReactNativeWorkletsConfig as WorkletsConfig } from "@rollipop/rolldown/experimental";
|
|
10
10
|
import * as rolldown from "@rollipop/rolldown";
|
|
11
11
|
import { TopLevelFilterExpression } from "@rollipop/rolldown/filter";
|
|
12
12
|
import * as babel from "@babel/core";
|
|
13
13
|
//#region src/config/types.d.ts
|
|
14
14
|
type RolldownExperimentalOptions = NonNullable<rolldown.InputOptions['experimental']>;
|
|
15
15
|
type RolldownTransformOptions = NonNullable<rolldown.InputOptions['transform']>;
|
|
16
|
+
type RolldownJsxOptions = ExtractObject<NonNullable<RolldownTransformOptions['jsx']>>;
|
|
16
17
|
type RollipopManagedInputOption = 'input' | 'plugins' | 'cwd' | 'platform' | 'checks' | 'logLevel' | 'onLog' | 'onwarn' | 'resolve' | 'transform' | 'watch' | 'experimental' | 'id';
|
|
17
18
|
type RollipopManagedOutputOption = 'dir' | 'file' | 'format' | 'codeSplitting' | 'persistentCache';
|
|
18
19
|
export interface Config extends Omit<rolldown.InputOptions, RollipopManagedInputOption> {
|
|
@@ -177,11 +178,20 @@ export type ResolveConfig = Omit<NonNullable<rolldown.InputOptions['resolve']>,
|
|
|
177
178
|
preferNativePlatform?: boolean;
|
|
178
179
|
};
|
|
179
180
|
export type AliasConfig = NonNullable<rolldown.InputOptions['resolve']>['alias'] | AliasEntry[];
|
|
180
|
-
export type TransformConfig = Omit<RolldownTransformOptions, 'cwd' | 'lang' | 'sourceType' | 'plugins'> & {
|
|
181
|
+
export type TransformConfig = Omit<RolldownTransformOptions, 'cwd' | 'lang' | 'sourceType' | 'jsx' | 'plugins'> & {
|
|
182
|
+
/**
|
|
183
|
+
* Controls how JSX syntax is transformed.
|
|
184
|
+
*
|
|
185
|
+
* - If set to `false`, an error will be thrown if JSX syntax is encountered.
|
|
186
|
+
* - If set to `'react'`, JSX syntax will be transformed to classic runtime React code.
|
|
187
|
+
* - If set to `'react-jsx'`, JSX syntax will be transformed to automatic runtime React code.
|
|
188
|
+
* - If set to `'preserve'`, JSX syntax will be preserved as-is.
|
|
189
|
+
*/
|
|
190
|
+
jsx?: false | 'react' | 'react-jsx' | 'preserve' | JsxOptions;
|
|
181
191
|
/**
|
|
182
192
|
* Flow handling configuration for the built-in transform pipeline.
|
|
183
193
|
*/
|
|
184
|
-
flow?:
|
|
194
|
+
flow?: FlowConfig;
|
|
185
195
|
/**
|
|
186
196
|
* Babel transformation configuration.
|
|
187
197
|
*/
|
|
@@ -191,11 +201,18 @@ export type TransformConfig = Omit<RolldownTransformOptions, 'cwd' | 'lang' | 's
|
|
|
191
201
|
*/
|
|
192
202
|
swc?: SwcTransformConfig;
|
|
193
203
|
};
|
|
204
|
+
export type JsxOptions = RolldownJsxOptions & {
|
|
205
|
+
/**
|
|
206
|
+
* React Compiler options forwarded to the native SWC pipeline.
|
|
207
|
+
* Explicit `transform.swc.native.react.compiler` options take precedence.
|
|
208
|
+
*/
|
|
209
|
+
compiler?: RollipopReactNativeReactConfig['compiler'];
|
|
210
|
+
};
|
|
194
211
|
export type BabelTransformConfig = {
|
|
195
212
|
rules?: TransformRule<babel.InputOptions>[];
|
|
196
213
|
};
|
|
197
214
|
export type SwcTransformConfig = {
|
|
198
|
-
native?:
|
|
215
|
+
native?: SwcConfig;
|
|
199
216
|
rules?: TransformRule<swc.Options>[];
|
|
200
217
|
};
|
|
201
218
|
export interface TransformRule<T = unknown> {
|
|
@@ -212,7 +229,7 @@ export interface ExperimentalConfig extends RolldownExperimentalOptions {
|
|
|
212
229
|
/**
|
|
213
230
|
* `react-native-worklets` transformation configuration.
|
|
214
231
|
*/
|
|
215
|
-
worklets?:
|
|
232
|
+
worklets?: WorkletsConfig;
|
|
216
233
|
}
|
|
217
234
|
export interface OutputConfig extends Omit<rolldown.OutputOptions, RollipopManagedOutputOption> {}
|
|
218
235
|
export type Polyfill = string | PolyfillWithCode | PolyfillWithPath;
|
|
@@ -306,4 +323,4 @@ export interface AnalyzerConfig {
|
|
|
306
323
|
autoOpen?: boolean;
|
|
307
324
|
}
|
|
308
325
|
//#endregion
|
|
309
|
-
export type { RolldownOptions, RolldownOptionsConfig, RolldownOptionsContext, RolldownOptionsFunction,
|
|
326
|
+
export type { FlowConfig, FlowConfig as RollipopReactNativeFlowConfig, RolldownOptions, RolldownOptionsConfig, RolldownOptionsContext, RolldownOptionsFunction, SwcConfig as RollipopReactNativeSwcConfig, SwcConfig, WorkletsConfig as RollipopReactNativeWorkletsConfig, WorkletsConfig };
|
package/dist/constants.js
CHANGED
|
@@ -20,7 +20,7 @@ var constants_exports = /* @__PURE__ */ __exportAll({
|
|
|
20
20
|
ROLLIPOP_VIRTUAL_ENTRY_ID: () => ROLLIPOP_VIRTUAL_ENTRY_ID,
|
|
21
21
|
ROLLIPOP_VIRTUAL_PREFIX: () => ROLLIPOP_VIRTUAL_PREFIX
|
|
22
22
|
});
|
|
23
|
-
const ROLLIPOP_VERSION = "1.0.0-
|
|
23
|
+
const ROLLIPOP_VERSION = "1.0.0-beta.1";
|
|
24
24
|
const ROLLIPOP_VIRTUAL_PREFIX = "\0rollipop/";
|
|
25
25
|
const ROLLIPOP_VIRTUAL_BOOTSTRAP_ID = `${ROLLIPOP_VIRTUAL_PREFIX}bootstrap`;
|
|
26
26
|
const ROLLIPOP_VIRTUAL_ENTRY_ID = `${ROLLIPOP_VIRTUAL_PREFIX}entry`;
|
package/dist/core/rolldown.js
CHANGED
|
@@ -28,7 +28,7 @@ import { resolutionTopology as resolutionTopologyPlugin } from "./plugins/resolu
|
|
|
28
28
|
import "./plugins/index.js";
|
|
29
29
|
import fs from "node:fs";
|
|
30
30
|
import path from "node:path";
|
|
31
|
-
import { invariant, isNotNil, toMerged } from "es-toolkit";
|
|
31
|
+
import { invariant, isNotNil, mergeWith, toMerged } from "es-toolkit";
|
|
32
32
|
//#region src/core/rolldown.ts
|
|
33
33
|
async function resolveRolldownOptions(context, config, buildOptions, devEngineOptions) {
|
|
34
34
|
const { platform, dev, cache } = buildOptions;
|
|
@@ -45,7 +45,7 @@ async function resolveRolldownOptions(context, config, buildOptions, devEngineOp
|
|
|
45
45
|
const { sourceExtensions, assetExtensions, preferNativePlatform, ...rolldownResolve } = config.resolve;
|
|
46
46
|
const { intro: rolldownIntro, ...rolldownOutput } = config.output;
|
|
47
47
|
const { worklets: _experimentalWorklets, ...rolldownExperimental } = config.experimental;
|
|
48
|
-
const
|
|
48
|
+
const rolldownTransform = resolveRolldownTransformConfig(config.transform);
|
|
49
49
|
const userPlugins = config.plugins;
|
|
50
50
|
const { rolldownAlias, aliasPluginOptions } = resolveAliasPluginOptions(config);
|
|
51
51
|
const mergedResolveOptions = toMerged({ extensions: getResolveExtensions({
|
|
@@ -58,12 +58,10 @@ async function resolveRolldownOptions(context, config, buildOptions, devEngineOp
|
|
|
58
58
|
alias: rolldownAlias
|
|
59
59
|
});
|
|
60
60
|
const defaultTransformOptions = {
|
|
61
|
-
cwd: config.root,
|
|
62
61
|
target: "esnext",
|
|
63
62
|
jsx: {
|
|
64
63
|
runtime: "automatic",
|
|
65
|
-
development: dev
|
|
66
|
-
compiler: void 0
|
|
64
|
+
development: dev
|
|
67
65
|
},
|
|
68
66
|
define: {
|
|
69
67
|
__DEV__: asLiteral(dev),
|
|
@@ -76,7 +74,6 @@ async function resolveRolldownOptions(context, config, buildOptions, devEngineOp
|
|
|
76
74
|
helpers: { mode: "Runtime" }
|
|
77
75
|
};
|
|
78
76
|
const mergedTransformOptions = toMerged(defaultTransformOptions, rolldownTransform);
|
|
79
|
-
applyReactCompilerDefaults(mergedTransformOptions);
|
|
80
77
|
const reactRefreshFilter = resolveReactRefreshFilter(mergedTransformOptions);
|
|
81
78
|
const entryPluginOptions = resolveEntryPluginOptions(config, context);
|
|
82
79
|
const importGlobPluginOptions = resolveImportGlobPluginOptions(config);
|
|
@@ -220,7 +217,7 @@ function resolveReactNativeBuiltinPluginConfig(config) {
|
|
|
220
217
|
envName: config.mode,
|
|
221
218
|
runtimeTarget: config.runtimeTarget,
|
|
222
219
|
flow: config.transform.flow,
|
|
223
|
-
swc: config.transform
|
|
220
|
+
swc: resolveNativeSwcConfig(config.transform),
|
|
224
221
|
worklets: resolveWorkletsConfig(config)
|
|
225
222
|
};
|
|
226
223
|
}
|
|
@@ -232,14 +229,30 @@ function resolveWorkletsConfig(config) {
|
|
|
232
229
|
pluginVersion: resolvePackageJson(config.root, "react-native-worklets")?.version
|
|
233
230
|
}, worklets);
|
|
234
231
|
}
|
|
235
|
-
function
|
|
236
|
-
const
|
|
237
|
-
if (jsx
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
232
|
+
function resolveRolldownTransformConfig(config) {
|
|
233
|
+
const { flow: _flow, babel: _babel, swc: _swc, ...transform } = config;
|
|
234
|
+
if (transform.jsx != null && typeof transform.jsx === "object") {
|
|
235
|
+
const { compiler: _compiler, ...jsx } = transform.jsx;
|
|
236
|
+
return {
|
|
237
|
+
...transform,
|
|
238
|
+
jsx
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
return transform;
|
|
242
|
+
}
|
|
243
|
+
function resolveNativeSwcConfig({ jsx, swc }) {
|
|
244
|
+
const jsxCompiler = jsx != null && typeof jsx === "object" ? jsx.compiler : void 0;
|
|
245
|
+
const native = swc?.native;
|
|
246
|
+
const nativeCompiler = native?.react?.compiler;
|
|
247
|
+
if (jsxCompiler == null && nativeCompiler == null) return native;
|
|
248
|
+
const compiler = mergeWith(toMerged({}, jsxCompiler ?? {}), nativeCompiler ?? {}, (_target, source) => Array.isArray(source) ? [...source] : void 0);
|
|
249
|
+
compiler.exclude ??= [/node_modules/];
|
|
250
|
+
return {
|
|
251
|
+
...native,
|
|
252
|
+
react: {
|
|
253
|
+
...native?.react,
|
|
254
|
+
compiler
|
|
255
|
+
}
|
|
243
256
|
};
|
|
244
257
|
}
|
|
245
258
|
function resolveBabelPluginOptions(config, context) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BuildDiagnosticLog, ReportableEvent } from "./events/types.js";
|
|
2
|
-
import { ChangeEvent, DeepRequired, HotUpdateOptions, MaybePromise, NullValue, PackageJson, PluginWithHotUpdate, Reporter } from "./types.js";
|
|
2
|
+
import { ChangeEvent, DeepRequired, ExtractObject, HotUpdateOptions, MaybePromise, NullValue, PackageJson, PluginWithHotUpdate, Reporter } from "./types.js";
|
|
3
3
|
import { RolldownOptions, RolldownOptionsConfig, RolldownOptionsContext, RolldownOptionsFunction } from "./core/rolldown.js";
|
|
4
4
|
import { AsyncResult, BuildOptions, BuildType, BundlerContext, BundlerState, DevEngine, DevEngineOptions } from "./core/types.js";
|
|
5
5
|
import { index_d_exports } from "./core/plugins/index.js";
|
|
@@ -8,7 +8,7 @@ import { DEFAULT_HOST, DEFAULT_PORT, DEV_SERVER_ASSET_PATH } from "./server/cons
|
|
|
8
8
|
import { createDevServer } from "./server/index.js";
|
|
9
9
|
import { InteractiveCommand, InteractiveCommandContext, InteractiveModeOptions, setupInteractiveMode } from "./node/commands/start/setup-interactive-mode.js";
|
|
10
10
|
import { createCommand, createReactNativeCliCommand } from "./node/cli-utils.js";
|
|
11
|
-
import { AliasConfig, AnalyzerConfig, BabelTransformConfig, Config, DevConfig, ExperimentalConfig, HmrConfig, OptimizationConfig, OutputConfig, PluginOption, Polyfill, PolyfillOptions, PolyfillType, PolyfillWithCode, PolyfillWithPath, ReactNativeConfig, ResolveConfig,
|
|
11
|
+
import { AliasConfig, AnalyzerConfig, BabelTransformConfig, Config, DevConfig, ExperimentalConfig, FlowConfig, HmrConfig, JsxOptions, OptimizationConfig, OutputConfig, PluginOption, Polyfill, PolyfillOptions, PolyfillType, PolyfillWithCode, PolyfillWithPath, ReactNativeConfig, ResolveConfig, RollipopReactNativeSwcConfig as SwcConfig, RollipopReactNativeWorkletsConfig as WorkletsConfig, SwcTransformConfig, TransformConfig, TransformRule, WatcherConfig } from "./config/types.js";
|
|
12
12
|
import { DefineConfigContext, DynamicUserConfig, UserConfig, defineConfig } from "./config/define-config.js";
|
|
13
13
|
import { LoadConfigOptions, flattenPluginOption, invokeConfigResolved, loadConfig, resolvePluginConfig } from "./config/load-config.js";
|
|
14
14
|
import "./config/index.js";
|
|
@@ -29,4 +29,4 @@ import { OutputChunk } from "@rollipop/rolldown";
|
|
|
29
29
|
export declare function runBuild(config: ResolvedConfig, options: BuildOptions): Promise<OutputChunk>;
|
|
30
30
|
export declare function runServer(config: ResolvedConfig, options: ServerOptions): Promise<DevServer>;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { type AliasConfig, type AnalyzerConfig, assets_d_exports as AssetUtils, type AsyncResult, type BabelTransformConfig, type BuildDiagnosticLog, type BuildOptions, type BuildType, type BundleDetails, Bundler, type BundlerContext, type BundlerState, type ChangeEvent, type Config, constants_d_exports as Constants, DEFAULT_HOST, DEFAULT_PORT, DEV_SERVER_ASSET_PATH, type DeepRequired, DefaultConfig, DefineConfigContext, type DevConfig, type DevEngine, type DevEngineOptions, type DevServer, type DevServerContext, type DevServerEvents, type DevToolsPluginOptions, DynamicUserConfig, type ExperimentalConfig, type FastifyInstance, type FormattedError, type HMRClientLogLevel, type HMRClientMessage, type HMRContext, type HMRCustomHandler, type HMRCustomMessage, type HMRServerError, type HMRServerMessage, type HmrConfig, type HotUpdateOptions, InteractiveCommand, InteractiveCommandContext, InteractiveModeOptions, InternalConfig, LoadConfigOptions, LoadEnvOptions, type MaybePromise, type Middlewares, type NullValue, type OptimizationConfig, type OutputConfig, type PackageJson, type Plugin, type PluginConfig, PluginFlattenConfig, type PluginOption, type PluginWithHotUpdate, type Polyfill, type PolyfillOptions, type PolyfillType, type PolyfillWithCode, type PolyfillWithPath, type ReactNativeConfig, type ReportableEvent, type Reporter, type ResolveConfig, ResolvedConfig, type RolldownOptions, type RolldownOptionsConfig, type RolldownOptionsContext, type RolldownOptionsFunction, type RollipopDevToolsNodeContext, type
|
|
32
|
+
export { type AliasConfig, type AnalyzerConfig, assets_d_exports as AssetUtils, type AsyncResult, type BabelTransformConfig, type BuildDiagnosticLog, type BuildOptions, type BuildType, type BundleDetails, Bundler, type BundlerContext, type BundlerState, type ChangeEvent, type Config, constants_d_exports as Constants, DEFAULT_HOST, DEFAULT_PORT, DEV_SERVER_ASSET_PATH, type DeepRequired, DefaultConfig, DefineConfigContext, type DevConfig, type DevEngine, type DevEngineOptions, type DevServer, type DevServerContext, type DevServerEvents, type DevToolsPluginOptions, DynamicUserConfig, type ExperimentalConfig, type ExtractObject, type FastifyInstance, type FlowConfig, type FlowConfig as RollipopReactNativeFlowConfig, type FormattedError, type HMRClientLogLevel, type HMRClientMessage, type HMRContext, type HMRCustomHandler, type HMRCustomMessage, type HMRServerError, type HMRServerMessage, type HmrConfig, type HotUpdateOptions, InteractiveCommand, InteractiveCommandContext, InteractiveModeOptions, InternalConfig, type JsxOptions, LoadConfigOptions, LoadEnvOptions, type MaybePromise, type Middlewares, type NullValue, type OptimizationConfig, type OutputConfig, type PackageJson, type Plugin, type PluginConfig, PluginFlattenConfig, type PluginOption, type PluginWithHotUpdate, type Polyfill, type PolyfillOptions, type PolyfillType, type PolyfillWithCode, type PolyfillWithPath, type ReactNativeConfig, type ReportableEvent, type Reporter, type ResolveConfig, ResolvedConfig, type RolldownOptions, type RolldownOptionsConfig, type RolldownOptionsContext, type RolldownOptionsFunction, type RollipopDevToolsNodeContext, type SwcConfig as RollipopReactNativeSwcConfig, type SwcConfig, type WorkletsConfig as RollipopReactNativeWorkletsConfig, type WorkletsConfig, type ServerOptions, type SwcTransformConfig, type TransformConfig, type TransformRule, UserConfig, type WatcherConfig, cli_d_exports as cli, createCommand, createDevServer, createReactNativeCliCommand, defineConfig, flattenPluginOption, getDefaultConfig, invokeConfigResolved, loadConfig, loadEnv, mergeConfig, index_d_exports as plugins, resetCache, resolvePluginConfig, rolldown, rolldownExperimental, setupInteractiveMode };
|
package/dist/package.js
CHANGED
|
@@ -20,7 +20,7 @@ var RollipopDevframeController = class {
|
|
|
20
20
|
this.definition = defineDevframe({
|
|
21
21
|
id: "rollipop",
|
|
22
22
|
name: "Rollipop",
|
|
23
|
-
version: "1.0.0-
|
|
23
|
+
version: "1.0.0-beta.1",
|
|
24
24
|
packageName: "rollipop",
|
|
25
25
|
homepage: "https://github.com/rollipop-dev/rollipop",
|
|
26
26
|
description: "React Native development dashboard powered by Rollipop.",
|
|
@@ -16,7 +16,7 @@ async function setupDevframe(context, server, inspectorDeviceServer) {
|
|
|
16
16
|
const controller = new RollipopDevframeController(context, createAgentToolContext(context));
|
|
17
17
|
const devtools = initHub({
|
|
18
18
|
name: DEVFRAME_NAME,
|
|
19
|
-
version: "1.0.0-
|
|
19
|
+
version: "1.0.0-beta.1",
|
|
20
20
|
base: ROLLIPOP_DEVFRAME_BASE,
|
|
21
21
|
cwd: context.config.root,
|
|
22
22
|
ui: createUi({
|
|
@@ -28,7 +28,7 @@ var FileStorage = class FileStorage {
|
|
|
28
28
|
this.dataFilePath = path.join(FileStorage.getPath(basePath, { prepare: true }), DATA_FILENAME);
|
|
29
29
|
if (fs.existsSync(this.dataFilePath)) {
|
|
30
30
|
const loadedData = JSON.parse(fs.readFileSync(this.dataFilePath, "utf-8"));
|
|
31
|
-
if ("version" in loadedData && loadedData.version === "1.0.0-
|
|
31
|
+
if ("version" in loadedData && loadedData.version === "1.0.0-beta.1") this.data = loadedData;
|
|
32
32
|
else {
|
|
33
33
|
this.data = createDefaultData();
|
|
34
34
|
this.flush();
|
package/dist/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { BuildDiagnosticLog, ReportableEvent } from "./events/types.js";
|
|
|
2
2
|
import * as rolldown from "@rollipop/rolldown";
|
|
3
3
|
//#region src/types.d.ts
|
|
4
4
|
export type MaybePromise<T> = T | Promise<T>;
|
|
5
|
+
export type ExtractObject<T> = T extends object ? T : never;
|
|
5
6
|
export type NullValue<T = void> = T | undefined | null | void;
|
|
6
7
|
export type DeepRequired<T> = { [K in keyof T]-?: T[K] extends object ? DeepRequired<T[K]> : T[K]; };
|
|
7
8
|
export interface Reporter {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollipop",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"homepage": "https://github.com/rollipop-dev/rollipop#readme",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/rollipop-dev/rollipop/issues"
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"@react-native-community/cli-server-api": "20.2.0",
|
|
68
68
|
"@react-native-community/cli-types": "20.2.0",
|
|
69
69
|
"@react-native/dev-middleware": "0.87.1",
|
|
70
|
-
"@rollipop/dashboard": "1.0.0-
|
|
71
|
-
"@rollipop/rolldown": "1.0
|
|
70
|
+
"@rollipop/dashboard": "1.0.0-beta.1",
|
|
71
|
+
"@rollipop/rolldown": "1.1.0",
|
|
72
72
|
"@swc/core": "1.16.13",
|
|
73
73
|
"@swc/helpers": "0.5.23",
|
|
74
74
|
"@types/ws": "8.18.1",
|