Sitelet https://github.com/requirejs/requirejs/issues/265
Skip to content

whitespace after "require" changes behavior #265

Description

@shovemedia

A very simple test case at http://shovemedia.com/requirejsissue.zip

See /js/Main.js for two lines you can swap back and forth.
The only difference is the whitespace.

If you bring up index.html in Chrome with the javascript console, you'll
see an alert when the extra space is removed (correct behavior),
and the following error when it's present:
Uncaught Error: Module name 'SomeModule' has not been loaded yet for context:

Tested with the latest version before sending, both commented and minified.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions