{"id":15663324,"url":"https://github.com/dunqing/unplugin-moment-to-dayjs","last_synced_at":"2025-05-05T23:44:25.483Z","repository":{"id":57672948,"uuid":"481150174","full_name":"Dunqing/unplugin-moment-to-dayjs","owner":"Dunqing","description":"Replace moment with dayjs, support use in vite, rollup, webpack","archived":false,"fork":false,"pushed_at":"2022-09-08T02:35:44.000Z","size":676,"stargazers_count":18,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-01T23:47:51.665Z","etag":null,"topics":["antd","antd-dayjs","antd-dayjs-vite-plugin","antd-dayjs-webpack-plugin","dayjs","esbuild","moment","momenttodayjs","plugin","rollup","vite","vite-plugin"],"latest_commit_sha":null,"homepage":"https://unplugin-moment-to-dayjs.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dunqing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-13T09:20:12.000Z","updated_at":"2024-10-08T03:55:09.000Z","dependencies_parsed_at":"2022-08-31T11:20:23.128Z","dependency_job_id":null,"html_url":"https://github.com/Dunqing/unplugin-moment-to-dayjs","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dunqing%2Funplugin-moment-to-dayjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dunqing%2Funplugin-moment-to-dayjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dunqing%2Funplugin-moment-to-dayjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dunqing%2Funplugin-moment-to-dayjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dunqing","download_url":"https://codeload.github.com/Dunqing/unplugin-moment-to-dayjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252596322,"owners_count":21773842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["antd","antd-dayjs","antd-dayjs-vite-plugin","antd-dayjs-webpack-plugin","dayjs","esbuild","moment","momenttodayjs","plugin","rollup","vite","vite-plugin"],"created_at":"2024-10-03T13:36:38.102Z","updated_at":"2025-05-05T23:44:25.464Z","avatar_url":"https://github.com/Dunqing.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unplugin-moment-to-dayjs\n\n[![NPM version](https://img.shields.io/npm/v/unplugin-moment-to-dayjs?color=a1b858\u0026label=)](https://www.npmjs.com/package/unplugin-moment-to-dayjs)\n\n**Replace moment with dayjs, support use in vite, rollup, webpack**\n\n## Installation\n\n```bash\nnpm i unplugin-moment-to-dayjs\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eVite\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// vite.config.ts\nimport momentToDayjs from 'unplugin-moment-to-dayjs/vite'\n\nexport default defineConfig({\n  plugins: [\n    momentToDayjs({ /* options */ }),\n  ],\n})\n```\n\nExample: [`playground/`](./playground/)\n\n\u003cbr\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eRollup\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// rollup.config.js\nimport momentToDayjs from 'unplugin-moment-to-dayjs/rollup'\n\nexport default {\n  plugins: [\n    momentToDayjs({ /* options */ }),\n  ],\n}\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003eWebpack\u003c/summary\u003e\u003cbr\u003e\n\n```ts\n// webpack.config.js\nmodule.exports = {\n  /* ... */\n  plugins: [\n    require('unplugin-moment-to-dayjs/webpack')({ /* options */ }),\n  ],\n}\n```\n\n\u003cbr\u003e\u003c/details\u003e\n\n\n## Options\n\nPlease reference [antd-dayjs-webpack-plugin](https://github.com/ant-design/antd-dayjs-webpack-plugin)\n\n\n## Examples\n\n- [vite-ant-design-pro](https://github.com/Dunqing/vite-ant-design-pro/tree/main/playground)\n\n## Thanks\n\n- moment\n- dayjs\n- antd-dayjs-webpack-plugin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunqing%2Funplugin-moment-to-dayjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdunqing%2Funplugin-moment-to-dayjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunqing%2Funplugin-moment-to-dayjs/lists"}