@rx-frontend/plugin-report-error
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@rx-frontend/plugin-report-error

NPM version

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' })],
})


Package Sidebar

Install

npm i @rx-frontend/plugin-report-error

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

21.6 kB

Total Files

25

Last publish

Collaborators

  • rx-frontend