The lib folder has a main.js file that imports the module:
// код основного файла require.config({ baseUrl: './../', paths: { module: './lib/module' } }); require('module', (module) => { //... } // Код модуля function f() { экспортируемая функция } define(() => { return f; }); How to use grunt to create one js file that can be attached without any libraries, which will be executed in the same way as main.js was done with requirejs?