Skip to content

Commit

Permalink
refactor: remove placeholder module name
Browse files Browse the repository at this point in the history
  • Loading branch information
oktaysenkan committed Oct 6, 2024
1 parent 522dece commit 9f79325
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const defaultOptions: MoniconOptions = {
const iconsAsObject: Record<string, Icon> = {};

export const getResolveAlias = () => {
return "oktay";
return "monicon";
};

export const getResolveExtensions = () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/native/src/Monicon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const importIcons = () =>
new Promise<Record<string, Icon> | null>(async (resolve) => {
try {
// @ts-ignore
const iconsImport = await import("oktay");
const iconsImport = await import("monicon");
const icons = iconsImport.default ?? iconsImport;

return resolve(icons);
Expand Down
2 changes: 1 addition & 1 deletion packages/native/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig((options: Options) => ({
},
clean: true,
format: ["cjs", "esm"],
external: ["react", "oktay", "react-native"],
external: ["react", "monicon", "react-native"],
dts: true,
...options,
}));
2 changes: 1 addition & 1 deletion packages/react/src/Monicon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const importIcons = () =>
new Promise<Record<string, Icon> | null>(async (resolve) => {
try {
// @ts-ignore
const iconsImport = await import("oktay");
const iconsImport = await import("monicon");
const icons = iconsImport.default ?? iconsImport;

return resolve(icons);
Expand Down
2 changes: 1 addition & 1 deletion packages/react/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig((options: Options) => ({
},
clean: true,
format: ["cjs", "esm"],
external: ["react", "oktay", "react-native"],
external: ["react", "monicon", "react-native"],
dts: true,
...options,
}));
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/Monicon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
new Promise<Record<string, Icon> | null>(async (resolve) => {
try {
// @ts-ignore
const iconsImport = await import("oktay");
const iconsImport = await import("monicon");
const icons = iconsImport.default ?? iconsImport;
return resolve(icons);
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/monicon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const importIcons = () =>
new Promise<Record<string, Icon> | null>(async (resolve) => {
try {
// @ts-ignore
const iconsImport = await import("oktay");
const iconsImport = await import("monicon");
const icons = iconsImport.default ?? iconsImport;
return resolve(icons);
Expand Down

0 comments on commit 9f79325

Please sign in to comment.