refactor: remove buffer shim option from filer webpack plugin

This commit is contained in:
Ben Heidemann 2021-04-10 10:59:37 +01:00 committed by David Humphrey
parent 708c84fc63
commit 1f02edf5b3
3 changed files with 1 additions and 12 deletions

View File

@ -39,9 +39,6 @@ module.exports = class FilerWebpackPlugin {
case 'path':
if (!this.options.shimPath) return;
return this.applyPathShim(resolveData);
case 'buffer':
if (!this.options.shimBuffer) return;
return this.applyBufferShim(resolveData);
default:
return;
}
@ -81,8 +78,4 @@ module.exports = class FilerWebpackPlugin {
applyPathShim(resolveData) {
resolveData.request = path.join(this.options.shimsDir, 'path.js');
}
applyBufferShim(resolveData) {
resolveData.request = path.join(this.options.shimsDir, 'buffer.js');
}
};

View File

@ -22,7 +22,6 @@ module.exports = {
},
shimFs: { default: true },
shimPath: { default: true},
shimBuffer: { default: true},
fsProvider: { default: 'default'},
fsProviderDir: {
process: function(value) {

View File

@ -13,9 +13,6 @@ module.exports = {
shimPath: {
type: 'boolean',
},
shimBuffer: {
type: 'boolean',
},
fsProvider: {
type: 'string',
},