Skip to content

Commit

Permalink
Allow cherry picking both cjs/esm
Browse files Browse the repository at this point in the history
Importing from entry point is useful when everything is module is just
functions. However this packages reexports namespaces which blocks
treeshaking of all functions.

In this PR I suggest to change entry points to cjs and esm and provide
same file structure as in source.

This will allow in project like [math.gl](https://github.com/uber-web/math.gl) swap cjs with esm on build step without importing evrything from `gl-matrix`.
  • Loading branch information
TrySound committed Nov 5, 2018
1 parent 07db6b6 commit 36d9dfb
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 7,158 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -4,3 +4,5 @@ tmp
node_modules
npm-debug.log
package-lock.json
cjs
esm
12 changes: 0 additions & 12 deletions lib/gl-matrix.js

This file was deleted.

42 changes: 0 additions & 42 deletions lib/gl-matrix/common.js

This file was deleted.

0 comments on commit 36d9dfb

Please sign in to comment.