Giter Club home page Giter Club logo

Comments (3)

ThaUnknown avatar ThaUnknown commented on August 21, 2024 2

yeah, the go-to solution for this is called a router which manages the paths you navigate to, issue is with the framework I'm using I cannot use a good router because I need to use a very specific compiler to get the torrent tech behind Miru working correctly

from miru.

ThaUnknown avatar ThaUnknown commented on August 21, 2024 1

if you're curious I currently use Svelte with Webpack[bundler], I'm get to find a good router for normal Svelte, I'd like to use SvelteKit and it's router because it's actually fucking goated, but its Vite[bundler] only

the reason I need webpack is because of module aliasing and resolution, I need a bundler which can build multiple outputs in multiple different ways, for example:

  • it needs to compile ESM to CJS as Electron doesn't support ESM
  • it needs to compile for a custom enviorment which is both a browser and nodejs, that means it can both access the DOM and node.js API's
  • it needs to compile for an environment which only implements some, but not all node.js api's [electron preload]
  • it needs to compile for a normal website
  • it needs to support module aliasing, aka "replace dependency X with dependency Y while compiling"

all in a single config in a single build. Vite can't do this

if you find a good router that can compare to sveltekit link it and I'll look at it

from miru.

lv01-GreyCat avatar lv01-GreyCat commented on August 21, 2024

It does not sound like an easy fix, that's a shame.
When you say framework, are you talking about Svelte ?
What is it that makes the compiler not allow the usage of a good router if you don't mind me asking ?

from miru.

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.