mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 14:26:06 +02:00
Fix: debug source code issues with .vue files (#1154)
This commit is contained in:
Generated
+558
-1358
File diff suppressed because it is too large
Load Diff
+1
-2
@@ -28,8 +28,6 @@
|
|||||||
"homepage": "https://github.com/vrcx-team/VRCX#readme",
|
"homepage": "https://github.com/vrcx-team/VRCX#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/eslint-parser": "^7.26.8",
|
"@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",
|
"@electron/rebuild": "^3.7.1",
|
||||||
"@fontsource/noto-sans-jp": "^5.1.1",
|
"@fontsource/noto-sans-jp": "^5.1.1",
|
||||||
"@fontsource/noto-sans-kr": "^5.1.1",
|
"@fontsource/noto-sans-kr": "^5.1.1",
|
||||||
@@ -47,6 +45,7 @@
|
|||||||
"electron": "^34.2.0",
|
"electron": "^34.2.0",
|
||||||
"electron-builder": "^25.1.8",
|
"electron-builder": "^25.1.8",
|
||||||
"element-ui": "^2.15.14",
|
"element-ui": "^2.15.14",
|
||||||
|
"esbuild-loader": "^4.3.0",
|
||||||
"eslint": "^9.21.0",
|
"eslint": "^9.21.0",
|
||||||
"eslint-config-prettier": "^10.0.1",
|
"eslint-config-prettier": "^10.0.1",
|
||||||
"eslint-plugin-vue": "^9.32.0",
|
"eslint-plugin-vue": "^9.32.0",
|
||||||
|
|||||||
+13
-6
@@ -3,8 +3,8 @@ const webpack = require('webpack');
|
|||||||
const CopyPlugin = require('copy-webpack-plugin');
|
const CopyPlugin = require('copy-webpack-plugin');
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||||
const TerserPlugin = require('terser-webpack-plugin');
|
|
||||||
const { VueLoaderPlugin } = require('vue-loader');
|
const { VueLoaderPlugin } = require('vue-loader');
|
||||||
|
const { EsbuildPlugin } = require('esbuild-loader');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: {
|
entry: {
|
||||||
@@ -46,6 +46,16 @@ module.exports = {
|
|||||||
test: /\.vue$/,
|
test: /\.vue$/,
|
||||||
loader: 'vue-loader'
|
loader: 'vue-loader'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
test: /\.[jt]sx?$/,
|
||||||
|
exclude: /node_modules/,
|
||||||
|
loader: 'esbuild-loader',
|
||||||
|
options: {
|
||||||
|
loader: 'js',
|
||||||
|
target: 'esnext',
|
||||||
|
legalComments: 'inline'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
test: /\.pug$/,
|
test: /\.pug$/,
|
||||||
use: [{ loader: 'raw-loader' }, { loader: 'pug-plain-loader' }]
|
use: [{ loader: 'raw-loader' }, { loader: 'pug-plain-loader' }]
|
||||||
@@ -113,11 +123,8 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
optimization: {
|
optimization: {
|
||||||
minimizer: [
|
minimizer: [
|
||||||
new TerserPlugin({
|
new EsbuildPlugin({
|
||||||
extractComments: false,
|
target: 'es2020'
|
||||||
terserOptions: {
|
|
||||||
ecma: 2020
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user