Remove old TW_DISABLE_PLAIN_TEXT_LOADER hack
This commit is contained in:
1 parent
7a838b15b4
commit
e343b9db70
1 file changed
-4
@@ -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");';
|
||||
|
||||
Reference in new issue
Block a user