From f3d1f5d0b8a64eb1eab68642a6b5b6cecbd9bd52 Mon Sep 17 00:00:00 2001
From: Olivier Contant
- If you are using Select2 in a build environment where preexisting module names are changed during a build step, Select2 may not be able to find optional dependencies or language files. You can manually set the prefixes to use for these files using the amdBase
and amdLanugageBase
options.
+ If you are using Select2 in a build environment where preexisting module names are changed during a build step, Select2 may not be able to find optional dependencies or language files. You can manually set the prefixes to use for these files using the amdBase
and amdLanguageBase
options.
Select2 internally uses AMD and the r.js build tool to build the files located in the dist
folder. These are built using the files in the src
folder, so you can just point your modules to the Select2 source and load in jquery.select2
or select2/core
when you want to use Select2. The files located in the dist
folder are also AMD-compatible, so you can point to that file if you want to load in all of the default Select2 modules.