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
dynamic imports require a leading comment in the form /* webpackChunkName: "[a-zA-Z0-9-/_]+",? */ eslint(import/dynamic-import-chunkname)
Description
From the docs:
'eager': Generates no extra chunk. All modules are included in the current chunk and no additional network requests are made. A Promise is still returned but is already resolved. In contrast to a static import, the module isn't executed until the call to import() is made.
/* webpackMode: "eager" */ is handy when you want to include a module in the same chunk, but do not want to execute it when the chunk is initially loaded.
Workaround
// See https://github.com/benmosher/eslint-plugin-import/issues/1904// eslint-disable-next-line import/dynamic-import-chunknameimport(/* webpackMode: "eager" */'../a-module-that-requires-some-time-to-initialize')
The text was updated successfully, but these errors were encountered:
Code
Expected result
(No warning)
Actual result
Description
From the docs:
/* webpackMode: "eager" */
is handy when you want to include a module in the same chunk, but do not want to execute it when the chunk is initially loaded.Workaround
The text was updated successfully, but these errors were encountered: