gajus / gajus/prepack-webpack-plugin

Compatibility with old webpack

Open
#21 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
1k
Forks
31
PR merge metrics
No merged PRs in 30d

Description

This doesn't work for older versions of webpack. For compatibility, can you consider changing:

```
const isEntryChunk = (chunk: Object) => {
return chunk.hasRuntime() && chunk.isInitial();
};
```

to:

```
const isEntryChunk = (chunk: Object) => {
return ((chunk.hasRuntime && chunk.hasRuntime()) || chunk.entry) && ((chunk.isInitial && chunk.isInitial()) || chunk.initial);
};
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.