Ryan Murphy
Ryan Murphy
Adding a +1 to this request, but also wanted to share an example of how the Rollup plugin does this that may address your `.pathname` concern @evanw. https://modern-web.dev/docs/building/rollup-plugin-import-meta-assets/ [If you...
I now see that Rollup plugin was what was linked in the original issue. 😶 Sorry @edoardocavazza!
@evanw re: how Rollup does this — I don't know how popular of a package this is but [`@web/rollup-plugin-import-meta-assets`](https://github.com/modernweb-dev/web/tree/master/packages/rollup-plugin-import-meta-assets) ([docs](https://modern-web.dev/docs/building/rollup-plugin-import-meta-assets/)) is the only plugin I've found that implements something similar,...
Just to add an additional example — [Playwright does a version of this behind the scenes itself](https://github.com/microsoft/playwright/tree/main/packages/playwright-core/src/server/injected). It "injects" helper scripts into every page.
@tomoima525 Hello! I'm not sure if you ever found the answer here, but just in case: https://github.com/apollographql/fullstack-tutorial/blob/7948b85d747300fd4d1596b6173b9ee783431c75/final/server/src/datasources/launch.js#L35-L38 In the `launch.js` file, the `getLaunchById` function is designated as `async`. Because that...
I had a similar issue and the problem with using a blanket `--ignore-scripts` is it affects **all** packages being installed. So for example, I had a project that needed scripts...
Not sure if at the database level, but it's essentially what [`update_or_create()`](https://docs.djangoproject.com/en/2.1/ref/models/querysets/#django.db.models.query.QuerySet.update_or_create) does.
Ah, yes! Was just trying to do this and had the same issue. +1 to this!
Wanted to share how I've had a bit more luck trying to interface with `sass-embedded` as an alternative! First the versions of things I'm working with: Deno: 1.30.3 `npm:sass-embedded`: 1.57.1...
Hey David! The Google Doc API can totally surface things like that (which is **great** and was basically impossible with the old HTML parsing method), and I had initially explored...