Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't properly require with require.js #125

Closed
YurySolovyov opened this issue Aug 23, 2015 · 1 comment
Closed

Can't properly require with require.js #125

YurySolovyov opened this issue Aug 23, 2015 · 1 comment

Comments

@YurySolovyov
Copy link
Contributor

With config like:

requirejs.config({
    paths: {
        Dexie: 'static/js/dexie.min'
    }
});

and then in code:

define(['Dexie'], function(Dexie) {
// Dexie is undefined
});

Dexie is not published.

But patching amd-style publishing from:

[self || window, function (name, value) { define(name, function () { return value; }); }] :

to

[self || window, function (name, value) { define(function () { return value; }); }] :

seem to make it work.

@dfahlander
Copy link
Collaborator

Ok, thanks. If you create a pull request, I'll fix it. Having a baby right now so it may take some time until I'm back in full force. But I could probably handle a pull request. Kind regards, David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants