fune/devtools/client/jsonview/Converter.sys.mjs
Alexandre Poirot e26a356c6b Bug 1788032 - [devtools] Convert devtools/client JSM to ES Modules. r=bomsy
This is the result of:
$ ./mach esmify devtools/client/

Differential Revision: https://phabricator.services.mozilla.com/D156181
2022-09-06 18:37:10 +00:00

17 lines
525 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* Create instances of the JSON view converter.
*/
export function Converter() {
const { require } = ChromeUtils.import(
"resource://devtools/shared/loader/Loader.jsm"
);
const {
JsonViewService,
} = require("devtools/client/jsonview/converter-child");
return JsonViewService.createInstance();
}