mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
build: fixed module resolution and workers webpack config
This commit is contained in:
@ -30,6 +30,11 @@ const config = {
|
||||
externals: externals.filter((d) => !whiteListedModules.includes(d)),
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'ts-loader'
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
use: 'babel-loader',
|
||||
@ -42,7 +47,7 @@ const config = {
|
||||
]
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.js', '.json'],
|
||||
extensions: ['.js', '.json', '.ts'],
|
||||
alias: {
|
||||
src: path.join(__dirname, 'src/'),
|
||||
common: path.resolve(__dirname, 'src/common')
|
||||
|
Reference in New Issue
Block a user