Skip to content

Commit a00c530

Browse files
authored
fix(rollup.config.js): adds { browser: true }
Struggled with this when trying to consume a library created using this template in a Webpack 5 project. Adding this fixed the issue.
1 parent 02a5720 commit a00c530

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rollup.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ export default {
2323
],
2424
plugins: [
2525
peerDepsExternal(),
26-
resolve(),
26+
resolve({
27+
browser: true
28+
}),
2729
commonjs(),
2830
typescript({ useTsconfigDeclarationDir: true }),
2931
postcss(),

0 commit comments

Comments
 (0)