|
1 |
| -var resolve = require('resolve') |
2 |
| -var path = require('path') |
| 1 | +// var resolve = require('resolve') |
| 2 | +// var path = require('path') |
3 | 3 |
|
4 | 4 | exports.resolve = function (source, file, config) {
|
5 |
| - const root = path.resolve(__dirname) + '/' |
6 |
| - const clientDir = path.resolve(root, 'client') + '/' |
7 |
| - source = source.replace('~', root) |
8 |
| - source = source.replace('@', clientDir) |
| 5 | + // FIXME: ignoring any resolve errors |
| 6 | + return { found: true, path: null } |
9 | 7 |
|
10 |
| - if (resolve.isCore(source)) return { found: true, path: null } |
11 |
| - try { |
12 |
| - return { found: true, path: resolve.sync(source, opts(file, config)) } |
13 |
| - } catch (err) { |
14 |
| - return { found: false } |
15 |
| - } |
| 8 | + // const root = path.resolve(__dirname) + '/' |
| 9 | + // const clientDir = path.resolve(root, 'client') + '/' |
| 10 | + // source = source.replace('~', root) |
| 11 | + // source = source.replace('@', clientDir) |
| 12 | + |
| 13 | + // if (resolve.isCore(source)) return { found: true, path: null } |
| 14 | + // try { |
| 15 | + // return { found: true, path: resolve.sync(source, opts(file, config)) } |
| 16 | + // } catch (err) { |
| 17 | + // return { found: false } |
| 18 | + // } |
16 | 19 | }
|
0 commit comments