solid-start
solid-start copied to clipboard
[Bug?]: Namespaces are completely stripped out of code
Duplicates
- [X] I have searched the existing issues
Latest version
- [X] I have tested the latest version
Current behavior 😯
If I write a namespace it gets stripped out of JavaScript code. (Both on build and dev)
Expected behavior 🤔
It shouldn't
Steps to reproduce 🕹
Steps:
- Run
npm init solid
and create a basic project - Move to
src/routes/index.tsx
- Add the following code
namespace Test { export const test = "test"; } console.log(Test);
- Excute
npm run dev
and go to the page
Context 🔦
No response
Your environment 🌎
(I don't know what's the command)
- Windows 11 x64
- Npm
- @solidjs/[email protected]
Is this related to: https://github.com/solidjs/vite-plugin-solid/issues/113 https://github.com/solidjs/vite-plugin-solid/issues/145
I am not aware of us doing any transformations that aren't part of our vite plugin or refresh plugins so the issue probably belongs there?
Due to this I use version 2.8.3 of vite-plugin-solid
, but today I created a new project with the newest version by running npm init solid
and I can confirm this problem doesn't occur
So I can close it?
I was talking about normal solid, solid start has still this problem