We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b2d145 commit b59c781Copy full SHA for b59c781
1 file changed
lib/importer.js
@@ -3,7 +3,7 @@ var path = require("path");
3
module.exports = function(url, prev, done) {
4
if (url[0] === '~' && url[1] !== '/') {
5
// Resolve "~" paths to node_modules
6
- url = path.resolve('node_modules', url.substr(1));
+ url = path.resolve(__dirname, "../../../node_modules", url.substr(1));
7
} else if (url[0] === '~' && url[1] === '/') {
8
// Resolve "~/" paths to the app root
9
url = path.resolve(__dirname, "../../../app/"+ url.substr(2));
0 commit comments