Fix select2 support by moving initialization from `build` to `postBuild`.