diff --git a/src/util/import.mjs b/src/util/import.mjs index 1f79c2e..ab2ee79 100644 --- a/src/util/import.mjs +++ b/src/util/import.mjs @@ -7,9 +7,9 @@ export default function(name, wrapper = pass) { try { return typeof require === 'function' ? Promise.resolve(wrapper(require(name))) - : import(/* webpackIgnore: true */ name).then(wrapper) + : import(/* webpackIgnore: true */ /* @vite-ignore */ name).then(wrapper) } catch(err) { console.warn(`Couldn't load ${name}`) } } -} \ No newline at end of file +}