Giter VIP home page Giter VIP logo

Comments (6)

asadm avatar asadm commented on May 20, 2024

I agree about this particular shorthand pattern ie. ~ for project root. The underlying parcel also supports it. I would count this as a bug in zero, I will look into this soon.

About parsing tsconfig.json.paths and ignoring those paths, I think it would be a good enhancement. If we just address the common patterns (like the ~ usage) this might be just unnecessary effort.

from zero.

TimMensch avatar TimMensch commented on May 20, 2024

It's true that ~ usage will hit the 99th percentile of usefulness. If that's a lot easier, then I'd say it's fine. Was thinking that just checking against the globs would work, but I could be wrong.

from zero.

asadm avatar asadm commented on May 20, 2024

It looks like there is an underlying parcel bug too. I guess I will have to patch that and see if that works. I will try to get this fix up this weekend.

from zero.

asadm avatar asadm commented on May 20, 2024

@TimMensch can you try the installing the latest version. #122 fixes the root imports using ‘~’

from zero.

TimMensch avatar TimMensch commented on May 20, 2024

Thanks for the fast fix! Seems to work great. Closing.

I was testing zero for my site, and it's wonderful for what it does, but I ended up running into a different limitation (or at least a problem I couldn't solve) that made me try Next.js instead -- and now I have a working Next.js environment. I can't remember what the limitation was, though it may have been that I couldn't figure out how to get it to spit out valid AMP HTML? Next.js has native AMP support. There are specific things that AMP sites need, like a <style amp-custom> block, that React and similar don't support well, and I wanted to also use MDX in the same site for content.

The current project is more important to finish than to use the perfect platform. I'll absolutely consider zero for my next project, though.

Thanks again!

from zero.

asadm avatar asadm commented on May 20, 2024

I understand. AMP can be looked into in the future and should be easy to add.

Thanks!

from zero.

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.