gajus / gajus/prepack-loader

Compatibility with old webpack?

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
31
Forks
4
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.