Brev Patterson

Results 12 comments of Brev Patterson

:+1: thanks @jbremmer I've been tinkering recently with this exact goal in mind. Excited to explore your approach (in prod, even!)

If you don't mind using experimental features of the latest Node.js, along with esmodules/`import`/`export`, you can use an [esmodule loader hook](https://nodejs.org/api/esm.html#esm_loaders) to mock SvelteKit's `$app/navigation`-style import aliases. Rough beginner example...

As an update to my [previous post](https://github.com/sveltejs/kit/issues/1485#issuecomment-921491313), I've made a lot of new progress, details are here: https://github.com/sveltejs/kit/issues/19#issuecomment-1041134457 Now supporting: - Handling `import.meta.env`, etc. - Handling aliases like `$lib` and...

@rhyolight broken for me too, I'm seeing the below font+domain error in console: > Font from origin 'http://data.numenta.org' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin'...

@breznak @jefffohl @rhyolight This is rad, thanks for the hard work.

@breznak great find! I'll be pondering, and will be thinking about related topics (semantic folding, ordering, etc.). thanks.

@TorstenDittmann I think you are seeing similar to Issue #6259, please see my comment there for a (temporary?) solution. edit: sorry, Issue #6259

I have been able to get around this (and related bugs) in Vitest by mocking `$app/env`, in my test setup file: ```ts // ./test/setup.ts beforeAll(() => { vi.mock('$app/env', () =>...

Oh, I just accidentally stumbled across this, related? https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%401.0.0-next.445 ``` [breaking] rename $app/env to $app/environment, to disambiguate with $env/... (https://github.com/sveltejs/kit/pull/6334) ```

@breznak Sorry for the slow reply! I've been off deeply focused trying to get a little business off the ground, and 2020 has not been helping much. Once I can...