Dynamic Imports

参考:

import() – Module Methods | Webpack [Official]

Dynamic Imports – Code Splitting | Webpack [Official]

@babel/plugin-syntax-dynamic-import | Babel [Official]

使い方

参考:

Webpack で Dynamic import を行ってみる – Qiita

TypeScript と Webpack を使って Dynamic Import を行う | メモログ

Webpack and Dynamic Imports: Doing it Right – Frontend Weekly – Medium

Code splitting with webpack dynamic import in React | Pusher Blog

Webpack 3, Dynamic Imports, Code Splitting, and Long Term Caching… Made Easy. | CloudBoost

Dynamic imports with prefetch and preload – wanago.io | Marcin Wanago Blog

How to use webpack dynamic imports for submodules? – Stack Overflow

クラスを動的に import する

参考:

Webpack – Dynamically importing a class – Stack Overflow

webpackChunkName

参考:

import() – Module Methods | Webpack [Official]

Webpack and Dynamic Imports: Doing it Right – Frontend Weekly – Medium

Using webpackChunkName with dynamic import changes chunk logic · Issue #4807 · webpack/webpack – GitHub

Why force specific quotes in dynamic-import-chunkname? · Issue #1130 · benmosher/eslint-plugin-import – GitHub

webpackMode

  • "lazy"
  • "lazy-once"
  • "eager"
  • "weak"

参考:

import() – Module Methods | Webpack [Official]

Webpack and Dynamic Imports: Doing it Right – Frontend Weekly – Medium

記事をシェアする:
タグ:

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

Protected by reCAPTCHA