Skip to content

Commit

Permalink
Merge pull request #897 from GrabarzUndPartner/feature/remove-import-…
Browse files Browse the repository at this point in the history
…alias

fix(module): remove alias workaround
  • Loading branch information
ThornWalli authored Nov 12, 2023
2 parents 44610f1 + 417d554 commit 9092707
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/module.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 9092707

Please sign in to comment.