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

Dragster as CommonJS module, AMD module, ES6 module and global #39

Merged
merged 1 commit into from
May 6, 2017

Conversation

sunpietro
Copy link
Owner

DragsterJS can be used as:

  • AMD module,
  • CommonJS module,
  • ES6 module,
  • global object.

To use DragsterJS as ES6 module:

<script type="module">
    import Dragster from './dragster.es6.js';

    const dragster = Dragster();
</script>

@sunpietro sunpietro merged commit 13a4b0e into master May 6, 2017
@sunpietro sunpietro deleted the dragster-modules branch May 25, 2017 15:55
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.

1 participant