From 417d5541a43cdbd6272f74ae3b569f7ef600a686 Mon Sep 17 00:00:00 2001 From: Thorn Walli Date: Sun, 12 Nov 2023 17:04:44 +0100 Subject: [PATCH] fix(module): remove alias workaround --- src/module.mjs | 4 ---- src/runtime/components/SpeedkitPicture/classes/SourceList.mjs | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/module.mjs b/src/module.mjs index 67fa6ef6ca..ad21d6b32b 100644 --- a/src/module.mjs +++ b/src/module.mjs @@ -42,10 +42,6 @@ export default defineNuxtModule({ nuxt.options.alias['#speedkit'] = runtimeDir; nuxt.options.build.transpile.push(runtimeDir); - // Workaround for missing default function by external use. - nuxt.options.alias['speedkit-create-sort'] = - 'sort-css-media-queries/lib/create-sort.js'; - await addModules(nuxt, moduleOptions); setPublicRuntimeConfig(nuxt, moduleOptions); diff --git a/src/runtime/components/SpeedkitPicture/classes/SourceList.mjs b/src/runtime/components/SpeedkitPicture/classes/SourceList.mjs index bb4ccda2d4..948c1175ec 100644 --- a/src/runtime/components/SpeedkitPicture/classes/SourceList.mjs +++ b/src/runtime/components/SpeedkitPicture/classes/SourceList.mjs @@ -1,4 +1,4 @@ -import createSort from 'speedkit-create-sort'; +import createSort from 'sort-css-media-queries/lib/create-sort.js'; import Source from '../../SpeedkitImage/classes/Source'; import { toHashHex } from '#speedkit/utils/string';