diff --git a/README.md b/README.md
index 6ea672a..dc4ce06 100644
--- a/README.md
+++ b/README.md
@@ -92,26 +92,15 @@ const { jwtDecode } = require('jwt-decode');
#### Include with a script tag
-Copy the file `jwt-decode.js` from the root of the `build/` folder to your project somewhere, then include it like so:
+Copy the file `jwt-decode.js` from the root of the `build/esm` folder to your project somewhere, then import `jwtDecode` from it inside a script tag that's marked with `type="module"`:
```html
-
-```
-
-Once this script has loaded, the `jwt_decode` function will be exposed as a global:
-
-```javascript
-const token = "eyJhsw5c";
-const decoded = jwt_decode(token);
-```
+
```
## Feedback
diff --git a/lib/index.umd.ts b/lib/index.umd.ts
deleted file mode 100644
index 989b2da..0000000
--- a/lib/index.umd.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { jwtDecode as default } from "./index.js";
diff --git a/rollup.config.ts b/rollup.config.ts
index b45b0bb..cf953c4 100644
--- a/rollup.config.ts
+++ b/rollup.config.ts
@@ -14,18 +14,7 @@ const plugins = [
const input = "lib/index.ts";
-export default defineConfig([{
- input: "lib/index.umd.ts",
- output: {
- name: "jwt_decode",
- file: "build/jwt-decode.js",
- format: "umd",
- sourcemap: true,
- },
- plugins: [
- tsPlugin,
- ]
- },
+export default defineConfig([
{
input,
output: {