karma-requirejs icon indicating copy to clipboard operation
karma-requirejs copied to clipboard

Anonymous modules at script tag

Open roman0x58 opened this issue 9 years ago • 0 comments

Hi! In my project, i use separated vendor and application scripts. Vendor scripts i concatinated and placing before require.js library at <script> tag, but application scripts i loaded through rjs. When use karma, i can't specify ordering of script files, and rjs throws exception Error: Mismatched anonymous define() module. Any suggestions to solve this issue ?

My karma.conf files configuration looks like :

    files: [
      pattern: "#{STATIC_FOLDER}/vendor.js", included: true, watched: false
    ,
      pattern : "#{TEST_FOLDER}/test-main.coffee", included: true
    ,
      pattern: "#{TEST_FOLDER}/**/*.coffee", included: false
    ,
      pattern: "#{APP_FOLDER}/**/*.coffee", included: false
    ]

roman0x58 avatar Jun 26 '15 08:06 roman0x58