Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

not require use of browserify #8

Closed
nickdesaulniers opened this Issue · 7 comments

3 participants

@nickdesaulniers

No description provided.

@shama
Owner

Could you describe how you want to use this library? Currently I can use it with any commonjs compatible module bundler. It doesn't explicitly require browserify.

Are you dropping it directly into a script tag and need a variable exposed globally? Or using requirejs? something else?

@nickdesaulniers

script tag

@shama shama closed this issue from a commit
@shama Wrap in UMD. Fixes GH-8 22db73c
@shama shama closed this in 22db73c
@vladikoff

Awesome! UMD ftw :fireworks:

@nickdesaulniers

cool thanks all

@shama
Owner

Wrapped in a UMD using browserify index.js --standalone atlaspack > index.js. So you can now do:

<script src="node_modules/atlaspack/index.js"></script>
<script>
var atlas = window.atlaspack(canvas);
</script>

Let me know if that works for you @nickdesaulniers and I'll publish a new version. Thanks!

@nickdesaulniers

looks good

@shama
Owner

Tagged as v0.2.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.