File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,14 @@ let string_of_module_id
227
227
| Package_found (dep_package_name, dep_path),
228
228
Package_script
229
229
->
230
+ #if BS_NATIVE then
231
+ if Filename. is_relative dep_path then
232
+ dep_package_name // dep_path // js_file
233
+ else
234
+ dep_path // js_file
235
+ #else
230
236
dep_package_name // dep_path // js_file
237
+ #end
231
238
232
239
| Package_found (dep_package_name, dep_path),
233
240
Package_found (cur_package_name, cur_path) ->
@@ -242,7 +249,14 @@ let string_of_module_id
242
249
else
243
250
begin match module_system with
244
251
| AmdJS | NodeJS | Es6 ->
252
+ #if BS_NATIVE then
253
+ if Filename. is_relative dep_path then
254
+ dep_package_name // dep_path // js_file
255
+ else
256
+ dep_path // js_file
257
+ #else
245
258
dep_package_name // dep_path // js_file
259
+ #end
246
260
(* * Note we did a post-processing when working on Windows *)
247
261
| Es6_global
248
262
| AmdJS_global ->
You can’t perform that action at this time.
0 commit comments