Answer the question
In order to leave comments, you need to log in
Is this a bug or feature in webpack with fetch?
Dock config :
new webpack.ProvidePlugin({
'fetch': 'imports?this=>global!exports?global.fetch!whatwg-fetch',
}),
When using fetch and having comments at the end of the file, by the end of the function undefined is added.
Remove comments, undefined disappears:
Entry point:
Exit:
Remove:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question