poveste 0.17.1 → 0.17.2

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.
Files changed (2) hide show
  1. package/dist/node/vite.js +13 -4
  2. package/package.json +5 -5
package/dist/node/vite.js CHANGED
@@ -146,6 +146,7 @@ export async function getViteConfigWithPlugins(isServer, ctx) {
146
146
  plugins.push({
147
147
  name: 'poveste-vite-plugin',
148
148
  config(_, { command }) {
149
+ const collapsedVue = isServer || process.env['POVESTE_DEV'] ? {} : collapseVendoredVue({ root: ctx.root });
149
150
  return {
150
151
  resolve: {
151
152
  dedupe: [
@@ -160,7 +161,7 @@ export async function getViteConfigWithPlugins(isServer, ctx) {
160
161
  // `@poveste/vendors/vue`, so sending `poveste-vue` back to `vue` would
161
162
  // point the vendored entry at itself — the empty re-export its own
162
163
  // comment warns about.
163
- ...(isServer || process.env['POVESTE_DEV'] ? {} : collapseVendoredVue({ root: ctx.root })),
164
+ ...collapsedVue,
164
165
  },
165
166
  ...(isServer
166
167
  ? {
@@ -177,9 +178,17 @@ export async function getViteConfigWithPlugins(isServer, ctx) {
177
178
  // their deps cost a full reload when they turn up later (#282).
178
179
  ...optimizeEntries(ctx.config, ctx.root, isServer),
179
180
  ],
180
- include: optimizeDeps([
181
- 'shiki',
182
- ]),
181
+ include: [
182
+ ...optimizeDeps([
183
+ 'shiki',
184
+ ]),
185
+ // With the alias above, `poveste-vue` is pre-bundled from the project's
186
+ // Vue, but bare `vue` is pre-bundled only if a project file imports it.
187
+ // A Svelte, Solid or React book has none, so `poveste-vue-router`'s
188
+ // bare `vue` was served raw beside the pre-bundled copy of the same
189
+ // file: two module instances, and `RouterView` rendered nothing (#1134).
190
+ ...(Object.keys(collapsedVue).length > 0 ? ['vue'] : []),
191
+ ],
183
192
  exclude: [
184
193
  'poveste',
185
194
  '@poveste/vendors',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "poveste",
3
3
  "type": "module",
4
- "version": "0.17.1",
4
+ "version": "0.17.2",
5
5
  "description": "Interactive component playgrounds for Vue, Nuxt, Svelte, SvelteKit and Quasar — a drop-in fork of histoire, with Quasar support histoire does not ship.",
6
6
  "author": {
7
7
  "name": "Sorin Gitlan",
@@ -75,10 +75,10 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@11ty/gray-matter": "^3.0.0",
78
- "@poveste/app": "^0.17.1",
79
- "@poveste/controls": "^0.17.1",
80
- "@poveste/shared": "^0.17.1",
81
- "@poveste/vendors": "^0.17.1",
78
+ "@poveste/app": "^0.17.2",
79
+ "@poveste/controls": "^0.17.2",
80
+ "@poveste/shared": "^0.17.2",
81
+ "@poveste/vendors": "^0.17.2",
82
82
  "change-case": "^5.4.4",
83
83
  "chokidar": "^5.0.0",
84
84
  "defu": "^6.1.4",