From e343b9db700ec6c48c9ba400a12f6b952fce2f7b Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Wed, 18 May 2022 14:55:51 -0500 Subject: [PATCH] Remove old TW_DISABLE_PLAIN_TEXT_LOADER hack --- src/extension-support/tw-load-script-as-plain-text.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/extension-support/tw-load-script-as-plain-text.js b/src/extension-support/tw-load-script-as-plain-text.js index a36b6dc6..c93203ea 100644 --- a/src/extension-support/tw-load-script-as-plain-text.js +++ b/src/extension-support/tw-load-script-as-plain-text.js @@ -3,10 +3,6 @@ const SingleEntryPlugin = require('webpack/lib/SingleEntryPlugin'); module.exports.pitch = function (request) { - // Temporary hack to allow TW Desktop to avoid nonsensical errors - if (process.env.TW_DISABLE_PLAIN_TEXT_LOADER) { - return 'throw new Error("Loader was disabled at build time");'; - } // Technically this loader does work in other environments, but our use case does not want that. if (this.target !== 'web') { return 'throw new Error("Not supported in non-web environment");';