1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

Initial commit for converting FrankerFaceZ to TypeScript.

This commit is contained in:
SirStendec 2023-11-13 20:47:45 -05:00
parent ba72969c51
commit b9d23accf0
86 changed files with 8673 additions and 5005 deletions

View file

@ -48,7 +48,7 @@ const ENTRY_POINTS = {
bridge: './src/bridge.js',
esbridge: './src/esbridge.js',
player: './src/player.js',
avalon: './src/main.js',
avalon: './src/main.ts',
clips: './src/clips.js'
};
@ -66,7 +66,7 @@ const config = {
target: ['web', TARGET],
resolve: {
extensions: ['.js', '.jsx'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
alias: {
res: path.resolve(__dirname, 'res/'),
styles: path.resolve(__dirname, 'styles/'),
@ -163,6 +163,16 @@ const config = {
target: TARGET
}
},
{
test: /\.tsx?$/,
exclude: /node_modules/,
loader: 'esbuild-loader',
options: {
loader: 'tsx',
jsxFactory: 'createElement',
target: TARGET
}
},
{
test: /\.(graphql|gql)$/,
exclude: /node_modules/,