def vendor_js_dependencies():
        """
        Returns list of vendor JS files that this XBlock depends on.

        The helper function that it uses to obtain the list of vendor JS files
        works in conjunction with the Django pipeline to ensure that in development mode
        the files are loaded individually, but in production just the single bundle is loaded.
        """
        vendor_dependencies = get_js_dependencies('discussion_vendor')
        base_vendor_dependencies = [
            'edx-ui-toolkit/js/utils/global-loader.js',
            'edx-ui-toolkit/js/utils/string-utils.js',
            'edx-ui-toolkit/js/utils/html-utils.js',
            'js/vendor/URI.min.js',
            'js/vendor/jquery.leanModal.js'
        ]
        return base_vendor_dependencies + vendor_dependencies