mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
0a4047ab31
Unfortunately the babel minify-mangle plugin seems to be abandoned and in certain circumstances can be very buggy. The only safe options are to disable it, or to switch to a different minification library. Not minifying our javascript is not ideal, so this commit updates the javascript tasks to use a rollup, combined with babel, and terser. Babel still converts code from ES/UMD/AMD to AMD modules with the relevant browser support, whilst terser minifies the code. The rollup bundler handles tracking and creation of sourcemaps, and supports better parallelisation of the tasks. Since the upgrade to Node LTS/Gallium requires an upgrade to @babel/core and eslint, which change the built files anyway, this seems like the ideal time to make this change.
12 lines
795 B
JavaScript
12 lines
795 B
JavaScript
/**
|
|
* A javascript module to handle question ajax actions.
|
|
*
|
|
* @deprecated since Moodle 4.0
|
|
* @todo Final deprecation on Moodle 4.4 MDL-72438
|
|
* @module core_question/repository
|
|
* @copyright 2017 Simey Lameze <lameze@moodle.com>
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
define("core_question/repository",["jquery","core/ajax"],(function($,Ajax){return{submitTagCreateUpdateForm:function(questionId,contextId,formdata){window.console.warn("warn: The core_question/repository has been deprecated.Please use qbank_tagquestion/repository instead.");var request={methodname:"core_question_submit_tags_form",args:{questionid:questionId,contextid:contextId,formdata:formdata}};return Ajax.call([request])[0]}}}));
|
|
|
|
//# sourceMappingURL=repository.min.js.map
|