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

Allow user to provide content/sourcemaps #8

Closed
Rich-Harris opened this issue Apr 13, 2015 · 1 comment
Closed

Allow user to provide content/sourcemaps #8

Rich-Harris opened this issue Apr 13, 2015 · 1 comment

Comments

@Rich-Harris
Copy link
Owner

This would save having to hit the filesystem if everything is already in memory. Would be particularly useful for e.g. gobblejs/gobble#22

Suggested API:

sorcery.load( 'some/generated/code.min.js', {
  content: {
    'some/minified/code.min.js': '...',
    'some/transpiled/code.js': '...',
    'some/original/code.js': '...'
  },
  sourcemaps: {
    'some/minified/code.min.js': {...},
    'some/transpiled/code.js': {...}
  }
}).then( chain => {
  /* ... */
});
@Rich-Harris
Copy link
Owner Author

Released in 0.5.0

KnisterPeter added a commit to KnisterPeter/sorcery that referenced this issue Nov 21, 2016
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

1 participant