I know we are early with the svelte integration, but after going through the tutorial I really want to play with it some more.
I cloned the meteor-svelte-starter repository and was able to somewhat get it to work, but in order to really understand everything I want to start from scratch.
So far I have these packages installed
meteor # Shared foundation for all Meteor packages
static-html # Define static page content in .html files
standard-minifier-css # CSS minifier run for production mode
standard-minifier-js # JS minifier run for production mode
es5-shim # ECMAScript 5 compatibility for older browsers
ecmascript # Enable ECMAScript2015+ syntax in app code
dynamic-import
typescript # Enable TypeScript syntax in .ts and .tsx modules
shell-server # Server-side component of the `meteor shell` command
webapp # Serves a Meteor app over HTTP
server-render # Support for server-side rendering
svelte:compiler
npdev:svelte-loadable
rdb:svelte-meteor-data
and the following npm packages
"dependencies": {
"@babel/runtime": "^7.8.3",
"meteor-node-stubs": "^1.0.0",
"svelte": "^3.20.1",
"svelte-loadable": "^1.4.0",
"svelte-routing": "^1.4.2"
},
and added this to package.json
"svelte:compiler": {
"hydratable": true,
"css": false
},
"babel": {
"plugins": [
"svelte-loadable/babel",
"@babel/plugin-proposal-optional-chaining"
]
},
But whenever I edit my App.svelte it only reloads the server, which is odd since the server does not import that file, and it doesn’t reload the client.
What am I missing?