Skip to content

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
@remarkablemark remarkablemark deleted the umd branch August 24, 2016 21:27
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.

1 participant