Skip to content

Commit

Permalink
Fix dual ESM/CJS export (#157)
Browse files Browse the repository at this point in the history
Fixes #156
  • Loading branch information
sonnyp authored Dec 12, 2024
1 parent 2813a14 commit 5ec3e3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
"homepage": "http://github.com/xmppjs/ltx",
"bugs": "http://github.com/xmppjs/ltx/issues",
"type": "module",
"main": "lib/ltx.js",
"module": "src/ltx.js",
"main": "src/ltx.js",
"exports": {
"import": "./src/ltx.js",
"require": "./lib/ltx.js"
},
"contributors": [
"Stephan Maka",
"Will Fife",
Expand Down
5 changes: 1 addition & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
export default [
{
input: [
"src/ltx.js",
"src/parsers.js",
],
input: ["src/ltx.js", "src/parsers.js"],
output: {
dir: "lib",
format: "cjs",
Expand Down

0 comments on commit 5ec3e3c

Please sign in to comment.