Skip to content

Commit

Permalink
feat(mapping): Support split files
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHechenberger committed Feb 27, 2017
1 parent ccbe02b commit e1a52fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/server/AtviseFile.js
Expand Up @@ -198,6 +198,12 @@ export default class AtviseFile extends File {
let extensions = [];
extensions = this.relative.match(ExtensionRegExp)[1].split('.');

// For split files, add the directory name extension
const dirnameExts = this.dirname.split('.');
if (dirnameExts.length > 1) {
extensions.unshift(dirnameExts[1]);
}

function ifLastExtensionMatches(matches, fn) {
if (matches(extensions[extensions.length - 1])) {
fn(extensions.pop());
Expand Down

0 comments on commit e1a52fb

Please sign in to comment.