Skip to content

Commit

Permalink
fix: output commonjs target
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Mar 18, 2019
1 parent f8cf982 commit dce9704
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "test-hooks",
"version": "1.1.1",
"version": "1.1.2",
"description": "",
"keywords": [ "hooks", "react-hooks", "test"],
"main": "dist/lib/test-hooks.js",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const libraryName = 'test-hooks'
export default {
input: `src/${libraryName}.tsx`,
output: [
{ file: pkg.module, format: 'es', sourcemap: true },
{ file: pkg.module, format: 'cjs', sourcemap: true },
],
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
external: [],
Expand Down

0 comments on commit dce9704

Please sign in to comment.