Skip to content

Commit 41b659c

Browse files
authored
Update rollup config to target workerd and browsers (#41)
* update rollup config * bump version * formatting
1 parent 763e11d commit 41b659c

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "git",
55
"url": "https://github.com/PropelAuth/node"
66
},
7-
"version": "2.1.15",
7+
"version": "2.1.16",
88
"license": "MIT",
99
"keywords": [
1010
"auth",

rollup.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ export default {
2525
sourcemap: true,
2626
},
2727
],
28-
plugins: [peerDepsExternal(), resolve({ extensions }), commonjs(), typescript()],
28+
plugins: [
29+
peerDepsExternal(),
30+
resolve({
31+
extensions,
32+
exportConditions: ["browser", "worker"],
33+
browser: true,
34+
}),
35+
commonjs(),
36+
typescript(),
37+
],
2938
external: Object.keys(globals),
3039
}

0 commit comments

Comments
 (0)