GithubHelp home page GithubHelp logo

Comments (6)

quinn avatar quinn commented on June 10, 2024 1

@haschu I made a fork here which you can use: #95

import { denoPlugins } from 'https://raw.githubusercontent.com/quinn/esbuild_deno_loader/main/mod.ts'

YMMV. it is tailored to my usecase, which is to pass the import through untouched (rather than being resolved by deno's import map, then left as an import)

from esbuild_deno_loader.

kilisio avatar kilisio commented on June 10, 2024

Had to use this:

          if (build.initialOptions.external) {
            for (const external of build.initialOptions.external) {
              if ((resolved.href.startsWith(external)) || (args.path === external)) {
                return { path: resolved.href, external: true };
              }
            }
          }

in order to also ignore modules added to external by the name defined in the import map json file.

from esbuild_deno_loader.

mfulton26 avatar mfulton26 commented on June 10, 2024

I am running into this issue too. @lucacasonato any ideas on how to use esbuild_deno_loader with esbuild's external feature?

from esbuild_deno_loader.

quinn avatar quinn commented on June 10, 2024

+1 this is also happening to me.

from esbuild_deno_loader.

haschu avatar haschu commented on June 10, 2024

Same here!

from esbuild_deno_loader.

BlackAsLight avatar BlackAsLight commented on June 10, 2024

Would very much appreciate if this could be fixed as PeerJS has one link for both Deno and the web, but when bundling it seems to include node:process and node:buffer. Being able to exclude it from being bundled in would simply solve that problem.

This code in the browser works, but when bundled, breaks.

import { Peer } from "https://esm.sh/[email protected]?bundle-deps"

const peer = new Peer()
console.log(peer.id)

from esbuild_deno_loader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.