diff --git a/.changeset/rich-hairs-smell.md b/.changeset/rich-hairs-smell.md new file mode 100644 index 0000000..da25f41 --- /dev/null +++ b/.changeset/rich-hairs-smell.md @@ -0,0 +1,5 @@ +--- +"@strapi/sdk-plugin": patch +--- + +fix missing commonjs plugin diff --git a/src/cli/commands/plugin/watch.ts b/src/cli/commands/plugin/watch.ts index b8c94c8..bb149a8 100644 --- a/src/cli/commands/plugin/watch.ts +++ b/src/cli/commands/plugin/watch.ts @@ -1,3 +1,4 @@ +import commonjs from '@rollup/plugin-commonjs'; import { watch } from '@strapi/pack-up'; import boxen from 'boxen'; import chalk from 'chalk'; @@ -67,6 +68,7 @@ const action = async (opts: ActionOptions, _cmd: unknown, { cwd, logger }: CLICo cwd, configFile: false, config: { + plugins: [commonjs()], bundles, dist: './dist', /**