vite-plugin-ember 0.0.4 → 0.0.5
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/README.md +20 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,6 +64,16 @@ export default {
|
|
|
64
64
|
} satisfies Theme;
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
+
If TypeScript cannot resolve the `.vue` import, add this declaration to your project (e.g. `env.d.ts`):
|
|
68
|
+
|
|
69
|
+
```ts
|
|
70
|
+
declare module 'vite-plugin-ember/components/code-preview.vue' {
|
|
71
|
+
import type { DefineComponent } from 'vue';
|
|
72
|
+
const component: DefineComponent<object, object, any>;
|
|
73
|
+
export default component;
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
67
77
|
### 4. Write a live demo
|
|
68
78
|
|
|
69
79
|
In any markdown file:
|
|
@@ -115,6 +125,16 @@ pnpm dev
|
|
|
115
125
|
└── pnpm-workspace.yaml
|
|
116
126
|
````
|
|
117
127
|
|
|
128
|
+
## Limitations
|
|
129
|
+
|
|
130
|
+
Components are rendered standalone via `@ember/renderer` — there is **no Ember application container**. This means:
|
|
131
|
+
|
|
132
|
+
- **`@service` injection does not work** — there is no owner/DI container to resolve services from
|
|
133
|
+
- **Initializers and instance-initializers** are not executed
|
|
134
|
+
- **Routing** (`LinkTo`, `RouterService`) is not available
|
|
135
|
+
|
|
136
|
+
Components that rely only on `@tracked` state, `@action`, modifiers, and helpers work as expected.
|
|
137
|
+
|
|
118
138
|
## Requirements
|
|
119
139
|
|
|
120
140
|
- Node.js ≥ 20
|