We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using denoPlugins with esbuild.server every reload of the page triggers a download of the imports.
denoPlugins
esbuild.server
Is there a way to cache the modules? I tried with https://github.com/dalcib/esbuild-plugin-cache but doesn't seem to work with the current version of esbuild.
Here is my bundle.ts file:
import * as esbuild from "https://deno.land/x/[email protected]/mod.js"; import { denoPlugins } from "https://deno.land/x/[email protected]/mod.ts"; const ctx = await esbuild.context({ entryPoints: ["./www/index.tsx"], outfile: "./www/dist/main.js", bundle: true, format: "esm", target: "es2020", platform: "browser", plugins: [ { name: "json", setup: (build) => build.onLoad({ filter: /\.json$/ }, () => ({ loader: "json" })), }, ...denoPlugins(), ], publicPath: "./www/public", }); await ctx.watch(); await ctx.serve({ servedir: "./www", port: 3000, });
The text was updated successfully, but these errors were encountered:
Are you running in Deno CLI or on Deno Deploy?
Sorry, something went wrong.
Also, your plugin array is set up incorrectly. See https://github.com/lucacasonato/esbuild_deno_loader#using-with-other-plugins
No branches or pull requests
Using
denoPlugins
withesbuild.server
every reload of the page triggers a download of the imports.Is there a way to cache the modules? I tried with https://github.com/dalcib/esbuild-plugin-cache but doesn't seem to work with the current version of esbuild.
Here is my bundle.ts file:
The text was updated successfully, but these errors were encountered: