Skip to content

Commit

Permalink
feat: add ES Module support
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Feb 5, 2022
1 parent 996b5c9 commit b8436b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import HTMLDOMParser from './index.js';

export default HTMLDOMParser;
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"description": "HTML to DOM parser.",
"author": "Mark <mark@remarkablemark.org>",
"main": "index.js",
"module": "index.mjs",
"exports": {
"import": "./index.mjs",
"require": "./index.js"
},
"scripts": {
"build": "rollup --config",
"clean": "rm -rf dist",
Expand Down Expand Up @@ -76,6 +81,8 @@
"files": [
"/dist",
"/index.d.ts",
"/index.js",
"/index.mjs",
"/lib"
],
"browser": {
Expand Down

0 comments on commit b8436b1

Please sign in to comment.