@sigmaott/base-next 1.1.6 → 1.1.8

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.
package/nuxt.config.ts CHANGED
@@ -24,9 +24,6 @@ export default defineNuxtConfig({
24
24
  'dayjs-nuxt',
25
25
  ...sharedModules,
26
26
  ],
27
- dayjs: {
28
- plugins: ['customParseFormat', 'utc', 'timezone'],
29
- },
30
27
  i18n: {
31
28
  lazy: true,
32
29
  strategy: 'no_prefix',
@@ -147,6 +144,13 @@ export default defineNuxtConfig({
147
144
  },
148
145
  optimizeDeps: {
149
146
  needsInterop: ['mediainfo.js'],
147
+ include: [
148
+ "dayjs",
149
+ "dayjs/plugin/utc",
150
+ "dayjs/plugin/timezone",
151
+ "dayjs/plugin/customParseFormat",
152
+ 'axios'
153
+ ],
150
154
  },
151
155
  server: {
152
156
  cors: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sigmaott/base-next",
3
3
  "type": "module",
4
- "version": "1.1.6",
4
+ "version": "1.1.8",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -1,13 +1,13 @@
1
1
  import { dayjs } from 'element-plus'
2
- // import utc from 'dayjs/plugin/utc'
3
- // import timezone from 'dayjs/plugin/timezone'
4
- // import customParseFormat from 'dayjs/plugin/customParseFormat'
2
+ import utc from 'dayjs/plugin/utc'
3
+ import timezone from 'dayjs/plugin/timezone'
4
+ import customParseFormat from 'dayjs/plugin/customParseFormat'
5
5
 
6
6
 
7
7
  export default defineNuxtPlugin((nuxtApp) => {
8
8
  // custom dayjs
9
9
  dayjs.Ls.en.weekStart = 1
10
- // dayjs.extend(utc)
11
- // dayjs.extend(timezone)
12
- // dayjs.extend(customParseFormat)
10
+ dayjs.extend(utc)
11
+ dayjs.extend(timezone)
12
+ dayjs.extend(customParseFormat)
13
13
  })