esbuild-plugin-ts-references
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -53,3 +53,7 @@ const fs = require('fs'); | ||
setup(build) { | ||
const refPackages = build.initialOptions.entryPoints.reduce( | ||
// Pull out entry points, which can either be specified as an array or an object with custom output paths | ||
// https://esbuild.github.io/api/#entry-points | ||
const entryPointOptions = build.initialOptions.entryPoints; | ||
const entryPoints = Array.isArray(entryPointOptions) ? entryPointOptions : Object.values(entryPointOptions); | ||
const refPackages = entryPoints.reduce( | ||
(acc, entrypoint) => { | ||
@@ -56,0 +60,0 @@ return Object.assign(acc, resolveRefPackages(entrypoint)); |
{ | ||
"name": "esbuild-plugin-ts-references", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "esbuild plugin for typescript references", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5733
84