A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vitejs/vite/issues/1067 below:

[Guidance] Deep import issues · Issue #1067 · vitejs/vite · GitHub

This is a similar issue to the one in #1041 ... In my case, I'm trying to include: dayjs/plugin/relativeTime

As described here on the page for RelativeTime by DayJS they want you to include a deeply nested plugin from their dep .

However, in Vite I can't seem to import the module. Getting the following:

[vite] Avoid deep import "dayjs/plugin/relativeTime" (imported by /@modules/@factor/api/time.ts)
because "dayjs" has been pre-optimized by vite into a single file.
Prefer importing directly from the module entry:

  import { ... } from "dayjs"

I need some clarification as to how this should be handled.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4