Fix: debug source code issues with .vue files (#1154)

This commit is contained in:
pa
2025-03-01 16:12:09 +09:00
committed by GitHub
parent fade23d8be
commit ef68e40996
3 changed files with 572 additions and 1366 deletions

1916
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -28,8 +28,6 @@
"homepage": "https://github.com/vrcx-team/VRCX#readme",
"devDependencies": {
"@babel/eslint-parser": "^7.26.8",
"@babel/plugin-syntax-import-assertions": "^7.26.0",
"@babel/preset-env": "^7.26.9",
"@electron/rebuild": "^3.7.1",
"@fontsource/noto-sans-jp": "^5.1.1",
"@fontsource/noto-sans-kr": "^5.1.1",
@@ -47,6 +45,7 @@
"electron": "^34.2.0",
"electron-builder": "^25.1.8",
"element-ui": "^2.15.14",
"esbuild-loader": "^4.3.0",
"eslint": "^9.21.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-vue": "^9.32.0",

View File

@@ -3,8 +3,8 @@ const webpack = require('webpack');
const CopyPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const { VueLoaderPlugin } = require('vue-loader');
const { EsbuildPlugin } = require('esbuild-loader');
module.exports = {
entry: {
@@ -46,6 +46,16 @@ module.exports = {
test: /\.vue$/,
loader: 'vue-loader'
},
{
test: /\.[jt]sx?$/,
exclude: /node_modules/,
loader: 'esbuild-loader',
options: {
loader: 'js',
target: 'esnext',
legalComments: 'inline'
}
},
{
test: /\.pug$/,
use: [{ loader: 'raw-loader' }, { loader: 'pug-plain-loader' }]
@@ -113,11 +123,8 @@ module.exports = {
],
optimization: {
minimizer: [
new TerserPlugin({
extractComments: false,
terserOptions: {
ecma: 2020
}
new EsbuildPlugin({
target: 'es2020'
})
]
},