f993161324
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> |
||
---|---|---|
.. | ||
esbuild | ||
tools | ||
webpack | ||
webpack-for-karma | ||
package.json | ||
params.js |