In principle, requirejs does not need to be compiled, unless you want to merge and package all AMD files into one (but this one-size-fits-all approach may not speed up the loading of js). If you want to package it, it has nothing to do with laravel. All grunt and gulp packaging optimization tools for requirejs are based on r.js written by the author of requirejs. Check your configuration carefully. Generally, it is not possible to compile normally because of incorrect configuration. , such as baseUrl or using relative paths when referencing AMD modules, etc.
In principle, requirejs does not need to be compiled, unless you want to merge and package all AMD files into one (but this one-size-fits-all approach may not speed up the loading of js). If you want to package it, it has nothing to do with laravel. All grunt and gulp packaging optimization tools for requirejs are based on r.js written by the author of requirejs. Check your configuration carefully. Generally, it is not possible to compile normally because of incorrect configuration. , such as baseUrl or using relative paths when referencing AMD modules, etc.