Patrick Pircher
Patrick Pircher
Here is also a similar implementation directly in ember.js. It contains the full list of all used classes and functions used by inspector. https://github.com/emberjs/ember.js/pull/20580/files
ember fetch is deprecated. but if some addon depends on it. I was able to workaround with vite alias to an app file that just exports fetch & setupFastboot ```js...
> how about making all those URLs relative instead? that doesn't work, because website can open at some level deeper. e.g my-website.com/my-app/current-page and then that doesn't work anymore
Maybe that vendor.js could be removed anyway. And directly import loaderjs in entry point? Other things can also all be imported directly? It would break backwards compatibility though
But then it would access ./my-page/current-page/asset/some-asset.js ? For a src=./asset/some-asset.js
Vite keeps it like that in the output..
It's not a module... That's why
i found that this is already done automatically by vite. https://vitejs.dev/guide/build.html#public-base-path not sure why it was not working for me
Reopening. Vite does only prefix base path to known public files. Which does not work for virtual vendor.js https://github.com/vitejs/vite/blob/fe30349d350ef08bccd56404ccc3e6d6e0a2e156/packages/vite/src/node/plugins/html.ts#L456
> I would hate for us to re introduce this root url concept in vite world between base html tag and using relative paths we have better tools to deal...