Skip to content

Commit

Permalink
Merge pull request #48 from strapi/fix/watch
Browse files Browse the repository at this point in the history
fix/missing-commonjs
  • Loading branch information
alexandrebodin authored Sep 9, 2024
2 parents b367a0a + 43ab894 commit 69d5ef4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-hairs-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@strapi/sdk-plugin": patch
---

fix missing commonjs plugin
2 changes: 2 additions & 0 deletions src/cli/commands/plugin/watch.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import commonjs from '@rollup/plugin-commonjs';
import { watch } from '@strapi/pack-up';
import boxen from 'boxen';
import chalk from 'chalk';
Expand Down Expand Up @@ -67,6 +68,7 @@ const action = async (opts: ActionOptions, _cmd: unknown, { cwd, logger }: CLICo
cwd,
configFile: false,
config: {
plugins: [commonjs()],
bundles,
dist: './dist',
/**
Expand Down

0 comments on commit 69d5ef4

Please sign in to comment.