canvas-lms/ui-build
Michael Hulse f993161324 enable scoped CSS modules via Rspack
This commit resolves a limitation in packages using
Canvas' React Router setup (ui/boot/initializers/router.tsx).
The router bypasses the traditional feature bundle system, so
Rspack is used directly. This change configures the project to
allow components to import scoped CSS modules.

refs AE-1282
flag=none

[skip-crystalball]

test plan:
- apply this commit
- start Canvas
- import a CSS module into a package, e.g.:
  // @ts-expect-error
  import styles from './Foo.module.css'
- expect styles to apply correctly
- expect existing global CSS imports to remain unaffected

Change-Id: I46d8b7093dd3e597b79dee6ed4438a71da58d3f2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/360350
QA-Review: Michael Hulse <michael.hulse@instructure.com>
Product-Review: Michael Hulse <michael.hulse@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
2024-10-17 20:28:36 +00:00
..
esbuild remove ember artifacts 2024-09-09 19:06:10 +00:00
tools Update spec/javascripts/ to latest prettier config 2022-09-29 22:27:11 +00:00
webpack enable scoped CSS modules via Rspack 2024-10-17 20:28:36 +00:00
webpack-for-karma remove prior screenreader gradebook 2024-09-09 15:57:32 +00:00
package.json remove prior screenreader gradebook 2024-09-09 15:57:32 +00:00
params.js refactor webpack config 2023-04-18 19:32:27 +00:00