ts files) configures TypeScript, if you added typechecking during npm create Since SvelteKit relies on certain configuration being set a specific way, it generates its own. This file (or jsconfig.json, if you prefer type-checked. This file contains your Svelte and SvelteKit configuration. js files are interpreted as native JavaScript modules with import and export keywords. When you create a project with npm create you'll also notice that package.json includes "type": "module". Your package.json file must include svelte and vite as devDependencies. If you added Playwright for browser testing when you set up your project, the tests will live in this directory. static Īny static assets that should be served as-is, like robots.txt or favicon.png, go in here. If you added Vitest when you set up your project, your unit tests will live in the src directory with a. You can switch between JavaScript and TypeScript in the documentation using the toggle at the bottom of this page.) ts files depends on whether you opt to use TypeScript when you create your project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |