From 6d01450b2bed319ed7c9de9bda8c7b4cf0dc91c4 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Fri, 3 Jun 2022 14:31:24 +0000 Subject: [PATCH] Fixing webpack config build. --- package.json | 2 +- webpack.config.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 95e466c..05c7c3d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aleleba/create-react-component-library", - "version": "1.0.1", + "version": "1.0.2", "description": "A starter kit for create a React component Library with storybook", "bin": "./bin/cli.js", "main": "dist/index.js", diff --git a/webpack.config.ts b/webpack.config.ts index 900a1ff..8246915 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -28,6 +28,7 @@ export default { path: path.resolve(__dirname, 'dist'), library: libraryName, libraryTarget: 'umd', + globalObject: 'this', }, plugins: [ new CleanWebpackPlugin(),