diff --git a/src/webpack-plugin/processors.js b/src/webpack-plugin/processors.js index 2a464bc..786aebd 100644 --- a/src/webpack-plugin/processors.js +++ b/src/webpack-plugin/processors.js @@ -9,7 +9,7 @@ module.exports = { if (!value) { return path.join(CWD, 'node_modules', 'filer'); } - return value.replace(ROOT_DIR_TAG, CWD); + return path.resolve(value.replace(ROOT_DIR_TAG, CWD)); }, }, shimsDir: { @@ -17,18 +17,18 @@ module.exports = { if (!value) { return path.join(CWD, 'node_modules', 'filer', 'shims'); } - return value.replace(ROOT_DIR_TAG, CWD); + return path.resolve(value.replace(ROOT_DIR_TAG, CWD)); } }, - shimFs: { default: true }, - shimPath: { default: true}, - fsProvider: { default: 'default'}, fsProviderDir: { process: function(value) { if (!value) { return path.join(CWD, 'node_modules', 'filer', 'shims', 'providers'); } - return value.replace(ROOT_DIR_TAG, CWD); + return path.resolve(value.replace(ROOT_DIR_TAG, CWD)); }, }, + shimFs: { default: true }, + shimPath: { default: true}, + fsProvider: { default: 'default'}, };