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 {
4242 if ( newPath [ 0 ] !== '.' && newPath [ 0 ] !== '/' ) {
4343 try {
4444 fileRelativePath = nodeResolve . sync ( newPath , { basedir : rootRelativeDir } ) ;
45+ // in this case we need to actualize rootRelativePath too
46+ rootRelativePath = path . relative ( this . root , fileRelativePath ) ;
4547 }
4648 catch ( e ) { }
4749 }
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 {
22 color : # F00 ;
33}
44._compose_local_node_module_source__foo {
Original file line number Diff line number Diff line change 11{
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 "
33}
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 {
22 color : # F00 ;
33}
44._compose_node_module_source__foo {
Original file line number Diff line number Diff line change 11{
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 "
33}
You can’t perform that action at this time.
0 commit comments