Comments (2)
Can you go into more detail about why you need svelte.config.mjs
? All SvelteKit projects should have "type": "module"
in their package.json
, which means that .js
files would get treated as ESM.
We really don't want to encourage people to put this file in other places because there are other bits of tooling that also are looking for it in its one place, and they'd all need to be updated as well. We also definitely don't want to be encouraging people to write it in CJS.
from kit.
Yeah the CJS part was on me.
because there are other bits of tooling that also are looking for it in its one place
I did not consider this. Thinking about this makes it more logical to restructure my project.
Should not have wasted your time, thanks for the quick response and indirectly helping me find my way!
from kit.
Related Issues (20)
- Change the name of the special `fetch` function HOT 7
- `build` variable in $service-worker module does not include web worker files
- The `base` path from `$app/paths` differs between SSR and client using the default config HOT 6
- option to skip enhanced img in development HOT 1
- add support ot $app/server read() method to cloudflare pages adapter
- Skeleton app in Docker throws SyntaxError: Cannot use import statement outside a module HOT 2
- Share/Inject functions and object instances in universal loaders without globals/singletons HOT 2
- Warn on unused data HOT 1
- Cloudflare: Unsupported Engine Error in @eslint/config-array with Node v18.17.1 and npm v9.6.7 HOT 11
- dependency error when using pnpm HOT 3
- Append Page title to +page.svelte because +page.svelte is confusing HOT 1
- Data from load function is not persistent after rendering HOT 2
- Redirect behaves strangely HOT 2
- Different behaviour if you check two or more times the `type` in `afterNavigate`?
- preloadData does not report errors from server files HOT 1
- docs: use server load function in the `setHeaders` example HOT 6
- Page saying `500: Page not found` with Adblocker browser extension HOT 5
- Build fails when `@sveltejs/enhanced-img` was installed on ARM CPU but the current environment is x86 HOT 4
- Define customizable protected path to prevent import to client (lib/server/ like) HOT 13
- Bun is not avaible in sveltekit HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kit.