diff --git a/.config/webpack/webpack.config.ts b/.config/webpack/webpack.config.ts index 35e90ab..4472dd7 100644 --- a/.config/webpack/webpack.config.ts +++ b/.config/webpack/webpack.config.ts @@ -86,7 +86,7 @@ const config = async (env): Promise => ({ loader: 'swc-loader', options: { jsc: { - baseUrl: path.resolve(__dirname, 'src'), + baseUrl: process.platform === 'win32' ? './src': path.resolve(__dirname, 'src'), target: 'es2015', loose: false, parser: {