Skip to content

[Bug?]: Namespaces are completely stripped out of code #1438

Description

@AFatNiBBa

Duplicates

  • I have searched the existing issues

Latest version

  • 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:

  1. Run npm init solid and create a basic project
  2. Move to src/routes/index.tsx
  3. Add the following code
    namespace Test {
      export const test = "test";
    }
    
    console.log(Test);
  4. 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/start@1.0.0-rc.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamIssue waiting on dependencies

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions