Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/babel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ interface Options {
bundler?: RuntimeType;
fixRender?: boolean;
imports?: ImportIdentity[];
moduleName?: string;
}

type ImportHook = Map<string, t.Identifier>;
Expand Down Expand Up @@ -75,7 +76,7 @@ function getSolidRefreshIdentifier(state: State, path: babel.NodePath, name: str
if (current) {
return current;
}
const newID = addNamed(path, name, SOLID_REFRESH_MODULE);
const newID = addNamed(path, name, state.opts.moduleName || SOLID_REFRESH_MODULE);
state.hooks.set(target, newID);
return newID;
}
Expand Down