al-quran.reflectslight.io/webpack.config.js

23 lines
455 B
JavaScript
Raw Normal View History

const path = require('path');
module.exports = {
mode: "development",
experiments: {
asyncWebAssembly: true
},
resolve: {
roots: [path.resolve('src/js'), path.resolve('node_modules')],
modules: [path.resolve('src/js'), path.resolve('node_modules')],
extensions: ['.js', '.ts', '.tsx']
},
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
}