Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup 3.0 #58

Open
brightsider opened this issue Oct 12, 2022 · 3 comments
Open

Rollup 3.0 #58

brightsider opened this issue Oct 12, 2022 · 3 comments

Comments

@brightsider
Copy link

Update for rollup 3.0 pls

@melissarh57
Copy link

agreed, would love that!

@chrisn
Copy link

chrisn commented Jun 3, 2023

I got this working with Rollup 3.x, see https://github.com/chrisn/rollup-plugin-peer-deps-external/ - also available in NPM at https://www.npmjs.com/package/@chrisneedham/rollup-plugin-peer-deps-external.

@pmowrer You're welcome to take the changes I made to publish your own update.

@vveisard
Copy link

vveisard commented Aug 17, 2024

I also had a problem during migration, and to be honest, this plugin isn't necessary anymore with import attributes:

import packageJson from './package.json' with { type: 'json'};
import { defineConfig } from "rollup";

const peerDependencies = Object.keys(packageJson.peerDependencies)

export default defineConfig([
  {
    input: "./source/code/index.ts",
    external: [
      ...peerDependencies
    ],
  },
]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants