Skip to content

Commit

Permalink
fix: linux build to use ts-loader in opt
Browse files Browse the repository at this point in the history
  • Loading branch information
daretodave committed Apr 27, 2024
1 parent 12c34e1 commit b569754
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/vendor/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export async function compile(
...resolveModule: string[]
): Promise<void> {
return new Promise((resolve, reject) => {
const linux = process.platform === 'linux'

webpack(
{
dependencies: [],
Expand All @@ -15,7 +17,7 @@ export async function compile(
rules: [
{
test: /\.tsx?$/,
use: './node_modules/ts-loader',
use: linux ? '/opt/mterm/node_modules/ts-loader' : './node_modules/ts-loader',
exclude: /node_modules/
}
]
Expand Down

0 comments on commit b569754

Please sign in to comment.