mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
c75db75efe
* Bump dependencies and add missing typing libraries * Fix expose-loader breaking changes * Expose jQuery using its own typings instead of ours * Extend jQuery typings with our own custom $.fn helpers * Use jQuery typings for Component's `this.$` attribute * Format webpack config file * Use Spin.js 3.1.0
17 lines
420 B
JavaScript
Executable File
17 lines
420 B
JavaScript
Executable File
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');
|