Skip to content Skip to sidebar Skip to footer

How To Import A Jquery Plugin Into A Babel App

So I have a modern javascript app build using ES6 modules and transpiled by babel. In this app, I need to use a jQuery plugin for some DOM manipulations. I don't want to globally

Solution 1:

You will need to require the plugin:

import $ from 'jquery';
require('path-to-plugin');

$('#element').pluginName();

Post a Comment for "How To Import A Jquery Plugin Into A Babel App"