GithubHelp home page GithubHelp logo

esbuild.github.io's People

Contributors

bl-ue avatar choysen avatar cometkim avatar deining avatar dependabot[bot] avatar dezitter avatar ecco avatar evanw avatar hyrious avatar idranme avatar igorminar avatar jacob-lcs avatar jamalc avatar jonobr1 avatar kinrany avatar kisaragi-hiu avatar martonlederer avatar musou1500 avatar prantlf avatar rmacklin avatar vap0r1ze avatar vezquex avatar zephraph avatar zyinmd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

esbuild.github.io's Issues

Bundling esbuild with esbuild (deno)

I'm trying to bundle a cli application with esbuild that uses esbuild internally to dynamically load modules. Now when i deno run the bundle the cli prints

Usage:
  esbuild [options] [entry points]

Documentation:
  https://esbuild.github.io/

Repository:
  https://github.com/evanw/esbuild
....

Which seems to be the same as when running esbuild itself in cli mode, could there be a scoping problem when bundling files with esbuild that themself consume esbuild as a library? Not however that bundling the same file with deno bundle or running the unbundled file with deno run executes my cli and works as expected.

[Question] Are you open to having a live reload section?

Hi @evanw. Are you open to a pull request that documents how to implement a minimally viable rapid development / live-reload server? I’d be happy to submit a PR that explains the following:

  1. Implement a minimal file watcher using a simple poll-based strategy (Go)
  2. How to incrementally recompile esbuild based on file changes
  3. How to use SSE (server-sent events) so the client browser tabs reload themselves when incremental recompilation is done

Your serve implementation helped me understand why a) native file watching can be a bad idea and b) how to strategically use HTTP servers to delay requests to prevent race conditions, etc., but it didn’t demonstrate to me how to make esbuild respond to filesystem changes and trigger reloads on client browser tabs.

I’d like to help document implementing this kind of dev server architecture from scratch in a few paragraphs with Go code examples.

No worries if you’d rather not, I just thought I’d try to help where I can be usefuk.

Relevant links:

Suggestion: Webpack migration guide

It would be useful to have a guide explaining how to migrate from Webpack 4/5 to esbuild. In particular an example taking a real Webpack config file and building the code with esbuild would be useful:

  • Migrating from webpack.IgnorePlugins
  • Migrating from webpack.DefinePlugin (setting process.env.FOO = someValue)
  • How to migrate code using base64-inline-loader
  • Migrating alias
  • Migrating noParse clauses
  • What to do with currently used additional loaders (like ng-annotate-loader)
  • Migrating from webpack.HtmlWebpackPlugin
  • Migrating from webpack.FaviconsWebpackPlugin
  • Migrating from webpack.BannerPlugin

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.