0👍
You can use ES2015 syntax inside main,js
npm install jquery –save-dev
import $ from 'jquery';
// or
import jQuery from 'jquery';
// export for others scripts to use
window.$ = $;
window.jQuery = jQuery;
Same goes for bootstrap or any other dependency from npm
Source:stackexchange.com