Open spikecodes opened 2 months ago
we'll make farm compatible with this vite plugins this week
@wre232114 any update on this? Still getting the issue on:
"@farmfe/cli": "1.0.3",
"@farmfe/core": "1.3.11",
"@farmfe/js-plugin-postcss": "1.8.0",
"@farmfe/plugin-react": "1.2.0",
When using @sentry/vite-plugin
, try adding "sentry-release-injection-file" to filters
or setting filters to [".+"]
If you get TypeError: Cannot read properties of undefined (reading 'targetMinSize')
, set complation.partialBundling
to {}
, we will fix it later
import { defineConfig } from '@farmfe/core';
import { sentryVitePlugin } from '@sentry/vite-plugin';
export default defineConfig({
// ...
compilation: {
partialBundling: {},
},
vitePlugins: [
() => ({
vitePlugin: sentryVitePlugin({
// ...
}),
filters: ['\\.tsx$', '\\.jsx$', 'sentry-release-injection-file'],
// or
filters: ['.+'],
}),
],
});
I saw https://www.farmfe.org/docs/plugins/community-plugins/#unplugin said
sentry-javascript-bundler-plugins
is supported but couldn't use it without errors.Steps to reproduce
Log of Errors
System Info
Further https://www.farmfe.org/docs/plugins/community-plugins/#unplugin said unplugin-sentry is supported but I got this message: