mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-15 11:56:23 +00:00
f5f707bd4e
* Refactor GH workflows * Add version mismatch checker and UpdateClient Dialog * Fix finalize release workflow * Increase prettier scope * Increase prettier coverage, add some static to prettierignore * Add CodeQL on PR
30 lines
621 B
TypeScript
30 lines
621 B
TypeScript
import path from 'path';
|
|
import { Configuration } from 'webpack';
|
|
|
|
const config: Configuration = {
|
|
entry: './src/index.js',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(ts|js)x?$/,
|
|
exclude: /node_modules/,
|
|
use: {
|
|
loader: 'babel-loader',
|
|
options: {
|
|
presets: ['@babel/preset-env', '@babel/preset-react', '@babel/preset-typescript'],
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
extensions: ['.tsx', '.ts', '.jsx', '.js'],
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, 'static/frontend'),
|
|
filename: 'main.js',
|
|
},
|
|
};
|
|
|
|
export default config;
|