並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 48件

新着順 人気順

esbuildの検索結果1 - 40 件 / 48件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

esbuildに関するエントリは48件あります。 javascriptjswebpack などが関連タグです。 人気エントリには 『Webpackの70倍!Go言語で書かれたJavascriptバンドラー「esbuild」をベンチマークテストしてみた』などがあります。
  • Webpackの70倍!Go言語で書かれたJavascriptバンドラー「esbuild」をベンチマークテストしてみた

    Webpackの70倍!Go言語で書かれたJavascriptバンドラー「esbuild」をベンチマークテストしてみた esbuild https://github.com/evanw/esbuild/ esbuildの特徴 複数モジュールの依存関係を解決し、1つにまとめるバンドラーは、現代のフロントエンド開発においてなくてはならないツールの1つ。 The State of JavaScript 上位5つに人気が集中し、なかでもWebpackのシェアは実に約60%に達しています。 今回ご紹介する「esbuild」は、Go言語で書かれた高速なバンドラーで、これらメジャーなツールとの性能比較(ベンチマークテスト)をやってみました。 公式のベンチマーク結果 計測方法は、three.jsライブラリを10回複製し、キャッシュなしで単一のバンドルをゼロから構築しています。なんと、Webpackに比べて

      Webpackの70倍!Go言語で書かれたJavascriptバンドラー「esbuild」をベンチマークテストしてみた
    • [Web フロントエンド] esbuild が爆速すぎて webpack / Rollup にはもう戻れない - 株式会社カブク

      TypeScript + Preact + Material UI + material-table で作っている管理画面のビルドツールを Rollup から esbuild に変えたお話です。 2021/01/07 追記 esbuild に新しく CSS ローダーやプラグイン機構が実装されたので紹介記事を書きました! esbuild の機能が足りないならプラグインを自作すればいいじゃない https://www.kabuku.co.jp/developers/create-your-own-esbuild-plugin はじめに これまでの JavaScript ビルドツールと私 以前は私も定石通り「アプリには webpack、ライブラリには Rollup」をビルドに利用していましたが、近年はアプリのビルドにも Rollup を利用することが多くなり、 webpack を利用することはな

      • DevTools上でesbuildするChrome拡張を書いた - 詩と創作・思索のひろば

        社内ではドキュメントの共有に Scrapbox が活発に使われており、するといきおい UserCSS や UserScript もさかんである。具体的には、/customize という共有のプロジェクトがあってみんなの自慢の装飾やカスタマイズが共有されている。これを個々人で import して使うんである。 こんな感じ。 自分の場合は /motemen/UserCSS/common に常に適用したいスタイルを書いておいて各プロジェクトから読み込んでいる。このページからさらに、共有プロジェクトや他人の個人プロジェクトページからよさそうな設定を import している次第。 つまりは多段インポート。こういうことを続けていると、だんだんと読み込みの遅さが気になってくる。こういうのはバンドルすればいいのだけど、巷のツールを普通に使うことはできない。インポートしてるリソースに認証がかかっているからだ

          DevTools上でesbuildするChrome拡張を書いた - 詩と創作・思索のひろば
        • GitHub - evanw/esbuild: An extremely fast bundler for the web

          A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

            GitHub - evanw/esbuild: An extremely fast bundler for the web
          • ABEMAにesbuildを導入してWebのバンドル処理を69倍高速化した話 | CyberAgent Developers Blog

            こんにちは,テレビ&ビデオエンターテインメント「ABEMA」で Web エンジニアをしている野口 (@nodaguti) です.今回は,ABEMA の開発組織で行われている「改善week」という制度を使って esbuild というバンドラーを ABEMA Web に導入し,開発ビルドのバンドル処理を最大 69 倍高速化した話をご紹介します. 改善weekとは ABEMA では事業の成長に合わせて機能開発も活発に行われています.そのため,今でもスプリントごとに新しい機能の追加や既存機能の改善など数多くの施策がリリースされています. 各事業施策は目標としている KPI の達成を目的として設計されています.それゆえに KPI と直接関連しにくい部分のデザイン改善やリファクタリング,開発体験 (DX) 向上などは施策の合間に行う形になりがちでした.また,アニメーションの見直しやアプリの Debug

              ABEMAにesbuildを導入してWebのバンドル処理を69倍高速化した話 | CyberAgent Developers Blog
            • Rails 7 で React & TypeScript を導入する方法(tsx, esbuild, jsbundling-rails) - LEFログ:学習記録ノート

              ※この記事では「新しくRails 7 アプリを作成するときのこと」を想定していますが、Rails 6を7に上げるときにもそれなりに役立つ情報だと思います! 結論 rails newのときにesbuildを指定してあげれば、あとはJavaScriptファイルや.jsxファイルを、.tsxにしてあげるだけでOK。 型チェックや構文チェックを導入するには少し注意が必要。 概要 現在、Rails 7を使ってフロントエンドを構築する方法には、大きく分けて3種類あります。 importmapsを使って、素のJavaScriptを使ってフロントエンドを作る esbuildを使って、JSXファイルを使ってフロントエンドを作る Rails 7をAPIモードにして、フロントエンドはNextjsで作る 自分はこの2番めの「esbuildを使ってフロントエンドを作る」を選択しました。理由は、Railsのslim上

                Rails 7 で React & TypeScript を導入する方法(tsx, esbuild, jsbundling-rails) - LEFログ:学習記録ノート
              • esbuild - An extremely fast bundler for the web

                Above: the time to do a production bundle of 10 copies of the three.js library from scratch using default settings, including minification and source maps. More info here.Our current build tools for the web are 10-100x slower than they could be. The main goal of the esbuild bundler project is to bring about a new era of build tool performance, and create an easy-to-use modern bundler along the way

                  esbuild - An extremely fast bundler for the web
                • esbuild で Node.js を TypeScript 化する

                  TLDR バックエンドのコードを esbuild で TypeScript 化した ビルド時間は1秒ほど tsc に比べて10倍以上高速化できた 特に問題なくプロダクションで安定稼働している esbuild はいつ使えるのか みなさん webpack は使っていますか?まだまだ広く使われていると思いますが、最近では esbuild の事例もたまに見るようになってきました。 ABEMAにesbuildを導入してWebのバンドル処理を69倍高速化した話 | CyberAgent Developers Blog esbuild が爆速すぎて webpack / Rollup にはもう戻れない | Kabuku Developers Blog 現時点で esbuild をフロントエンドの Bundler として導入するには、以下のような問題があります。 ES5にトランスパイルできない Code S

                    esbuild で Node.js を TypeScript 化する
                  • ts-node の代わりに esbuild-register を使ってスピードアップ

                    ts-node でも型チェックを外すオプションがあることをコメントで教えてもらいました。型チェックをかけない esbuild と同様の条件としたほうが、より平等な計測結果になりますので、計測し直しました。 参考 https://github.com/TypeStrong/ts-node#typechecking Node.js で TypeScript をトランスパイルしながら実行できる、 esbuild-register というパッケージがあります。 非常に速い esbuild を使いながら雑に TypeScript が実行できちゃう頼もしいパッケージです。 今までのメインプレイヤーであった ts-node よりも速いです。次の小さなスクリプトでも 1.5 倍程度の速度が出ています。 function wait(duration: number) { return new Promise

                      ts-node の代わりに esbuild-register を使ってスピードアップ
                    • GitHub - privatenumber/minification-benchmarks: 🏃‍♂️🏃‍♀️🏃 JS minification benchmarks: babel-minify, esbuild, terser, uglify-js, swc, google closure compiler, tdewolff/minify

                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                        GitHub - privatenumber/minification-benchmarks: 🏃‍♂️🏃‍♀️🏃 JS minification benchmarks: babel-minify, esbuild, terser, uglify-js, swc, google closure compiler, tdewolff/minify
                      • Yarn 3.0 🚀🤖 Performances, ESBuild, Better Patches, ...

                        Yarn 3.0 🚀🤖 Performances, ESBuild, Better Patches, ... Hello! Long time no see! Back in December, we decided to start working on our next major release, the 3.0. It took a bit of time to do everything we intended to do, but here we are! So let's talk a bit about what it changes, and what it brings. Note that these are only the highlights, the full changelog is much more comprehensive. And if you

                          Yarn 3.0 🚀🤖 Performances, ESBuild, Better Patches, ...
                        • esbuild を使って AWS Lambda (Node.js) を2秒でアップデートする

                          はじめに esbuild のビルド時間の速さに感動して、個人プロダクトで使っている AWS Lambda (Node.js) をなるべく速く更新できるようにしたいな、と思ってやってみた投稿です。 おことわり タイトルに2秒と書いていますが、当然どんな環境でも2秒でできるわけではありませんのでご注意ください。 使用するソースコードの内容によって、デプロイする時間も変わります インターネットの回線速度やAWSリージョンによって、デプロイする時間も変わります 参考までに、私の通信速度はこのぐらいでした。 その他 AWS の状況などの要因でも変わるかもしれません。 「参考:私の個人環境の場合」の章にも書いていますが、私が実際に使っている Lambda 関数は約4.2秒でアップデートできます。 高速にデプロイしたい理由 ローカルでも AWS Lambda の環境をある程度まで再現して開発することは可

                            esbuild を使って AWS Lambda (Node.js) を2秒でアップデートする
                          • React + esbuildの開発環境にSASSを導入する - KAKEHASHI Tech Blog

                            こんにちは!カケハシにて薬局と患者の関係性を向上させるためのツールである 患者リスト というWEB業務アプリケーションを開発している小室と申します。 本プロダクトのフロントエンドの開発環境としては、React + esbuildを採用しており、採用の経緯や実践している環境構築方法などは以下の通り、TechPlayやQiitaなどに記事を投稿してきました。 TechPlay: 新規事業プロダクト開発時の技術選定どうやった? スライド Qiita: esbuild + React(TS) で実現する超軽量な開発環境 しかしながら、esbuildは標準でsassに対応しておらず、今までの環境ではCSSを利用していたのですが、プロダクトの成長と共にCSSで書き続けることが苦痛になってきました。 そこで、本記事では React + esbuildの爆速開発環境に、さらに sass を導入していく方法

                              React + esbuildの開発環境にSASSを導入する - KAKEHASHI Tech Blog
                            • Rails: Webpackをesbuildに移行してJSのビルドを縮小・高速化(翻訳)|TechRacho by BPS株式会社

                              概要 元サイトの許諾を得て翻訳・公開いたします。 英語記事: How I migrated a Rails app from Webpack to esbuild and got smaller and faster JS builds | Arkency Blog 原文公開日: 2022/08/29 原著者: Jakub Kosiński サイト: Arkency 原文の章立ての一部を訳文で変更しています。 先週、私はJavaScriptコードが30万行を超えるかなり大規模なプロジェクトで、Webpack 4をesbuildに移行する作業を担当しました。私たちのRailsプロジェクトではJavaScriptスタックをメインアプリケーションに統合するのにWebpackerを使っていました。ここ数か月はもっぱら長時間のビルドと格闘し続け、さらにWebpackerが推奨ライブラリでなくなったこ

                                Rails: Webpackをesbuildに移行してJSのビルドを縮小・高速化(翻訳)|TechRacho by BPS株式会社
                              • 【開発】esbuildを使ってJavaScriptのビルドを264倍早くしました | SocialDog Tech Blog

                                こんにちは。株式会社SocialDog人事のまなてぃです。 こちらは、過去にリリースしたTech Blogです! SocialDogの志潟寛生です。 この記事では、2021年10月にwebpackからesbuildに移行することで、SocialDogのCIビルドのうち、JavaScript部分を264倍早くした事例についてご紹介します。 モダンなビルドツールであるesbuildに移行した際に発生したトラブルとその対処についてご紹介できればと思います。 ビルドが遅い問題esbuildに移行する以前は、Cypressで使用するコードはwebpackでビルドしていました。 Cypressを並列化するなどして何とか高速化していたものの、webpackのビルド時間には9分50秒ほど掛かっていました。webpackのビルドが終わらなければ後続の依存したタスクが実行できないため、CIの実行時間の大きなボ

                                  【開発】esbuildを使ってJavaScriptのビルドを264倍早くしました | SocialDog Tech Blog
                                • 機能が無いことに依存していた例 esbuild-register編

                                  上の引用部分をよく読むと、Experimentalと書いてあるのが目につきます。通常、実験的な機能は安定しているとはみなされず、メジャーアップデートではなくても壊れうるものと考えられます。 実際、ここで使われているNode.jsの--loaderオプションも実験的機能です。そのため、マイナーアップデートで壊れたとしても取り立てて騒ぐことではないようにも思えます。 しかし、今回の壊れ方の中身まで見ると、実験的機能だから壊れたというより、機能追加によって壊れたと見なした方が適当に思えます。そこで、この記事では「機能が無いこと」に依存していた例として紹介します。 ちなみに、このESM向けフックの機能は、Node.js 20.6.0で「Release Candidate」という安定一歩手前の状態に昇格しました。 動かなくなったことはこちらのissueで報告されています。このissueでは、esbu

                                    機能が無いことに依存していた例 esbuild-register編
                                  • GitHub - unjs/unplugin: Unified plugin system for Vite, Rollup, Webpack, esbuild, rolldown, and more

                                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                      GitHub - unjs/unplugin: Unified plugin system for Vite, Rollup, Webpack, esbuild, rolldown, and more
                                    • 🔥 Battle for the Bundling time: esbuild — a JavaScript bundler and minifier written on Golang

                                      🔥 Battle for the Bundling time: esbuild — a JavaScript bundler and minifier written on Golang Introduction In this crazy world, it has become so difficult to secure leadership in at least one discipline. And now, a new battle has already begun: the speed of assembly of bundle — a measure to determine the best JavaScript bundler... Hello, friend! And let the battle begins! ✊ 📝 Table of contents B

                                        🔥 Battle for the Bundling time: esbuild — a JavaScript bundler and minifier written on Golang
                                      • esbuild - FAQ

                                        This is a collection of common questions about esbuild. You can also ask questions on the GitHub issue tracker. Why is esbuild fast? Benchmark details Upcoming roadmap Production readiness Anti-virus software Outdated version of Go Minified newlines Avoiding name collisions Top-level var #Why is esbuild fast?Several reasons: It's written in Go and compiles to native code. Most other bundlers are w

                                          esbuild - FAQ
                                        • TypeScriptのビルドをesbuildで置き換えてみる

                                          はじめに 簡単なサンプルプロジェクトを作ったのでこちらに置いておきます: 本記事ではnode環境でもともと tsc コマンドでビルドを行なっていた環境から esbuild を使った環境への移行をしたい場合のガイドを書きます。 インストール npm install -D esbuild 注意点など TypeScript の項を読んでみるといくつか注意点。 TSサポート(.ts .tsx)はデフォルトで入っているので、特別必要なことはない ただし、babelと同じくトランスパイルはしてくれるが、型チェックはしてくれない tsc --noEmit を別で走らせてチェックはした方がよい TSにしか存在しないシンタックスもちゃんと動作する tsconfig.jsonでisolatedModules を有効にする必要がある ファイルごとに並列でビルドするので、ビルド時にimportされたものが型なのか

                                            TypeScriptのビルドをesbuildで置き換えてみる
                                          • TypeScriptで作ったpackageをesbuildを使ってnpmに公開するまで

                                            const { build } = require('esbuild') const { dependencies } = require('./package.json') const entryFile = 'src/index.ts' const shared = { bundle: true, entryPoints: [entryFile], external: Object.keys(dependencies), logLevel: 'info', minify: true, sourcemap: false, } build({ ...shared, format: 'esm', outfile: './dist/index.esm.js', target: ['ES6'], }) build({ ...shared, format: 'cjs', outfile: './d

                                              TypeScriptで作ったpackageをesbuildを使ってnpmに公開するまで
                                            • Node.js のビルドツール「esbuild」について!

                                              はじめに esbuild は、キャッシュなしで高速なビルドを可能とする Node.js のビルドツールです。 ビルドツールには、esbuild の他に、Webpack、Gulp、Parcel、Rollup、Browserify、FuseBox などがあります。 私自身が webpack を普段使っていて、ビルドに時間がかかりすぎているのが気になり、esbuild について調べてみようと思いました。 esbuild の特徴としては、 キャッシュなしでの高速なビルド ES6 と CommonJS をサポート ES6 の Tree shaking 対応(利用されていないコードの除去) JavaScript と Go による API TypeScript と JSX をサポート ソースマップの生成 ソースコードの最小化 プラグイン(現在、experimental で v1.0.0 より前に対応予定

                                                Node.js のビルドツール「esbuild」について!
                                              • GitHub - egoist/esbuild-register: Transpile JSX, TypeScript and esnext features on the fly with esbuild

                                                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                  GitHub - egoist/esbuild-register: Transpile JSX, TypeScript and esnext features on the fly with esbuild
                                                • Blazing fast TypeScript with Webpack and ESBuild

                                                  Recently, I migrated a project I've been working on to TypeScript. I decided to use Webpack in combination with esbuild loader. The reason being esbuild ecosystem is still relatively new when compared to other bundlers like Webpack, rollup, parcel etc. in terms of plugins and loaders. Code for this article is available here. I've also made a video for you, if you're a visual learner like me! What

                                                    Blazing fast TypeScript with Webpack and ESBuild
                                                  • webpack or esbuild: Why not both? - LogRocket Blog

                                                    John Reilly MacGyver turned Dev 🌻❤️ TypeScript / ts-loader / fork-ts-checker-webpack-plugin / DefinitelyTyped: The Movie Builds can be made faster using tools like esbuild. However, if you’re invested in webpack but would still like to take advantage of speedier builds, there is a way. In this tutorial, we’ll show you how to use esbuild alongside webpack with esbuild-loader. The world of web deve

                                                      webpack or esbuild: Why not both? - LogRocket Blog
                                                    • Release v0.21.0 · evanw/esbuild

                                                      This release doesn't contain any deliberately-breaking changes. However, it contains a very complex new feature and while all of esbuild's tests pass, I would not be surprised if an important edge case turns out to be broken. So I'm releasing this as a breaking change release to avoid causing any trouble. As usual, make sure to test your code when you upgrade. Implement the JavaScript decorators p

                                                        Release v0.21.0 · evanw/esbuild
                                                      • webpackとesbuild-loaderで爆速なVue開発環境を構築しよう

                                                        npm i -D esbuild-loader fork-ts-checker-webpack-plugin html-webpack-plugin postcss-loader sass-loader css-loader thread-loader vue-loader vue-style-loader node-sass autoprefixer cssnano { "dependencies": { "vue": "^2.6.14" }, "devDependencies": { "@types/webpack": "^5.28.0", "autoprefixer": "^10.2.6", "css-loader": "^5.2.6", "cssnano": "^3.10.0", "esbuild-loader": "^2.13.1", "fork-ts-checker-webpa

                                                          webpackとesbuild-loaderで爆速なVue開発環境を構築しよう
                                                        • GitHub - rsms/estrella: Lightweight and versatile build tool based on the esbuild compiler

                                                          Estrella is a lightweight and versatile build tool based on the fantastic esbuild TypeScript and JavaScript compiler. Rebuild automatically when source files change Build multiple projects at once, in parallel TypeScript diagnostics run in parallel TypeScript diagnostics are optional even for TypeScript projects Ability to remap TSXXXX TypeScript diagnostic severity levels, for example to treat so

                                                            GitHub - rsms/estrella: Lightweight and versatile build tool based on the esbuild compiler
                                                          • esbuild-loader 試してみたら開発ビルドが 2〜3 倍速くなった話 - Sansan Tech Blog

                                                            こんにちは。Eight でエンジニアをしている鳥山(@pvcresin)です。 散歩が趣味なので、暖かくなってきて嬉しい今日このごろです。 さて今回は Web フロントエンドのビルド時間短縮のため、esbuild-loader を導入した話をしたいと思います。 背景 ビルドにかかる時間はプロダクトが大きくなるにつれてじわじわ伸びていき、開発者体験(DX)を悪くする原因となるため、常に短縮する方法を考える必要があります。 Eight の Web フロントエンドは主に TypeScript・React で開発を行っており、ビルドには webpack を使用していますが、 ビルド時間の大部分はこの TypeScript や React の JSX 記法を JavaScript に変換する処理の時間です。 そこで、この処理を代替することのできるより高速なツールを使うことでビルド時間を短縮しようと考

                                                              esbuild-loader 試してみたら開発ビルドが 2〜3 倍速くなった話 - Sansan Tech Blog
                                                            • Safari deopt with a large ESBuild bundle · Issue #478 · evanw/esbuild

                                                              You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                Safari deopt with a large ESBuild bundle · Issue #478 · evanw/esbuild
                                                              • JavaScriptバンドラのEsbuildが10-100倍速いバンドル時間を主張

                                                                Spring BootによるAPIバックエンド構築実践ガイド 第2版 何千人もの開発者が、InfoQのミニブック「Practical Guide to Building an API Back End with Spring Boot」から、Spring Bootを使ったREST API構築の基礎を学んだ。この本では、出版時に新しくリリースされたバージョンである Spring Boot 2 を使用している。しかし、Spring Boot3が最近リリースされ、重要な変...

                                                                  JavaScriptバンドラのEsbuildが10-100倍速いバンドル時間を主張
                                                                • GitHub - rails/jsbundling-rails: Bundle and transpile JavaScript in Rails with esbuild, rollup.js, or Webpack.

                                                                  Use Bun, esbuild, rollup.js, or Webpack to bundle your JavaScript, then deliver it via the asset pipeline in Rails. This gem provides installers to get you going with the bundler of your choice in a new Rails application, and a convention to use app/assets/builds to hold your bundled output as artifacts that are not checked into source control (the installer adds this directory to .gitignore by de

                                                                    GitHub - rails/jsbundling-rails: Bundle and transpile JavaScript in Rails with esbuild, rollup.js, or Webpack.
                                                                  • GitHub - antfu/esbuild-node-loader: Transpile TypeScript to ESM with Node.js loader.

                                                                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                      GitHub - antfu/esbuild-node-loader: Transpile TypeScript to ESM with Node.js loader.
                                                                    • Speed up your TypeScript monorepo with esbuild

                                                                      TypeScript monorepos are a great way to organize medium-to-big size projects. TypeScript improves the developer experience by adding type-checking and a deep IDE integration. And using a monorepo helps in scaling your project(s). Compared to plain JavaScript, however, TypeScript adds an additional compilation layer to your project, which may slow down the developer experience. While the native Typ

                                                                        Speed up your TypeScript monorepo with esbuild
                                                                      • esbuild/architecture.md at main · evanw/esbuild

                                                                        Architecture Design principles Overview Scan phase Compile phase Notes about parsing Symbols and scopes Constant folding TypeScript parsing Notes about linking CommonJS linking ES6 linking Hybrid CommonJS and ES6 modules Scope hoisting Converting ES6 imports to CommonJS imports The runtime library Tree shaking Code splitting Notes about printing Symbol minification Architecture Documentation This

                                                                          esbuild/architecture.md at main · evanw/esbuild
                                                                        • esbuildがwebpackより187倍早いらしいので環境構築しよう - Qiita

                                                                          はじめに 久しぶりの投稿になります。 今回は以下の記事で、esbuidがすごい!!という話を聞きつけこの記事を書くことにしました。 参考: [Web フロントエンド] esbuild が爆速すぎて webpack / Rollup にはもう戻れない どのくらいすごいのでしょうか? 参考に挙げている記事によると esbuild は Go 言語で書かれた JavaScript および TypeScript のビルドツールです。 esbuild 単体でトランスパイル + バンドル + ミニファイできます。 JSX / TSX もサポートされています。そしてめっちゃくちゃ速いという触れ込みです。最初から速度を意識して無駄がないように書かれており、構文解析・出力・ソースマップ生成は並列化され、ネイティブコードで動作します。公式の README では three.js のビルドが Rollup + t

                                                                            esbuildがwebpackより187倍早いらしいので環境構築しよう - Qiita
                                                                          • esbuildに乗り換えたらビルド時間が劇的に改善された話 | PR TIMES 開発者ブログ

                                                                            こんにちは、フロントエンドエンジニアのやなぎ( @apple_yagi )です。 PR TIMESでは、これまでReact/TypeScriptのコードをビルドする際にWebpackを使用していましたが、コード量が増えるごとにビルドにかかる時間が増えてきました。 そこでesbuildを導入し、ビルド時間の短縮に取り組んだのでご紹介いたします。 esbuildとは esbuildはGo言語で実装されたJavaScript/TypeScriptのビルドツールで、公式ドキュメントには従来のビルドツールと比べて10~100倍速くビルドできると書かれています。 esbuildが提供している主な機能は以下の通りです。(2022/05/30 現在) キャッシュなしでの高速なビルドES6 と CommonJS をサポートES6 の Tree shaking 対応(利用されていないコードの除去)JavaSc

                                                                              esbuildに乗り換えたらビルド時間が劇的に改善された話 | PR TIMES 開発者ブログ
                                                                            • esbuild の機能が足りないならプラグインを自作すればいいじゃない - 株式会社カブク

                                                                              Rollup から esbuild に乗り換えた null です。 [Web フロントエンド] esbuild が爆速すぎて webpack / Rollup にはもう戻れない https://www.kabuku.co.jp/developers/ultrafast-tsx-build-tool-esbuild Webpack や Rollup の遅さにイライラしている方はたくさんいらっしゃると思います。かといってモジュールバンドラーの乗り換えなんてそう簡単にできるものでもありません。まして esbuild には機能 x がないじゃないですか、上記記事によればプラグインシステムもないし… 時代は変わりました。上記記事はすっかり古くなってしまいました。当時(v0.5.3)未実装だったいくつかの重要な機能が現在(v0.8.29)では利用可能になっています。 特筆すべきは CSS ローダーとプ

                                                                                esbuild の機能が足りないならプラグインを自作すればいいじゃない - 株式会社カブク
                                                                              • esbuild でビルドするときのスクリプト

                                                                                最近ライブラリをビルドするときはもっぱら esbuild を使っている。 esbuild を使うときには大体 ./scripts/build.mjs みたいなのを用意している。この記事では、自分が使っているビルドスクリプトの雛形を紹介する。 Stage 3 の Import Assertions と JSON modules を使って package.json を取得するので、Node.js v17 系が必要になる。 環境変数 WATCH に true を渡しておくとウォッチモードになる。 各種設定は用途に合わせてお好みで。 import { build } from "esbuild"; import pkg from "../package.json" assert { type: "json" }; const dependencies = Object.keys(pkg.depen

                                                                                  esbuild でビルドするときのスクリプト
                                                                                • import.meta.url を esbuild で CJS に変換する

                                                                                  メモ ES2020 の機能で import.meta というのがあります。 import.meta はモジュールのメターデータを含むオブジェクトです。ブラウザや Node.js では import.meta.url というプロパティが生えています。 これは import.meta.url が評価されたモジュールのファイルの URL を表すプロパティです。 Node.js では、ESM 環境下で createRequire をしたり __filename や __dirname に相当するものを取得する用途等でよく使われます。 import module from "node:module"; const require = module.createRequire(import.meta.url); import path from "node:path"; import url from

                                                                                    import.meta.url を esbuild で CJS に変換する

                                                                                  新着記事