Pavel 267ebb687f
Move non-relevant code from Marine repo into FluenceJS (#227)
1. Move marine-related part into FJS repo (DXJ184)
2. Move towards component-oriented architecture (DXJ183)
3. Different JS Client distros for node.js and web (DXJ185)
2023-01-09 15:51:15 +03:00

48 lines
1.0 KiB
JavaScript

// Generated using webpack-cli https://github.com/webpack/webpack-cli
const path = require('path');
// const isProduction = true;
// uncomment to debug
const isProduction = false;
const config = () => ({
entry: './src/index.ts',
output: {
path: path.resolve('dist'),
},
module: {
rules: [
{
test: /\.(js|ts|tsx)$/i,
use: [
// force new line
{
loader: 'ts-loader',
options: {
compilerOptions: {
declaration: false,
},
},
},
],
exclude: ['/node_modules/'],
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
});
module.exports = () => {
const res = config();
if (isProduction) {
res.mode = 'production';
} else {
res.mode = 'development';
}
return res;
};