@bakery-framework/plugin-vue 1.2.2 → 1.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bakery-framework/plugin-vue",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Bakery vue plugin.",
5
5
  "keywords": [
6
6
  "bakery",
package/src/index.ts CHANGED
@@ -25,6 +25,11 @@ export default function vuePlugin(options?: VuePluginOptions) {
25
25
  tsconfig: {
26
26
  project: {
27
27
  name: 'vue',
28
+ // An SFC's `<script>` is rendered on the server, so it reaches the ORM
29
+ // and the app's schema registration the way an API route does. Without
30
+ // this the tables fall back to `any` in every `.vue` file — silently,
31
+ // because the untyped mode is a supported state and does not error.
32
+ server: true,
28
33
  extends: '@bakery-framework/core/tsconfig.vue.json',
29
34
  include: ['src/**/*.vue'],
30
35
  // A package specifier rather than a path: the plugin does not know