1
0
mirror of https://github.com/flarum/core.git synced 2025-09-12 00:50:48 +02:00
Files
.github
js
dist
src
.prettierrc.json
admin.js
forum.js
package-lock.json
package.json
shims.d.ts
tsconfig.json
webpack.config.js
less
migrations
src
stubs
tests
views
.editorconfig
.gitattributes
.gitignore
.styleci.yml
CHANGELOG.md
LICENSE
README.md
composer.json
php-flarum/js/webpack.config.js
David Sevilla Martín d189272473 Initial TypeScript infrastructure ()
This allows us to get started with converting all Flarum JavaScript code to TypeScript.
In addition, we will have time to experiment to find the best Webpack configuration before integrating into flarum-webpack-config.

See .
2020-07-03 14:47:44 +02:00

17 lines
419 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');