Skip to content

Vendor script with UMD makes require complain #73

@lukeapage

Description

@lukeapage

Hi,

I am trying to include es5-shim into my test runner page.

Because you load require before vendor (https://github.com/cloudchen/grunt-template-jasmine-requirejs/blob/master/src/templates/jasmine-requirejs.html#L26) it means that any UMD vendor script requires a require in order to stop require complaining about a "Mismatched anonymous define".

I don't want to put a require for that into my tests (I feel it is the pages concern to require it).

Can I suggest that you move the require definition to after the inclusion of jasmine and the vendor scripts? or else do not output vendor scripts and instead require them.. or add an option for UMD scripts that should be required in the test runner page...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions