Open yqchilde opened 6 months ago
Perhaps this change does not solve the problem, as the import uses' cal heatmap. esm. js', and I changed it here using 'patch package':
- return import("dayjs/locale/".concat(userLocale, ".js"));
+ return import(/* @vite-ignore */ "dayjs/locale/".concat(userLocale, ".js"));
```+
The above dynamic import cannot be analyzed by Vite. See https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations for supported dynamic import formats. If this is intended to be left as-is, you can use the / @vite-ignore / comment inside the import() call to suppress this warning.