Skip to content

Commit

Permalink
fix: use explicit module imports for dayjs (#11030)
Browse files Browse the repository at this point in the history
**Related Issue:** N/A

## Summary

This should help bundlers (e.g., Webpack) resolve dependencies due to
ambiguous paths.

For context, Lumina doesn't bundle dependencies like Stencil did.
`dayjs` imports were causing trouble because of this.
  • Loading branch information
jcfranco authored Dec 12, 2024
1 parent ba1ceb7 commit 8935946
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import dayjs from "dayjs/esm";
import customParseFormat from "dayjs/esm/plugin/customParseFormat";
import localeData from "dayjs/esm/plugin/localeData";
import localizedFormat from "dayjs/esm/plugin/localizedFormat";
import preParsePostFormat from "dayjs/esm/plugin/preParsePostFormat";
import updateLocale from "dayjs/esm/plugin/updateLocale";
import dayjs from "dayjs/esm/index.js";
import customParseFormat from "dayjs/esm/plugin/customParseFormat/index.js";
import localeData from "dayjs/esm/plugin/localeData/index.js";
import localizedFormat from "dayjs/esm/plugin/localizedFormat/index.js";
import preParsePostFormat from "dayjs/esm/plugin/preParsePostFormat/index.js";
import updateLocale from "dayjs/esm/plugin/updateLocale/index.js";
import { PropertyValues } from "lit";
import {
LitElement,
Expand Down

0 comments on commit 8935946

Please sign in to comment.