Popper-core: Avoid loading popper.js.map

Created on 14 Sep 2017  路  2Comments  路  Source: popperjs/popper-core

I'm importing Popper and compiling it using Webpack (Laravel Mix):

import Popper from 'popper.js';
window.Popper = Popper;

Sadly I see browsers trying to download popper.js.map which isn't present on the server. How can I include popper without the reference to the map?

Most helpful comment

@tillkruss
It's been a while but I was finally able to fix this issue myself by excluding source maps for Popper.js.

https://stackoverflow.com/a/49946403/3446655

I wanted to share this for anyone else who might land here looking for a solution.

All 2 comments

This is probably a question for webpack or laravel.

The source maps are provided together with the builds. So they should get included automatically.

@tillkruss
It's been a while but I was finally able to fix this issue myself by excluding source maps for Popper.js.

https://stackoverflow.com/a/49946403/3446655

I wanted to share this for anyone else who might land here looking for a solution.

Was this page helpful?
0 / 5 - 0 ratings