Files
coze-studio/common/config/subspaces/default/pnpm-patches/@douyinfe__semi-rspack-plugin@2.61.0.patch
T
zgene 6bed393c12
Backend Tests / backend-unit-test (push) Has been cancelled
Backend Tests / benchmark-test (push) Has been cancelled
CI@main / Node.js v22 (ubuntu-latest) (push) Has been cancelled
Thrift Syntax Validation / validate-thrift (push) Has been cancelled
License Check / License Check (push) Has been cancelled
first commit
2026-05-14 13:29:56 +08:00

18 lines
733 B
Diff

diff --git a/lib/loaders/semi-theme-loader.js b/lib/loaders/semi-theme-loader.js
index d43048cc5919b8720f6ebfba37c9313d89ae857c..863954ee319c964188b2272091b19c6e8f21b0b3 100644
--- a/lib/loaders/semi-theme-loader.js
+++ b/lib/loaders/semi-theme-loader.js
@@ -14,12 +14,6 @@ function SemiThemeLoader(source) {
// inject once
const cssVarStr = `@import "~${theme}/scss/global.scss";\n`;
let animationStr = `@import "~${theme}/scss/animation.scss";\n`;
- try {
- require.resolve(`${theme}/scss/animation.scss`);
- }
- catch (e) {
- animationStr = ''; // fallback to empty string
- }
const shouldInject = source.includes('semi-base');
let fileStr = source;
let componentVariables;