Closed Bug 1851913 Opened 1 year ago Closed 1 year ago

Remove meow dependency since it's in project root

Categories

(Firefox :: Messaging System, task, P3)

task

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: aminomancer, Assigned: aminomancer, NeedInfo)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The project root now has meow, for stylelint (the same reason we initially installed it). It's using a newer version though, one that doesn't support CJS imports and requires import.meta to be passed. This requirement is only for it to get the importer's path though (actually, its file URL). So it can be tricked by just passing it { url: myFileUrl }.

So, there are 2 approaches. One is to update all our scripts that use meow to ESMs. The other is to update those scripts to dynamically import meow and pass it a fake importMeta. The more conservative approach is the latter, especially since try-runner.js is running on CI and turning it into an ESM requires changing its filename to try-runner.mjs.

Since stylelint is now a dependency of the project root, and meow is
a dependency of stylelint, we don't need to explicitly list meow as a
dependency of newtab. The project root uses a newer version of meow that
requires some small workarounds to work outside of an ES module, so we
also need to update the newtab scripts that use meow.

Assignee: nobody → shughes
Status: NEW → ASSIGNED
Priority: -- → P3
Pushed by shughes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d4cd47b0cd52 Remove newtab's explicit meow dependency. r=omc-reviewers,negin
Pushed by shughes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6fc66d324cb8 Remove newtab's explicit meow dependency. r=omc-reviewers,negin
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: