Remove meow dependency since it's in project root
Categories
(Firefox :: Messaging System, task, P3)
Tracking
()
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.
Assignee | ||
Comment 1•1 year ago
|
||
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.
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Comment 3•1 year ago
|
||
Backed out for causing meow related newtab failures.
Failure log: https://treeherder.mozilla.org/logviewer?job_id=430502149&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/a675b4047ca06f579250be186485fa49ab2cd16d
Comment 5•1 year ago
|
||
bugherder |
Description
•