Hey i’m doing a wordpress plugin and i have two important files. Index.js and functions.js. When i import like jquery dependency in index.js, i have an error and i need to import it into functions.js too.
I want to import it only one time, how i can do that ?
Thanks for your help !
imports of my index.js →
import * as ui from 'jquery-ui'; import * as leaflet from 'leaflet'; import * as leafletAjax from 'leaflet-ajax'; import * as d3Array from 'd3-array'; import * as d3Geo from 'd3-geo'; import * as f from './fonctions.js';