From dbf69ac3a4bc5277eb1103c04edd4e77d875e040 Mon Sep 17 00:00:00 2001 From: Eugene Rwagasore <1290048+erwagasore@users.noreply.github.com> Date: Fri, 10 Jul 2020 22:28:20 +0200 Subject: [PATCH] fix: Import without extension (#47) * Forced the bundle to use commonjs2 * fix: Configured the publish to allow import without the extension --- packages/blocjs/webpack.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/blocjs/webpack.config.js b/packages/blocjs/webpack.config.js index 0900ffd..f4ef255 100644 --- a/packages/blocjs/webpack.config.js +++ b/packages/blocjs/webpack.config.js @@ -17,5 +17,9 @@ module.exports = { filename: "bundle.js", libraryTarget: "commonjs2", path: path.resolve(__dirname, "./dist") - } + }, + resolve: { + extensions: [".js"] + }, + mode: "production" };