Multiple versions of select2 in a Jira Plugin

Hi there,
in a Jira Plugin I am using an old wrapped version of select2. This is not sufficient since I need the create dynamic option feature for some features. I was able to load the current version to the content in Jira, but the old version is still tied to select2 ($.fn.select2). Is there any way how I can use the new version in parallel. i.e. with mySelect2 = require(‘select2’)?
Thanks in advance.
Carsten