From ecf1852cd296e24d7e35377aaeb3871093bd2972 Mon Sep 17 00:00:00 2001 From: Alexandre Bodin Date: Fri, 6 Sep 2024 23:51:18 +0200 Subject: [PATCH 1/2] fix/missing-commonjs --- src/cli/commands/plugin/watch.ts | 2 ++ 1 file changed, 2 insertions(+) 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', /** From 43ab894e3d9e24fd78a8024bb34773f9bfb63c29 Mon Sep 17 00:00:00 2001 From: Ben Irvin Date: Mon, 9 Sep 2024 09:13:47 +0200 Subject: [PATCH 2/2] Create rich-hairs-smell.md Signed-off-by: Ben Irvin --- .changeset/rich-hairs-smell.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/rich-hairs-smell.md 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