File tree Expand file tree Collapse file tree 5 files changed +6
-4
lines changed
compose-local-node-module Expand file tree Collapse file tree 5 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ export default class FileSystemLoader {
42
42
if ( newPath [ 0 ] !== '.' && newPath [ 0 ] !== '/' ) {
43
43
try {
44
44
fileRelativePath = nodeResolve . sync ( newPath , { basedir : rootRelativeDir } ) ;
45
+ // in this case we need to actualize rootRelativePath too
46
+ rootRelativePath = path . relative ( this . root , fileRelativePath ) ;
45
47
}
46
48
catch ( e ) { }
47
49
}
Original file line number Diff line number Diff line change 1
- ._compose_local_node_module_cool_local_styles_foo__example {
1
+ ._compose_local_node_module_node_modules_cool_local_styles_foo__example {
2
2
color : # F00 ;
3
3
}
4
4
._compose_local_node_module_source__foo {
Original file line number Diff line number Diff line change 1
1
{
2
- "foo" : " _compose_local_node_module_source__foo _compose_local_node_module_cool_local_styles_foo__example "
2
+ "foo" : " _compose_local_node_module_source__foo _compose_local_node_module_node_modules_cool_local_styles_foo__example "
3
3
}
Original file line number Diff line number Diff line change 1
- ._compose_node_module_cool_styles_foo__example {
1
+ ._node_modules_cool_styles_foo__example {
2
2
color : # F00 ;
3
3
}
4
4
._compose_node_module_source__foo {
Original file line number Diff line number Diff line change 1
1
{
2
- "foo" : " _compose_node_module_source__foo _compose_node_module_cool_styles_foo__example "
2
+ "foo" : " _compose_node_module_source__foo _node_modules_cool_styles_foo__example "
3
3
}
You can’t perform that action at this time.
0 commit comments