add exports field to package.json

This commit is contained in:
Brian Hung 2022-07-15 15:53:44 -07:00 committed by GitHub
parent dbc30ef188
commit 19a7b7cee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
{
"name": "xlsx",
"type": "module",
"version": "0.18.9",
"author": "sheetjs",
"description": "SheetJS Spreadsheet data parser and writer",
@ -25,6 +26,12 @@
"unpkg": "dist/xlsx.full.min.js",
"jsdelivr": "dist/xlsx.full.min.js",
"types": "types/index.d.ts",
"exports": {
".": {
"import": "./xlsx.mjs",
"require": "./xlsx.js"
}
},
"browser": {
"buffer": false,
"crypto": false,