Open Bug 1558542 Opened 5 years ago Updated 2 years ago

Convert activity-stream code to use standard module paths

Categories

(Firefox :: Messaging System, task, P3)

task

Tracking

()

People

(Reporter: k88hudson, Unassigned)

References

(Blocks 1 open bug)

Details

Right now we support absolute paths in our module imports; e.g.

import {DSCard} from "content-src/components/DSCard/DSCard.jsx";

in order to support other module loaders (including native ES modules) we could consider moving to relative imports:

import {DSCard} from "../../components/DSCard/DSCard.jsx";
Type: defect → task

We could also consider using dynamic imports to avoid the ".." problems (changing directory structure is painful; it's easy to mis-remember or mis-type the correct number of .. components). There would be tradeoffs, of course...

Priority: -- → P2
Component: Activity Streams: Newtab → Messaging System
Priority: P2 → P3
Severity: normal normal → S3 S3
You need to log in before you can comment on or make changes to this bug.