Inline require() working in requirejs but not with optimized almond build

后端 未结 1 1419
暖寄归人
暖寄归人 2021-02-08 06:28

As the title says my inline require calls are working in a non-optimized requirejs run but not working when built with grunt and almondjs.

Uncaught Error: undefi         


        
相关标签:
1条回答
  • 2021-02-08 07:27

    According to the Almond documentation it works best with non-dynamic loading and everything packaged into the one file.

    You should be able to set "findNestedDependencies" to true in your compile options to ensure that your inline require calls are included as part of the build.

    0 讨论(0)
提交回复
热议问题