@bootstrap-vue-next/nuxt 0.14.1 → 0.14.3
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 +1 -1
- package/dist/module.mjs +27 -1
- package/package.json +3 -3
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -39,13 +39,39 @@ const module = defineNuxtModule({
|
|
|
39
39
|
const resolver = createResolver(import.meta.url);
|
|
40
40
|
const normalizedComposables = typeof options.composables === "boolean" ? { all: options.composables } : options.composables;
|
|
41
41
|
nuxt.options.build.transpile.push(resolver.resolve("./runtime"));
|
|
42
|
+
const transformAssetUrls = {
|
|
43
|
+
BImg: ["src"]
|
|
44
|
+
};
|
|
45
|
+
if (nuxt.options.vite.vue === void 0) {
|
|
46
|
+
nuxt.options.vite.vue = {
|
|
47
|
+
template: {
|
|
48
|
+
transformAssetUrls
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
} else if (nuxt.options.vite.vue.template === void 0) {
|
|
52
|
+
nuxt.options.vite.vue.template = {
|
|
53
|
+
transformAssetUrls
|
|
54
|
+
};
|
|
55
|
+
} else if (nuxt.options.vite.vue.template.transformAssetUrls === void 0) {
|
|
56
|
+
nuxt.options.vite.vue.template.transformAssetUrls = transformAssetUrls;
|
|
57
|
+
} else if (
|
|
58
|
+
// Do not overwrite user options
|
|
59
|
+
!(typeof nuxt.options.vite.vue.template.transformAssetUrls !== "boolean" && ("BImg" in nuxt.options.vite.vue.template.transformAssetUrls || "b-img" in nuxt.options.vite.vue.template.transformAssetUrls))
|
|
60
|
+
) {
|
|
61
|
+
Object.assign(nuxt.options.vite.vue.template.transformAssetUrls, transformAssetUrls);
|
|
62
|
+
}
|
|
42
63
|
nuxt.options.css.push("bootstrap-vue-next/dist/bootstrap-vue-next.css");
|
|
43
64
|
useComponents();
|
|
44
65
|
const arr = [];
|
|
45
66
|
if (Object.values(normalizedComposables).some((el) => el === true)) {
|
|
46
67
|
const imports = parseActiveImports(normalizedComposables, [
|
|
68
|
+
// Add the list from composables.ts here
|
|
69
|
+
// Not super strongly typed tho. Just add
|
|
47
70
|
"useBreadcrumb",
|
|
48
|
-
"useColorMode"
|
|
71
|
+
"useColorMode",
|
|
72
|
+
"useModal",
|
|
73
|
+
"useModalController",
|
|
74
|
+
"useToast"
|
|
49
75
|
]).map(
|
|
50
76
|
(el) => ({
|
|
51
77
|
from: resolver.resolve("./runtime/composables"),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bootstrap-vue-next/nuxt",
|
|
3
3
|
"description": "Nuxt Module for BootstrapVueNext",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Issayah",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"types": "./dist/types.d.ts",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"bootstrap-vue-next": "^0.14.
|
|
24
|
+
"bootstrap-vue-next": "^0.14.3"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@nuxt/kit": "^3.7.1"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"prettier": "^3.0.3",
|
|
39
39
|
"unimport": "^3.3.0",
|
|
40
40
|
"vue": "^3.3.4",
|
|
41
|
-
"bootstrap-vue-next": "^0.14.
|
|
41
|
+
"bootstrap-vue-next": "^0.14.3"
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|
|
44
44
|
"type": "git",
|