Conversation
🦋 Changeset detectedLatest commit: e1dee66 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
This is work in progress but can be reviewed in comparison to the RFC and for the first three phases listed |
…tch, and validation utilities
…ge.json and file-generator.ts
|
How will this handle building a plugin in which there exists a packup config file? Will it still read it and convert the values to the corresponding rollup config? |
|
As it would be a new major version the build system no longer reads packup.config wdyt? we could add a detection warning? When a packup.config.ts is found, we could display: Warning: packup.config.ts detected but will be ignored. |
|
Ok, I think that's fine. Let's just make sure the release notes mention that, and maybe have a migration guide? Afaik that would just be renaming the file to rollup.config.ts and moving a few parameters, right? |
|
It's actually read from package.json#exports which programmatically generates Vite config We have So all thats needed is something like this in the plugin package json |
|
@innerdvations could you check out the docs changes and let me know what you think ? |
|


What does it do?
This PR implements the gradual removal of
@strapi/pack-upfrom the SDK Pluginas outlined in the RFC.
Notion search "RFC-Remove-strapi-pack-up..."
Current Progress:
Key Changes:
Why is it needed?
Pack-up has a security vulnerability in its Vite dependency (CVE).
SDK Plugin and Design System are the only remaining Strapi projects using pack-up.
This migration will:
How to test it?
End-to-End Testing: SDK Plugin in Strapi App
(replace paths with real ones on your system)
Step 1: Build the SDK Plugin
cd /sdk-plugin
yarn install
yarn build
Step 2: Create a New Plugin
Create plugin in the Strapi examples/empty project
cd /strapi/examples/empty
/sdk-plugin/bin/strapi-plugin.js init src/plugins/my-plugin --no-install
Step 3: Install and Build the Plugin
Step 4: Register the Plugin in Strapi
Edit /strapi/examples/empty/config/plugins.ts:
Step 5: Start Strapi and Verify Plugin Loads
From monorepo examples/empty directory
Open http://localhost:1337/admin - you should see the plugin in the left sidebar.
Step 6: Test Watch Mode (in separate terminal)
Make a change to admin/src/index.ts - the plugin should rebuild and you'll see the change after refreshing the admin
panel.
Related issue(s)/PR(s)
Notion search "RFC-Remove-strapi-pack-up..."
DX-2163