We're using https://github.com/RobinCK/vue-popper via npm install vue-popperjs --save & import Popper from 'vue-popperjs';
Vue.component('popper',Popper);
This works fine except the dist versions of js that it pulls in uses const instead of var and this breaks on iOS9 Safari which is a key browser for our users.
I'm trying to create something in the webpack that before it gets included in the app.js, the node_modules/vue-popperjs/dist/vue-popper.js gets transpiled over the top of node_modules/vue-popperjs/dist/vue-popper.min.js
I've tried literally everything to get this to work, sometimes it's fine with npm run dev, but then npm run watch gets stuck in a loop and production won't run at all.
Can anyone help? Thanks
Edit: We're deploying a Laravel app via Vapor so I can't modify it locally as it pulls the dependencies each time fresh.
require('laravel-mix-polyfill');
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.polyfill({
enabled: true,
useBuiltIns: "usage",
targets: {"ios_saf": 9} // you can add other browsers here as well
});
Thanks for your extended support Bryan, it is appreciated. Must be something going awry somewhere as it still has the issue. I think we'll switch to vue popover and try that.