melhorias no dayjs
This commit is contained in:
parent
8c8802d6f7
commit
7f3c28ca1b
5 changed files with 24 additions and 16 deletions
|
|
@ -28,7 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var dayjs_exports = {};
|
||||
__export(dayjs_exports, {
|
||||
dayjsbr: () => import_dayjs.default
|
||||
dayjs: () => import_dayjs.default,
|
||||
dayjsbr: () => dayjsbr
|
||||
});
|
||||
module.exports = __toCommonJS(dayjs_exports);
|
||||
var import_dayjs = __toESM(require("dayjs"));
|
||||
|
|
@ -41,16 +42,18 @@ var import_relativeTime = __toESM(require("dayjs/plugin/relativeTime"));
|
|||
var import_timezone = __toESM(require("dayjs/plugin/timezone"));
|
||||
var import_utc = __toESM(require("dayjs/plugin/utc"));
|
||||
var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear"));
|
||||
import_dayjs.default.extend(import_utc.default);
|
||||
import_dayjs.default.extend(import_timezone.default);
|
||||
import_dayjs.default.extend(import_weekOfYear.default);
|
||||
import_dayjs.default.extend(import_isSameOrBefore.default);
|
||||
import_dayjs.default.extend(import_isSameOrAfter.default);
|
||||
import_dayjs.default.extend(import_minMax.default);
|
||||
import_dayjs.default.extend(import_relativeTime.default);
|
||||
import_dayjs.default.extend(import_duration.default);
|
||||
import_dayjs.default.locale("pt-br");
|
||||
const dayjsbr = import_dayjs.default;
|
||||
dayjsbr.extend(import_utc.default);
|
||||
dayjsbr.extend(import_timezone.default);
|
||||
dayjsbr.extend(import_weekOfYear.default);
|
||||
dayjsbr.extend(import_isSameOrBefore.default);
|
||||
dayjsbr.extend(import_isSameOrAfter.default);
|
||||
dayjsbr.extend(import_minMax.default);
|
||||
dayjsbr.extend(import_relativeTime.default);
|
||||
dayjsbr.extend(import_duration.default);
|
||||
dayjsbr.locale("pt-br");
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
dayjs,
|
||||
dayjsbr
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue