Giter Club home page Giter Club logo

Comments (4)

matthewp avatar matthewp commented on May 5, 2024

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.

duncanhealy avatar duncanhealy commented on May 5, 2024

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.

drwpow avatar drwpow commented on May 5, 2024

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.

drwpow avatar drwpow commented on May 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.