Skip to content

Commit

Permalink
add node export variant
Browse files Browse the repository at this point in the history
  • Loading branch information
patinthehat authored and Patrick committed Feb 9, 2021
1 parent c428142 commit fc69cd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const { Ray, ray } = require('./dist/index.cjs');

module.exports = { Ray, ray }
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
"import": "./dist/web.esm.mjs",
"require": "./dist/web.cjs.js"
},
"./node": {
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs.js"
},
"./standalone": {
"require": "./dist/standalone.js"
}
Expand Down

0 comments on commit fc69cd0

Please sign in to comment.