Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
leegeunhyeok committed Jan 1, 2024
1 parent a3e2e30 commit cea8c42
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions packages/plugins/lib/buildStatusPlugin/buildStatusPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ export const createBuildStatusPlugin: PluginFactory<BuildStatusPluginConfig> = (
config.handler.onBuildStart(buildContext);
});

build.onResolve({ filter }, (args) => {
build.onResolve({ filter }, (args): undefined => {
const isRelative = args.path.startsWith('.');
statusLogger.onResolve(
isRelative ? path.resolve(args.resolveDir, args.path) : args.path,
);
config.handler.onBuild(buildContext, statusLogger.getStatus());
return null;
});

build.onLoad({ filter }, () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ export const createReactNativeRuntimeTransformPlugin: PluginFactory = (

transformJsonAsJsModule(buildContext, build);

build.onResolve({ filter }, (args) =>
args.kind === 'entry-point'
? {
path: args.path,
pluginData: { isEntryPoint: true },
}
: null,
);
build.onResolve({ filter }, (args) => {
if (args.kind === 'entry-point') {
return {
path: args.path,
pluginData: { isEntryPoint: true },
};
}
});

build.onLoad({ filter }, async (args) => {
const moduleId = buildContext.moduleManager.getModuleId(
Expand Down

0 comments on commit cea8c42

Please sign in to comment.