mirror of
https://github.com/mastodon/mastodon.git
synced 2026-02-21 09:58:29 +00:00
update deps and remove github actions formatter as it's native now
This commit is contained in:
parent
fd0821e889
commit
aee820f49e
|
|
@ -128,7 +128,7 @@
|
|||
"tiny-queue": "^0.2.1",
|
||||
"twitter-text": "3.1.0",
|
||||
"use-debounce": "^10.0.0",
|
||||
"vite": "^5.2.8",
|
||||
"vite": "^6.2.6",
|
||||
"webpack": "^4.47.0",
|
||||
"webpack-assets-manifest": "^4.0.6",
|
||||
"webpack-bundle-analyzer": "^4.8.0",
|
||||
|
|
@ -196,8 +196,7 @@
|
|||
"typescript-eslint": "^8.28.0",
|
||||
"vite-plugin-rails": "^0.5.0",
|
||||
"vite-plugin-svgr": "^4.2.0",
|
||||
"vitest": "^1.5.0",
|
||||
"vitest-github-actions-reporter": "^0.11.1",
|
||||
"vitest": "^3.1.1",
|
||||
"webpack-dev-server": "^3.11.3"
|
||||
},
|
||||
"resolutions": {
|
||||
|
|
|
|||
|
|
@ -3,12 +3,10 @@
|
|||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
// import { optimizeLodashImports } from '@optimize-lodash/rollup-plugin';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import RailsPlugin from 'vite-plugin-rails';
|
||||
import svgr from 'vite-plugin-svgr';
|
||||
import { defineConfig, configDefaults } from 'vitest/config';
|
||||
import GithubActionsReporter from 'vitest-github-actions-reporter';
|
||||
|
||||
const sourceCodeDir = 'app/javascript';
|
||||
const items = fs.readdirSync(sourceCodeDir);
|
||||
|
|
@ -28,7 +26,6 @@ export default defineConfig({
|
|||
resolve: {
|
||||
alias: {
|
||||
...aliasesFromJavascriptRoot,
|
||||
// images: path.resolve(__dirname, './app/javascript/images'),
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
|
|
@ -36,18 +33,10 @@ export default defineConfig({
|
|||
react({
|
||||
include: ['**/*.jsx', '**/*.tsx'],
|
||||
babel: {
|
||||
plugins: [
|
||||
// ['@babel/proposal-decorators', { legacy: true }],
|
||||
'formatjs',
|
||||
'preval',
|
||||
'transform-react-remove-prop-types',
|
||||
],
|
||||
plugins: ['formatjs', 'preval', 'transform-react-remove-prop-types'],
|
||||
},
|
||||
}),
|
||||
svgr(),
|
||||
// optimizeLodashImports(),
|
||||
// !!process.env.ANALYZE_BUNDLE_SIZE &&
|
||||
// visualizer({ open: true, gzipSize: true, brotliSize: true }),
|
||||
],
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
|
|
@ -64,9 +53,6 @@ export default defineConfig({
|
|||
'public/**',
|
||||
'tmp/**',
|
||||
],
|
||||
reporters: process.env.GITHUB_ACTIONS
|
||||
? ['default', new GithubActionsReporter()]
|
||||
: 'default',
|
||||
globals: true,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user