Comments (19)
this has fixed in rc.12
from nanobundle.
try
npm uninstall nanobundle
npm install -D nanobundle@rc
from nanobundle.
Yeah, it's caused by upstream 😅
I've already submitted PR to fix that dominikg/tsconfck#73
from nanobundle.
Ah my fault, compiles are belong to dist
I see
from nanobundle.
I will publish it as rc.13 soon
from nanobundle.
Oh it works fine.
The compilation result is good.
const buttonContent = /* @__PURE__ */ React.createElement("span", null, children || "");
from nanobundle.
if you set jsx mode as preserve
or react
, you have to have import statement import * as React from 'react'
at the top
from nanobundle.
I will try it with rc.12.
from nanobundle.
rc.12 is not exists in npmjs.
how to install this version?
from nanobundle.
i installed rc.12
but It is still not working .
from nanobundle.
Hmm let me take a look.
from nanobundle.
I guess it is because of tree-shaking. Can you try again with actually exporting to your module tree?
from nanobundle.
I see your Button component is compiling properly
from nanobundle.
it is old version compile.
from nanobundle.
I also found other error.
If you define "moduleResolution": "NodeNext", in tsconfig, the following error occurs.
TypeError: Cannot read properties of undefined (reading 'toLowerCase')
@react-elf/shared:build: at result2tsconfig (file:///Users/user/github/test/react-elf/node_modules/tsconfck/dist/index.js:675:83)
@react-elf/shared:build: at parseFile2 (file:///Users/user/github/test/react-elf/node_modules/tsconfck/dist/index.js:622:15)
@react-elf/shared:build: at parseNative (file:///Users/user/github/test/react-elf/node_modules/tsconfck/dist/index.js:588:20)
@react-elf/shared:build: at async it (file:///Users/user/github/test/react-elf/node_modules/nanobundle/bin.min.mjs:151:104)
from nanobundle.
it is old version compile.
So does it means you want to use the new jsxFactory (jsx()
) from React 18?
from nanobundle.
I want it to be built in the form of React.createElement function.
Existing esbuild worked like that.
This worked similarly to vite, so I thought I could use it as it is.
from nanobundle.
rc.13 is just published
from nanobundle.
good.
i will test it .
from nanobundle.
Related Issues (20)
- `--standalone` flag doesn't work
- Bundling Types for a `.cts` File Doesn't Work in a Project With `type` set to `module` HOT 1
- CSS modules
- Support build without bundling HOT 2
- Enable declarationMap by default
- duplicate of tsconfck on the public npm registry HOT 1
- Plan to next build tool
- dev command HOT 5
- Subpath imports condition
- Support CSS bundling
- ESBuild codegen
- Clean command
- Migrate to Clipanion HOT 3
- Dependency Dashboard
- Support for outputting bundles with JSX extensions HOT 1
- `--no-sourcemap` flag not working HOT 1
- How to generate only index.d.ts without bundle files? HOT 3
- Support custom condition
- Support subpath imports
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 nanobundle.