Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:vazco/universe-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
MacRusher committed Oct 21, 2015
2 parents 00ef267 + 5788fbe commit ec4d475
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
### 0.5.1

- Bring back compatibility for `filename.import` syntax (TypeScript support)
- Allow loading assets from packages through SystemJS

### 0.5.0

Expand Down
5 changes: 3 additions & 2 deletions loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const appRegex = /^\{}\//;
const packageRegex = /^{([\w-]*?):?([\w-]+)}/;
const onlyPackageRegex = /^{([\w-]*?):?([\w-]+)}$/;
const normalizedRegex = /^\/_modules_\//;
const assetsRegex = /^\/packages\//;
const selectedPlatformRegex = /@(client|server)$/;
const endsWithSlashRegex = /\/$/;
const endsWithImportRegex = /\.import$/;
Expand All @@ -40,8 +41,8 @@ const normalizeModuleName = function normalizeModuleName (name, parentName) {
if (name.charAt(0) === '/') {
// absolute path

if (normalizedRegex.test(name)) {
// already normalized name, leave it as is
if (normalizedRegex.test(name) || assetsRegex.test(name)) {
// already normalized name or meteor asset, leave it as is
return name;
}

Expand Down

0 comments on commit ec4d475

Please sign in to comment.