@asgardeo/nuxt 0.1.3 → 0.1.4
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/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver, addServerHandler, addServerPlugin, addPlugin, addRouteMiddleware, addImports, addComponent } from '@nuxt/kit';
|
|
1
|
+
import { defineNuxtModule, createResolver, addServerHandler, addServerPlugin, addPlugin, addRouteMiddleware, addImports, addComponent, extendViteConfig } from '@nuxt/kit';
|
|
2
2
|
import { defu } from 'defu';
|
|
3
3
|
|
|
4
4
|
const PACKAGE_NAME = "@asgardeo/nuxt";
|
|
@@ -188,6 +188,26 @@ const module = defineNuxtModule({
|
|
|
188
188
|
name: "AsgardeoCreateOrganization"
|
|
189
189
|
});
|
|
190
190
|
addComponent({ filePath: resolve("./runtime/components/auth/Callback"), name: "AsgardeoCallback" });
|
|
191
|
+
extendViteConfig(
|
|
192
|
+
(viteConfig) => {
|
|
193
|
+
const deps = [
|
|
194
|
+
"@asgardeo/browser",
|
|
195
|
+
"@asgardeo/javascript",
|
|
196
|
+
"@asgardeo/vue",
|
|
197
|
+
"base64url",
|
|
198
|
+
"fast-sha256"
|
|
199
|
+
];
|
|
200
|
+
const existingInclude = viteConfig.optimizeDeps?.include ?? [];
|
|
201
|
+
const newDeps = deps.filter((dep) => !existingInclude.includes(dep));
|
|
202
|
+
Object.assign(viteConfig, {
|
|
203
|
+
optimizeDeps: {
|
|
204
|
+
...viteConfig.optimizeDeps,
|
|
205
|
+
include: [...existingInclude, ...newDeps]
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
},
|
|
209
|
+
{ client: true }
|
|
210
|
+
);
|
|
191
211
|
}
|
|
192
212
|
});
|
|
193
213
|
|