@rx-frontend/plugin-report-error
Install
npm i -D @rx-frontend/plugin-report-error
pnpm i -D @rx-frontend/plugin-report-error
yarn add -D @rx-frontend/plugin-report-error
Vite
// vite.config.ts
import ReportError from '@rx-frontend/plugin-report-error/vite'
export default defineConfig({
plugins: [
ReportError({ url: 'http://10.7.12.26:12345/error' })
],
})
Example: playground/
Rollup
// rollup.config.js
import ReportError from '@rx-frontend/plugin-report-error/rollup'
export default {
plugins: [
ReportError({ url: 'http://10.7.12.26:12345/error' })
],
}
Webpack
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('@rx-frontend/plugin-report-error/webpack')({
url: 'http://10.7.12.26:12345/error'
})
]
}
Nuxt
// nuxt.config.js
export default {
buildModules: [
['@rx-frontend/plugin-report-error/nuxt', {
url: 'http://10.7.12.26:12345/error'
}],
],
}
This module works for both Nuxt 2 and Nuxt Vite
Vue CLI
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require('@rx-frontend/plugin-report-error/webpack')({
url: 'http://10.7.12.26:12345/error'
}),
],
},
}
esbuild
// esbuild.config.js
import { build } from 'esbuild'
import ReportError from '@rx-frontend/plugin-report-error/esbuild'
build({
plugins: [ReportError({ url: 'http://10.7.12.26:12345/error' })],
})