Comparing version 4.6.0 to 4.7.0
@@ -278,3 +278,3 @@ var loader, define, requireModule, require, requirejs; | ||
while (mod && mod.isAlias) { | ||
mod = registry[mod.id]; | ||
mod = registry[mod.id] || registry[mod.id + '/index']; | ||
} | ||
@@ -281,0 +281,0 @@ |
@@ -254,3 +254,3 @@ var loader, define, requireModule, require, requirejs; | ||
while (mod && mod.isAlias) { | ||
mod = registry[mod.id]; | ||
mod = registry[mod.id] || registry[mod.id + '/index']; | ||
} | ||
@@ -257,0 +257,0 @@ |
{ | ||
"name": "loader.js", | ||
"version": "4.6.0", | ||
"version": "4.7.0", | ||
"description": "loader.js =========", | ||
@@ -5,0 +5,0 @@ "main": "dist/loader/loader.js", |
@@ -22,3 +22,3 @@ loader.js [![Build Status](https://travis-ci.org/ember-cli/loader.js.svg?branch=master)](https://travis-ci.org/ember-cli/loader.js) | ||
### `define.alias('new-name', 'old/path')` | ||
### `define.alias('old/path', 'new-name')` | ||
@@ -28,6 +28,6 @@ `define.alias` allows creation of a symlink from one module to another, for example: | ||
```js | ||
define('foo/bar/baz', [], () => 'hi'); | ||
define('foo', [], () => 'hi'); | ||
define.alias('foo', 'foo/bar/baz'); | ||
require('foo') // => 'hi'; | ||
require('foo/bar/baz') // => 'hi'; | ||
require('foo') === require('foo/bar/baz'); | ||
@@ -34,0 +34,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26869