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

UMD compatibility #9

Merged
merged 3 commits into from
Aug 24, 2016
Merged

UMD compatibility #9

merged 3 commits into from
Aug 24, 2016

Conversation

remarkablemark
Copy link
Owner

Resolves #6

Tasks:

  • Make the package compatible with UMD (Universal Module Definition)
    • CommonJS
    • AMD (RequireJS)
    • <script> tag
  • Ignore lib/html-to-dom-server.js when bundling for the browser
  • Fix bugs and errors
  • Update .npmignore

Also, fix the require path for `html-to-dom-client` module in the
entry file `index.js`.
Wrap main logic so that it can be loaded by CommonJS (node and
bundlers like webpack), AMD (RequireJS), and browser script.

UMD template:
https://github.com/ForbesLindesay/umd/blob/master/template.js
Also add `.npmignore` file to `.npmignore`
@remarkablemark remarkablemark added the feature New feature or request label Aug 24, 2016
@remarkablemark remarkablemark self-assigned this Aug 24, 2016
@remarkablemark remarkablemark merged commit 15cc84c into master Aug 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant