Skip to content

Commit

Permalink
Fix type resolution for id
Browse files Browse the repository at this point in the history
  • Loading branch information
adierkens committed Apr 25, 2019
1 parent 1a9f6c8 commit 65244a1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
28 changes: 21 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ export default class WebpackInjectPlugin {
this.options = {
entryName: (options && options.entryName) || undefined,
entryOrder: (options && options.entryOrder) || ENTRY_ORDER.NotLast,
loaderID: (options && options.loaderID) || getUniqueID(),
loaderID: (options && options.loaderID) || getUniqueID()
};
}

apply(compiler: Compiler) {
const id = this.options.loaderID;
const id = this.options.loaderID!;
const newEntry = path.resolve(__dirname, `${FAKE_LOADER_NAME}?id=${id}!`);

registry[id] = this.loader;
Expand Down

0 comments on commit 65244a1

Please sign in to comment.