pear-shake
Advanced tools
+4
-4
@@ -34,3 +34,3 @@ 'use strict' | ||
| const target = [ | ||
| const hosts = [ | ||
| 'darwin-arm64', | ||
@@ -70,3 +70,3 @@ 'darwin-x64', | ||
| builtins, | ||
| target, | ||
| hosts, | ||
| resolve, | ||
@@ -92,3 +92,3 @@ defer | ||
| let extensions | ||
| let conditions = opts.target.reduce((acc, host) => { | ||
| let conditions = (opts.hosts || hosts).reduce((acc, host) => { | ||
| acc.push(['node', ...host.split('-')]) | ||
@@ -107,3 +107,3 @@ acc.push(['node', 'bare', ...host.split('-')]) | ||
| conditions, | ||
| hosts: opts.target, | ||
| hosts: opts.hosts || hosts, | ||
| linked: false, | ||
@@ -110,0 +110,0 @@ ...opts |
+1
-1
| { | ||
| "name": "pear-shake", | ||
| "version": "2.0.1", | ||
| "version": "2.0.2", | ||
| "main": "index.js", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
15428
0.1%