R
R
Roman L.2016-01-04 12:22:10
webpack
Roman L., 2016-01-04 12:22:10

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:
45a0f65a0f844b17b7c9aacb911bd963.png
Exit:
156fbbd946a24283b8e0e6ca51d276a5.png
Remove:
0cc9847fd1c24c8a8a48d2ed3e74198e.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question