Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svelte.config.ts not recognized #12942

Closed
notramo opened this issue Nov 3, 2024 · 1 comment
Closed

svelte.config.ts not recognized #12942

notramo opened this issue Nov 3, 2024 · 1 comment

Comments

@notramo
Copy link

notramo commented Nov 3, 2024

Describe the bug

Bun can natively import TS files without any plugin needed. However, renaming svelte.config.js to svelte.config.ts makes the build (or dev server) fail.

Reproduction

mv svelte.config.js svelte.config.ts

Logs

The logs contain import failures mentioning my project files which I don't disclose (but does not mention import failure of `svelte.config.ts`).

System Info

Running using Bun in Docker.

  System:
    OS: Linux 6.11 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    Container: Yes
    Shell: 5.1.4 - /bin/bash
  Binaries:
    bun: 1.1.34 - /tmp/bun-node-5e5e7c60f/bun
  npmPackages:
    @sveltejs/adapter-node: ^5.2.8 => 5.2.9
    @sveltejs/enhanced-img: ^0.3.9 => 0.3.9
    @sveltejs/kit: ^2.7.2 => 2.7.2
    @sveltejs/vite-plugin-svelte: ^4.0.0 => 4.0.0
    svelte: ^5.0.5 => 5.0.5
    vite: ^5.4.9 => 5.4.9

Severity

annoyance

Additional Information

No response

@polyzen
Copy link

polyzen commented Nov 3, 2024

Duplicate of #2576

@Conduitry Conduitry closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants