diff --git a/package.json b/package.json index bb92cf9..14c2ffd 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "repository": "nativew/esbuild-plugin-babel", "author": "Antoine Boulanger (https://github.com/antoineboulanger)", "license": "ISC", - "exports": "src/index.js", + "exports": "./src/index.js", "main": "src/index.js", "type": "module", "scripts": { diff --git a/readme.md b/readme.md index 37f5617..f73ae47 100644 --- a/readme.md +++ b/readme.md @@ -60,7 +60,7 @@ babel({ ```json { "presets": [["@babel/preset-env", { "modules": false }]], - "plugins": [...], + "plugins": ["@babel/plugin"], "sourceMaps": "inline" } ```