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';