Skip to content

Commit

Permalink
ESM support
Browse files Browse the repository at this point in the history
fixes mholt#977
  • Loading branch information
btakita committed Mar 1, 2023
1 parent aa00468 commit 7b87e68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -35,6 +35,7 @@
},
"license": "MIT",
"main": "papaparse.js",
"module": "papaparse.mjs",
"browser": "papaparse.min.js",
"devDependencies": {
"chai": "^4.2.0",
Expand Down
3 changes: 3 additions & 0 deletions papaparse.mjs
@@ -0,0 +1,3 @@
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
export default require('./papaparse.js');

0 comments on commit 7b87e68

Please sign in to comment.