@@ -254,6 +254,16 @@ Frontend Technology Selection
254
254
don't unintentionally increase the size of our JavaScript bundles, we utilize BundleWatch
255
255
for automated bundle size monitoring.
256
256
257
+ #. **Development dependencies should be separated into devDependencies **
258
+
259
+ **Rationale **: To keep installation and deployment of our MFEs as fast as
260
+ possible, the "dependencies" field in ``package.json `` should reference only
261
+ the packages needed to build the bundle of the MFE (this includes webpack via
262
+ frontend-build, as well as any dependencies used in the actual MFE/React
263
+ code). Any dependencies used only for testing, linting, formatting, or other
264
+ development tasks should be put into "devDependencies" (e.g. Jest, eslint,
265
+ TypeScript, ``@types/ `` packages, etc.).
266
+
257
267
Backend Technology Selection
258
268
============================
259
269
@@ -330,6 +340,8 @@ Change History
330
340
2024-07-25
331
341
==========
332
342
343
+ * Added "Development dependencies should be separated into devDependencies"
344
+ * `Pull request #615 <https://github.com/openedx/open-edx-proposals/pull/615 >`_
333
345
* Changed guidance on React state/data loading to recommend React Query instead of Redux
334
346
* Updated JavaScript/TypeScript guidance
335
347
* `Pull request #616 <https://github.com/openedx/open-edx-proposals/pull/616 >`_
0 commit comments