Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

How to add a plugin developed based on unplugin ? #352

Closed
hardmanhong opened this issue Aug 14, 2023 · 2 comments
Closed

How to add a plugin developed based on unplugin ? #352

hardmanhong opened this issue Aug 14, 2023 · 2 comments

Comments

@hardmanhong
Copy link

const { sentryWebpackPlugin } = require('@sentry/webpack-plugin');
config.plugin('sentry-webpack').use(sentryWebpackPlugin,options)

The above code will prompt is not a constructor

@hardmanhong
Copy link
Author

const { sentryWebpackPlugin } = require('@sentry/webpack-plugin');
config.plugin('sentry-webpack').use(sentryWebpackPlugin,options)

The above code will prompt is not a constructor

Resolve.

config
      .plugin('sentry-webpack')
      .use(sentryWebpackPlugin, [options]
      .init((Plugin,args)=> Plugin(...args))

@edmorley
Copy link
Member

edmorley commented Feb 4, 2024

Closing since unfortunately this project is no longer maintained:
#358

@edmorley edmorley closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants