Skip to content

Commit

Permalink
fix: Import without extension (#47)
Browse files Browse the repository at this point in the history
* Forced the bundle to use commonjs2

* fix: Configured the publish to allow import without the extension
  • Loading branch information
erwagasore authored Jul 10, 2020
1 parent cf07523 commit dbf69ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/blocjs/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@ module.exports = {
filename: "bundle.js",
libraryTarget: "commonjs2",
path: path.resolve(__dirname, "./dist")
}
},
resolve: {
extensions: [".js"]
},
mode: "production"
};

0 comments on commit dbf69ac

Please sign in to comment.