Comments (3)
BTW, there seems to be no doubt that esbuild is erasing import attributes.
That looks like a bug in esbuild. They were initially introduced in node 21 but recently backported into 18 and 20. I opened evanw/esbuild#3778.
from vite.
Maybe duplicate of #14674, at least I noticed the same bug that vite incorrectly strips import assertions during compilation against a node18
target. esbuild alone preserves it fine with a node18
target.
from vite.
In my case, I feel the problem in processing vite.config.ts, not in the bundling of app itself.
Config files are bundled in a different manner than the app itself, and their settings are hard-coded.
BTW, there seems to be no doubt that esbuild is erasing import attributes.
target: ["node18"]
: https://esbuild.github.io/try/#dAAwLjIxLjMALS10YXJnZXQ9Im5vZGUxOCIAaW1wb3J0IGRhdGEgZnJvbSAiZXh0ZXJuYWwuanNvbiIgd2l0aCB7IHR5cGU6ICJqc29uIiB9target: ["node22"]
: https://esbuild.github.io/try/#dAAwLjIxLjMALS10YXJnZXQ9Im5vZGUyMiIAaW1wb3J0IGRhdGEgZnJvbSAiZXh0ZXJuYWwuanNvbiIgd2l0aCB7IHR5cGU6ICJqc29uIiB9
from vite.
Related Issues (20)
- Env vars will not be inserted into assets if the asset is prefixed with an extra slash on request
- Build with scss additional data HOT 3
- (plugin:vite:vue) v-slot can only be used on components or <template> tags
- Vite's generated build files always include filename, linenumber and columnnumber info HOT 3
- It is not possible to re-import after a failed import. HOT 1
- [Bug Report] 5.2.12 regression - dynamic css import will cause MODULE_NOT_FOUND in SSR build HOT 2
- worker.rollupOptions.output does not control output directory bug has returned in v5.2.0 HOT 3
- react+vite项目,在生产环境重新发布后会偶现报错:the requested module 'xxx.js' dose not provide an export named 'xxx' HOT 2
- Cannot use import statement outside a module || when using @uiw/react-markdown-editor HOT 1
- (Instant+Access) FREE Paysafecard Gift Card Code Generator 2024 New Updated
- (Free) Paysafecard Gift Card Generator Codes 2024
- FREE Paysafecard Gift Card (2024) Codes Generator No Human Verification No Survey
- fReE!!✔Paysafecard Gift Card Generator Codes 2024
- $100 Free Paysafecard Gift Card (2024) Codes Generator No Human Verification No Survey
- $100 Free Google Play Gift Card Codes - Free Redeem Codes 2024!
- [[GeT-fReE!]] $100 Free Google Play Gift Card Codes - Free Redeem Codes 2024!
- Free Google Gift Card (Redeem Code) Generator 2024
- $100 Free Google Play Gift Card Codes Instantly 2024
- (Unused) Free Google Play Gift Card Redeem Codes 2024
- Vite Plugin Legacy unable to build BigInt HOT 2
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 vite.