Dynamic import

参考:

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

Webpack 4 course – part eight. 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

Tagged:

コメントを残す

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