diff --git a/.eslintignore b/.eslintignore index f12fbc099222..c1f55fd64284 100644 --- a/.eslintignore +++ b/.eslintignore @@ -134,8 +134,6 @@ devtools/shared/*.js !devtools/shared/indentation.js !devtools/shared/loader-plugin-raw.jsm !devtools/shared/task.js -devtools/shared/*.jsm -!devtools/shared/Loader.jsm devtools/shared/apps/** devtools/shared/client/** devtools/shared/discovery/** diff --git a/devtools/shared/loader-plugin-raw.jsm b/devtools/shared/loader-plugin-raw.jsm index 092c6a4014e5..de5fdaa50690 100644 --- a/devtools/shared/loader-plugin-raw.jsm +++ b/devtools/shared/loader-plugin-raw.jsm @@ -13,7 +13,7 @@ const { NetUtil } = Cu.import("resource://gre/modules/NetUtil.jsm", {}); * requires; other requires should not be passed to this. See * https://github.com/webpack/raw-loader. */ -function requireRawId(id, require) { +this.requireRawId = function (id, require) { // Add the chrome:// protocol for properties files if missing (see Bug 1294220) if (id.endsWith(".properties") && !id.startsWith("raw!chrome://")) { id = id.replace("raw!", "raw!chrome://"); @@ -28,7 +28,6 @@ function requireRawId(id, require) { uri = uri.slice(0, -3); } - let stream = NetUtil.newChannel({ uri: NetUtil.newURI(uri, "UTF-8"), loadUsingSystemPrincipal: true @@ -43,6 +42,6 @@ function requireRawId(id, require) { // For the time being it doesn't seem worthwhile to cache the // result here. return data; -} +}; this.EXPORTED_SYMBOLS = ["requireRawId"];