Skip to content

Commit

Permalink
Merge pull request #46 from yousifalraheem/patch/improve-rollup-build
Browse files Browse the repository at this point in the history
fix: fix the rollup build issue causing all dependencies to be bundled
  • Loading branch information
yousifalraheem authored May 12, 2022
2 parents 160c4b9 + 6ef7e73 commit 12910ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import pkg from "./package.json";

const esModules = ["gzip-size"];
/** @type {string[]} */
const external = Object.keys(pkg.dependencies).filter(
ext => ext === esModules.includes("gzip-size"),
);
const external = Object.keys(pkg.dependencies).filter(ext => !esModules.includes(ext));

export default defineConfig({
input: "src/index.ts",
Expand Down

0 comments on commit 12910ec

Please sign in to comment.