diff --git a/resources/assets/js/bootstrap.js b/resources/assets/js/bootstrap.js index bd954e90..ad130ead 100644 --- a/resources/assets/js/bootstrap.js +++ b/resources/assets/js/bootstrap.js @@ -1,5 +1,6 @@ -window._ = require('lodash'); +import _ from 'lodash'; +window._ = _; /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support @@ -19,7 +20,8 @@ try { * CSRF token as a header based on the value of the "XSRF" token cookie. */ -window.axios = require('axios'); +import axios from 'axios'; +window.axios = axios; window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';