an ability to require modules using "./" and "../" syntax
This commit is contained in:
parent
7d0c2d079b
commit
26edf60654
6 changed files with 60 additions and 8 deletions
3
test/inner/dependency.js
Normal file
3
test/inner/dependency.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
mimicry.module(function () {
|
||||
return "Dep";
|
||||
})
|
6
test/inner/inner.js
Normal file
6
test/inner/inner.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
mimicry.module([
|
||||
"./dependency",
|
||||
"../outer"
|
||||
], function (global, [dependency, outer]) {
|
||||
return dependency === "Dep" && outer === "Outer";
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue