niieani/chunk-splitting-plugin

Compatibility with webpack 4

Open

#30 opened on 2018年6月20日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)JavaScript (4 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (15 stars)
PR merge metrics
 (PR metrics pending)

説明

When trying to use this plugin with webpack v4, I'm getting the error:

const async = !chunk.isInitial()
                         ^

TypeError: chunk.isInitial is not a function
    at chunk (/Users/samypesse/Projects/GitBook/gitbook-new/node_modules/chunk-splitting-plugin/ChunkSplittingPlugin.js:156:26)
    at arrayMap (/Users/samypesse/Projects/GitBook/gitbook-new/node_modules/lodash/lodash.js:660:23)
    at map (/Users/samypesse/Projects/GitBook/gitbook-new/node_modules/lodash/lodash.js:9571:14)
    at flatMap (/Users/samypesse/Projects/GitBook/gitbook-new/node_modules/lodash/lodash.js:9274:26)
    at breakChunksIntoPieces (/Users/samypesse/Projects/GitBook/gitbook-new/node_modules/chunk-splitting-plugin/ChunkSplittingPlugin.js:155:10)

コントリビューターガイド