@oazmi/esbuild-plugin-deno - v0.4.6
    Preparing search index...

    Function installNpmPackagesDynamic

    • this function indirectly makes the deno or bun runtimes automatically install multiple npm-packages. doing so will hopefully make it available under your project's "./node_modules/" directory, allowing esbuild to access it when bundling code.

      Important

      for the npm-packages to be installed to your project's directory, you must have the "nodeModulesDir" field set to "auto" in your project's "deno.json" configuration file. otherwise, the package will get cached in deno's cache directory which uses a different file structure from node_modules, making it impossible for esbuild to traverse through it to discover the package natively.

      Parameters

      • package_names: string[]

      Returns Promise<void>