@thednp/position-observer
Version:
🏯 PositionObserver is a JavaScript tool that provides a way to asynchronously observe changes in the position of a target element within its viewport.
19 lines (17 loc) • 356 B
text/typescript
import { defineConfig } from 'tsdown'
export default defineConfig(
{
exports: true,
target: "esnext",
entry: {
'index': 'src/index.ts',
},
format: ['esm', 'cjs'],
dts: true,
clean: true,
sourcemap: true,
globalName: "PositionObserver",
skipNodeModulesBundle: true,
external: ["@thednp/shorty"],
},
);