Skip to content

ReferenceError: Fragment is not defined #809

Description

@frankandrobot

As per #564, should this have been fixed?

I'm using microbundle 0.13.0

I tried the following build commands to no avail:

  • microbundle --tsconfig tsconfig.son --jsx React.createElement <-- this gives a Fragment is not defined error
  • microbundle --tsconfig tsconfig.json --jsxFragment React.Fragment --jsx React.createElement <-- this gives a React is not defined error
Microbundle 0.13.0
React 17.0.1
Typescript 4.1.3

tsconfig.json:

{
"compilerOptions": {
"target": "ESNext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "ESNext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
},
"exclude": ["node_modules", "out", "dist"]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions