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

add main file mapping for jspm #194

Merged
merged 1 commit into from
May 30, 2015
Merged

add main file mapping for jspm #194

merged 1 commit into from
May 30, 2015

Conversation

chenzhenxi
Copy link
Contributor

I using JSPM to manage my dependence.

JSPM using SystemJS for loading library.

BUT, in index.js

var moment = module.exports = require("./moment-timezone");
moment.tz.load(require('./data/packed/latest.json'));

SystemJS didn't support require('./data/packed/latest.json')' for load json.

My fix:

I add JSPM options in package.json, make JSPM using builds/moment-timezone-with-data.js instead of index.js

Then everything is works for me.

timrwood added a commit that referenced this pull request May 30, 2015
add main file mapping for jspm
@timrwood timrwood merged commit 30214e0 into moment:develop May 30, 2015
@timrwood timrwood mentioned this pull request May 30, 2015
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

Successfully merging this pull request may close these issues.

2 participants