From 2faf2e34331703b3bdea3eb487cb8799c8d65377 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 19 Sep 2023 18:13:57 +0200
Subject: refactor(build): replace paths aliases with relative paths

Using paths aliases starting with "@" can be confusing and can lead to
conflict with existings modules. I prefer to use relative paths to
avoid extra configuration in tools because of these aliases.
---
 src/utils/hooks/use-prism.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/utils/hooks/use-prism.tsx')

diff --git a/src/utils/hooks/use-prism.tsx b/src/utils/hooks/use-prism.tsx
index ef1a4c8..05790a3 100644
--- a/src/utils/hooks/use-prism.tsx
+++ b/src/utils/hooks/use-prism.tsx
@@ -17,7 +17,7 @@ const PRISM_PLUGINS = [
   'toolbar',
 ] as const;
 
-export type PrismPlugin = typeof PRISM_PLUGINS[number];
+export type PrismPlugin = (typeof PRISM_PLUGINS)[number];
 
 export type DefaultPrismPlugin = Extract<
   PrismPlugin,
@@ -90,7 +90,7 @@ const loadPrismPlugins = async (plugins: PrismPlugin[]) => {
   for (const plugin of plugins) {
     try {
       if (plugin === 'color-scheme') {
-        await import(`@utils/plugins/prism-${plugin}`);
+        await import(`../plugins/prism-${plugin}`);
       } else {
         await import(`prismjs/plugins/${plugin}/prism-${plugin}.min.js`);
       }
-- 
cgit v1.2.3

