Comments (4)
Now I'm questioning if we should be rewriting these at all ๐. Started a discussion on Discord: https://discord.com/channels/830184174198718474/830184175176122389/833693348656185344
from astro.
adding type="module" to a script in a svelte file e.g. kitchen sink example throws following error
Error: Cannot find module './transformers/module'
Require stack:
- /home/${USER}/Documents/me/github.com/snowpackjs/astro/node_modules/svelte-preprocess/dist/autoProcess.js
- /home/${USER}/Documents/me/github.com/snowpackjs/astro/node_modules/svelte-preprocess/dist/index.js
- /home/${USER}/Documents/me/github.com/snowpackjs/astro/node_modules/@snowpack/plugin-svelte/plugin.js
- /home/${USER}/Documents/me/github.com/snowpackjs/astro/node_modules/snowpack/lib/index.js
__snowpackBuildDetails: { name: '@snowpack/plugin-svelte', step: 'load' }
from astro.
This seems like the same root issue as #96, I believe? Even though itโs a bit different as the JS gets bundled, I think they both address the core issue, which is how much do users expect us to transform? Or worded another way: when do users want us to rewrite their imports?
This is a tricky question we may either need an API for, or some more clear ruling on.
from astro.
Oh but that said, this issue being more about the .
itself is still a bug we should address. Just trying to point out the overlap.
from astro.
Related Issues (20)
- onTouchStart not being attached to DOM elements when using jsx HOT 8
- Rendering React component does not work HOT 4
- `@astrojs/mdx`: โsmart quotesโ are broken in HTML headers HOT 2
- React hydration error with react table but works fine the same example in next.js HOT 2
- ViewTransitions breaking Radix/Shadcn ui Dropdown Functionality in Astro App HOT 7
- Relative paths in css url() references get double encoded HOT 4
- @astro/node gcloud [ERROR] TypeError: Error: Unexpected end of multipart data HOT 4
- Astro DB on Cloudflare: Build fails with "Cannot create a remote client: missing app token" error. HOT 5
- Astro DB: push with --force-reset doesn't seem to work. HOT 2
- A command field in astro:config:setup returns build value while running check command HOT 3
- Astro DB: `astro preview` fails with "Cannot create a remote client: missing app token"
- Bun & Tailwind - Unexpected reading - node_modules/postcss-load-config/src/options.js HOT 3
- [View Transitions] Using client:only in dev causes page reloads on view transitions HOT 3
- @astrojs/mdx>=2 unnecessarily removes whitespaces and line breaks from multiline strings in Astro components props supplied from Remark HOT 1
- Toolbar audit incorrectly flagging images as above the fold HOT 3
- React component not showing only on dev HOT 3
- Astro DB: there is no way of creating a primary key composed of several columns HOT 2
- Warning: ReactDOMServer.renderToStaticNodeStream() is deprecated. HOT 2
- npx astro add fails on Node 22 HOT 6
- Viewtransition calls page twice on hover (prefetch) and on click HOT 6
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 astro.