framework/js/webpack.config.js

17 lines
420 B
JavaScript
Raw Normal View History

const config = require('flarum-webpack-config');
const merge = require('webpack-merge');
module.exports = merge(config(), {
output: {
library: 'flarum.core',
},
// temporary TS configuration
resolve: {
extensions: ['.ts', '.tsx', '.js', '.json'],
},
});
module.exports['module'].rules[0].test = /\.(tsx?|js)$/;
module.exports['module'].rules[0].use.options.presets.push('@babel/preset-typescript');