CRISPRTool / igv_component /webpack.config.js
supercat666's picture
fixed igv
1df763a
raw
history blame
587 Bytes
const path = require('path');
module.exports = {
entry: './igvcomponent.js', // Your main JavaScript file
output: {
filename: 'main.js', // The output file
path: path.resolve(__dirname, 'build'), // Directory for the build
},
module: {
rules: [
{
test: /\.js$/, // Apply Babel to JavaScript files
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env', '@babel/preset-react'] // Presets for React and modern JavaScript
}
}
}
]
}
};