UNPKG
@tommostools/use-context-selector
Version:
latest (0.3.0)
0.3.0
0.2.4
0.2.3
0.2.2
0.2.1
0.1.7
0.1.6
0.1.4
0.1.3
Hook for simple context slicing in React
github.com/TommosTools/TommosTools
TommosTools/TommosTools
@tommostools/use-context-selector
/
tsup.config.ts
12 lines
(10 loc)
•
263 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{ defineConfig }
from
"tsup"
;
import
type
{
Options
}
from
"tsup"
;
export
default
defineConfig
(
(
options
:
Options
) =>
({
entry
: [
"src/index.ts"
],
format
: [
"iife"
,
"cjs"
,
"esm"
],
esbuildOptions
(
options
) { options.
packages
=
"external"
; }, }));