File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 44 "description" : " Monitor if a component is inside the viewport, using IntersectionObserver API" ,
55 "source" : " ./src/index.tsx" ,
66 "main" : " ./dist/index.js" ,
7- "module" : " ./dist/index.mjs " ,
7+ "module" : " ./dist/esm/ index.js " ,
88 "types" : " ./dist/index.d.ts" ,
99 "exports" : {
1010 "./test-utils" : {
2828 "prebuild" : " rm -rf dist lib" ,
2929 "build" : " run-s build:*" ,
3030 "build:bundle" : " tsup src/index.tsx" ,
31+ "build:legacy" : " tsup src/index.tsx --format esm --legacy-output --no-clean --no-dts --target es2020" ,
3132 "build:utils" : " tsc -p tsconfig.test.json" ,
3233 "build:copy" : " node scripts/build-copy.js" ,
3334 "postbuild" : " size-limit" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export default defineConfig({
55 sourcemap : true ,
66 dts : true ,
77 clean : true ,
8- target : 'es2020 ' ,
8+ target : 'esnext ' ,
99 external : [ 'react' ] ,
1010 format : [ 'esm' , 'cjs' ] ,
1111} ) ;
You can’t perform that action at this time.
0 commit comments