rsbuild.config.ts 799 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. import { pluginReact } from '@rsbuild/plugin-react';
  6. import { pluginLess } from '@rsbuild/plugin-less';
  7. import { defineConfig } from '@rsbuild/core';
  8. export default defineConfig({
  9. plugins: [pluginReact(), pluginLess()],
  10. source: {
  11. entry: {
  12. index: './src/app.tsx',
  13. },
  14. /**
  15. * support inversify @injectable() and @inject decorators
  16. */
  17. decorators: {
  18. version: 'legacy',
  19. },
  20. },
  21. html: {
  22. title: 'demo-fixed-layout-animation',
  23. },
  24. tools: {
  25. rspack: {
  26. /**
  27. * ignore warnings from @coze-editor/editor/language-typescript
  28. */
  29. ignoreWarnings: [/Critical dependency: the request of a dependency is an expression/],
  30. },
  31. },
  32. });