@pinegrow/nuxt-module 1.0.0-alpha.4 → 1.0.0-alpha.7
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.
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import pkg from '@pinegrow/vite-plugin';
|
|
2
|
+
|
|
3
|
+
// import { liveDesigner } from '@pinegrow/vite-plugin'
|
|
4
|
+
const { liveDesigner } = pkg;
|
|
5
|
+
|
|
6
|
+
export { liveDesigner };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -29,7 +29,7 @@ const module = defineNuxtModule({
|
|
|
29
29
|
async setup(moduleOptions, nuxt) {
|
|
30
30
|
if (moduleOptions.liveDesigner) {
|
|
31
31
|
nuxt.hook("listen", async (listenerServer) => {
|
|
32
|
-
const { liveDesigner
|
|
32
|
+
const { liveDesigner } = await import('./chunks/live-designer.mjs');
|
|
33
33
|
if (!moduleOptions.dev) {
|
|
34
34
|
addVitePlugin(
|
|
35
35
|
liveDesigner({
|
|
@@ -37,13 +37,6 @@ const module = defineNuxtModule({
|
|
|
37
37
|
listenerServer
|
|
38
38
|
})
|
|
39
39
|
);
|
|
40
|
-
} else {
|
|
41
|
-
addVitePlugin(
|
|
42
|
-
liveDesignerDev({
|
|
43
|
-
...moduleOptions.liveDesigner,
|
|
44
|
-
listenerServer
|
|
45
|
-
})
|
|
46
|
-
);
|
|
47
40
|
}
|
|
48
41
|
});
|
|
49
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const liveDesigner: any;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import { liveDesigner } from '@pinegrow/vite-plugin'
|
|
2
|
-
import { liveDesignerDev } from '@pinegrow/vite-plugin/dev'
|
|
3
|
-
export { liveDesigner
|
|
1
|
+
// import { liveDesigner } from '@pinegrow/vite-plugin'
|
|
2
|
+
// import { liveDesignerDev } from '@pinegrow/vite-plugin/dev'
|
|
3
|
+
// export { liveDesigner /*, liveDesignerDev*/ }
|
|
4
|
+
|
|
5
|
+
import pkg from '@pinegrow/vite-plugin'
|
|
6
|
+
const { liveDesigner } = pkg
|
|
7
|
+
// import { liveDesignerDev } from '@pinegrow/vite-plugin/dev'
|
|
8
|
+
export { liveDesigner /*, liveDesignerDev*/ }
|