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(),