vite-plugin-dayjs 0.0.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +0 -8
  2. package/package.json +4 -2
package/dist/index.mjs CHANGED
@@ -9,14 +9,6 @@ function vitePluginDayjs() {
9
9
  skipSelf: true,
10
10
  ...options
11
11
  });
12
- const pluginIndex = source.match(/^dayjs\/plugin\/([^/]+)\/index\.js$/);
13
- if (pluginIndex) {
14
- const target = `dayjs/esm/plugin/${pluginIndex[1]}/index.js`;
15
- return await this.resolve(target, importer, {
16
- skipSelf: true,
17
- ...options
18
- });
19
- }
20
12
  const pluginWithJs = source.match(/^dayjs\/plugin\/([^/]+)\.js$/);
21
13
  if (pluginWithJs) {
22
14
  const target = `dayjs/esm/plugin/${pluginWithJs[1]}/index.js`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vite-plugin-dayjs",
3
3
  "type": "module",
4
- "version": "0.0.2",
4
+ "version": "1.0.0",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.mts",
@@ -20,6 +20,7 @@
20
20
  "@types/node": "^24.10.1",
21
21
  "@vitejs/plugin-vue": "^6.0.1",
22
22
  "@vue/tsconfig": "^0.8.1",
23
+ "bumpp": "^10.3.2",
23
24
  "dayjs": "^1.11.19",
24
25
  "eslint": "^9.39.2",
25
26
  "jiti": "^2.6.1",
@@ -35,6 +36,7 @@
35
36
  "build": "tsdown",
36
37
  "preview": "vite preview",
37
38
  "test": "vitest run",
38
- "prepublish": "pnpm build"
39
+ "prepublish": "pnpm build",
40
+ "bump": "bumpp"
39
41
  }
40
42
  }