Skip to content

Commit

Permalink
Remove extension from "main" in package.json (#317)
Browse files Browse the repository at this point in the history
Fixes #303

From my testing, this doesn't seem to break anything, and it makes it possible
to import sucrase with `--experimental-modules`. For now, I'm leaving the
`module` field as-is, since I think it's needed in some contexts.
  • Loading branch information
alangpierce authored Oct 1, 2018
1 parent a2bc67a commit 45df935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Super-fast alternative to Babel for when you can target modern JS runtimes",
"author": "Alan Pierce <[email protected]>",
"license": "MIT",
"main": "dist/index.js",
"main": "dist/index",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"bin": {
Expand Down

0 comments on commit 45df935

Please sign in to comment.