@csedl/svelte-on-rails 10.0.1 → 10.0.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.
- package/README.md +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,6 +29,13 @@ For configs you can do
|
|
|
29
29
|
```javascript
|
|
30
30
|
import { SvelteOnRails } from '@csedl/svelte-on-rails'
|
|
31
31
|
SvelteOnRails.debug = true
|
|
32
|
+
|
|
33
|
+
// source for svelte components for hydration
|
|
34
|
+
// by default svelte components are mapped by sourceCodeDir from vite.json
|
|
35
|
+
// which usually is app/frontend/**/*.svelte
|
|
36
|
+
SvelteOnRails.includeRailsViews = true
|
|
37
|
+
// when set to true, additionaly, app/views/**/*.svelte is mapped
|
|
38
|
+
// => this is a 2016 new introduced feature, status: experimental
|
|
32
39
|
```
|
|
33
40
|
|
|
34
41
|
The `SvelteOnRails` Object is accessible by `window.SvelteOnRails`
|
package/package.json
CHANGED