Comments (6)
@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.
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.
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.
+1 this is also happening to me.
from esbuild_deno_loader.
Same here!
from esbuild_deno_loader.
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)
- [ERROR] Directory not empty (os error 39) on build in docker HOT 2
- imports map not working HOT 2
- [plugin deno-loader] Module not found - preact/hook HOT 1
- Using with Deno Deploy HOT 2
- Relative path are not loaded HOT 1
- Module parse failure make the file unwatchable
- Document minimum deno version this works with HOT 1
- npm deps, with dependencies on node libraries are not handled properly HOT 1
- importmap support local path HOT 3
- [ERROR] File name too long HOT 2
- Bug: Failing to treeshake dead imports of sub files that have node type imports in them HOT 2
- Error when importing JSR packages with jsr specifiers: "Importing a JSR package via an HTTPS URL is not implemented."
- Allow Remote Config File
- Top-level await is disallowed in service workers. HOT 2
- Could not resolve react in "@react-three/drei" using deno-loader
- Loader doesn't work with esbuild's stdio option HOT 3
- Preact support
- Unable to build with `npm:*` dependencies HOT 2
- Read permission is always required even with the portable loader
- Plugin breaks non-JS/TS code HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esbuild_deno_loader.