diff --git a/package.json b/package.json index 53f294d..e3904bc 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,8 @@ "name": "hopdown", "version": "1.0.0", "description": "Configurable HTML <=> Markdown converter for WYSIWYG editors.", + "main": "dist/js/index.js", + "module": "dist/esm/index.js", "files": [ "dist/lib/" ], diff --git a/tsconfig.json b/tsconfig.json index 502a1ba..8ec9bb2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "strict": true, "target": "ES2025", - "module": "CommonJS", + "module": "ES2022", "esModuleInterop": true, "types": ["node"], "forceConsistentCasingInFileNames": true,