Skip to content

Commit

Permalink
Explicitly include main and core
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed Jul 23, 2020
1 parent c32ae4a commit 7d32e0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/main/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const osMapper: Record<string, BuildEnv['TARGET']> = {
win32: 'windows'
};

const MAIN_DIR = path.resolve(__dirname, 'src');
const CORE_DIR = path.resolve(__dirname, '..', 'core');

module.exports = (env: BuildEnv): import('webpack').Configuration => {
if (!env.TARGET) {
env.TARGET = osMapper[os.platform() as string];
Expand All @@ -29,7 +32,8 @@ module.exports = (env: BuildEnv): import('webpack').Configuration => {
loader: 'ts-loader',
options: {
configFile: path.join(__dirname, `/config/tsconfig.${env.TARGET}.json`)
}
},
include: [MAIN_DIR, CORE_DIR]
};

return {
Expand Down

0 comments on commit 7d32e0e

Please sign in to comment.