From c62bc10c7e1a33d1b0ce093870d91f69722683c9 Mon Sep 17 00:00:00 2001 From: Thorn Walli Date: Tue, 30 Apr 2024 23:51:01 +0200 Subject: [PATCH] fix(build): clean rollup --- src/{runtime => }/classes/FontConfig.js | 0 src/module.js | 5 ++--- src/runtime/components/BoosterImage/Base.vue | 2 +- src/runtime/components/BoosterPicture/Source.vue | 2 +- src/runtime/utils.js | 8 -------- src/runtime/utils/browser.js | 7 +++++++ src/utils/blob.js | 5 ++--- src/utils/browser.js | 9 ++++++++- test/module.test.js | 2 +- 9 files changed, 22 insertions(+), 18 deletions(-) rename src/{runtime => }/classes/FontConfig.js (100%) delete mode 100644 src/runtime/utils.js diff --git a/src/runtime/classes/FontConfig.js b/src/classes/FontConfig.js similarity index 100% rename from src/runtime/classes/FontConfig.js rename to src/classes/FontConfig.js diff --git a/src/module.js b/src/module.js index af9a5ca2a0..e6f93a1f23 100644 --- a/src/module.js +++ b/src/module.js @@ -7,8 +7,8 @@ import { addPluginTemplate, addTemplate } from '@nuxt/kit'; -import { getCrossorigin } from './runtime/utils'; -import FontConfig from './runtime/classes/FontConfig'; +import { getCrossorigin, getSupportedBrowserDetector } from './utils/browser'; +import FontConfig from './classes/FontConfig'; import { MODULE_NAME, addNuxtFontaine, @@ -20,7 +20,6 @@ import { import { deprecationsNotification, getDefaultOptions } from './utils/options'; import { getFontConfigTemplate } from './utils/template'; import { optimizePreloads } from './utils/preload'; -import { getSupportedBrowserDetector } from './utils/browser'; import { registerAppEntry as registerAppEntryWebpack } from './hookFunctions/webpack'; import { registerAppEntry as registerAppEntryVite } from './hookFunctions/vite'; import { getTemplate as getBlobFileTemplate } from './utils/blob'; diff --git a/src/runtime/components/BoosterImage/Base.vue b/src/runtime/components/BoosterImage/Base.vue index 381958f34e..edcd467c20 100644 --- a/src/runtime/components/BoosterImage/Base.vue +++ b/src/runtime/components/BoosterImage/Base.vue @@ -19,7 +19,7 @@