From fc69cd0a2fac980e7fe3ff24019e036e0aebdb27 Mon Sep 17 00:00:00 2001 From: Patrick Organ Date: Tue, 9 Feb 2021 14:35:30 -0500 Subject: [PATCH] add node export variant --- node.js | 3 +++ package.json | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 node.js diff --git a/node.js b/node.js new file mode 100644 index 0000000..2561c0c --- /dev/null +++ b/node.js @@ -0,0 +1,3 @@ +const { Ray, ray } = require('./dist/index.cjs'); + +module.exports = { Ray, ray } diff --git a/package.json b/package.json index 4e14c85..d07aff3 100644 --- a/package.json +++ b/package.json @@ -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" }