@wagmi/vue 0.5.0 → 0.5.1
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/dist/esm/nuxt/module.js +7 -1
- package/dist/esm/nuxt/module.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/nuxt/module.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/nuxt/module.ts +13 -1
- package/src/version.ts +1 -1
package/dist/esm/nuxt/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addImports, createResolver, defineNuxtModule } from 'nuxt/kit';
|
|
1
|
+
import { addImports, createResolver, defineNuxtModule, extendViteConfig, } from 'nuxt/kit';
|
|
2
2
|
export const wagmiModule = defineNuxtModule({
|
|
3
3
|
meta: {
|
|
4
4
|
name: '@wagmi/vue',
|
|
@@ -13,6 +13,12 @@ export const wagmiModule = defineNuxtModule({
|
|
|
13
13
|
nuxt.hook('prepare:types', ({ references }) => {
|
|
14
14
|
references.push({ types: '@wagmi/vue/nuxt' });
|
|
15
15
|
});
|
|
16
|
+
// Ensure CJS dependencies are pre-bundled for ESM compatibility
|
|
17
|
+
extendViteConfig((config) => {
|
|
18
|
+
config.optimizeDeps ??= {};
|
|
19
|
+
config.optimizeDeps.include ??= [];
|
|
20
|
+
config.optimizeDeps.include.push('eventemitter3');
|
|
21
|
+
});
|
|
16
22
|
// Add auto imports
|
|
17
23
|
const composables = resolve('./runtime/composables');
|
|
18
24
|
const names = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../src/nuxt/module.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../src/nuxt/module.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,gB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