Skip to content

Commit

Permalink
fix: 修复theme-helper引用报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
qkiroc committed Nov 27, 2024
1 parent e3ad9b9 commit 891e630
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/amis-theme-editor-helper/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,16 @@ const pkgs = [];
});
}
});

// 很多项目没装这个,所以style-inject直接打进去
const index = pkgs.indexOf('style-inject');
if (~index) {
pkgs.splice(index, 1);
}

const external = id =>
pkgs.some(pkg => id.startsWith(pkg) || ~id.indexOf(`node_modules/${pkg}`));
const input = ['./src/index.ts'];

export default [
{
input,
Expand Down

0 comments on commit 891e630

Please sign in to comment.