From bdb7b9002b4c69ebde82c4fe3b877de489233c15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Dostie?= Date: Fri, 6 Dec 2019 12:07:18 -0500 Subject: [PATCH] fix(webpack): use the Entry.ts file as webpack entry --- package.json | 5 +---- src/PlatformClient.ts | 2 -- webpack.config.js | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 03513f812..a4b1e872a 100644 --- a/package.json +++ b/package.json @@ -75,8 +75,5 @@ "commitizen": { "path": "./node_modules/cz-conventional-changelog" } - }, - "sideEffects": [ - "./src/resources/Enums.ts" - ] + } } diff --git a/src/PlatformClient.ts b/src/PlatformClient.ts index aa81397c1..8aa7df0c1 100644 --- a/src/PlatformClient.ts +++ b/src/PlatformClient.ts @@ -1,5 +1,3 @@ -import './resources/Enums'; - import API from './APICore'; import {APIConfiguration, PlatformClientOptions} from './ConfigurationInterfaces'; import {HostUndefinedError} from './Errors'; diff --git a/webpack.config.js b/webpack.config.js index 6f8d6d50e..df10f7446 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,7 +6,7 @@ module.exports = (env, argv) => { const production = argv.mode === 'production'; return { - entry: './src/PlatformClient.ts', + entry: './src/Entry.ts', devtool: production ? 'source-map' : 'inline-source-map', output: { filename: 'index.js',