Skip to content

Commit

Permalink
Merge pull request #4205 from emberjs/fix-windows
Browse files Browse the repository at this point in the history
[BUGFIX release] ensure import paths are resolved \w posix separators
  • Loading branch information
bmac committed Mar 5, 2016
2 parents b329be6 + 9def562 commit bc446a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 1 addition & 7 deletions lib/babel-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ function babelOptions(libraryName, _options) {
getModuleId: function (name) {
return name.replace(/\/index$/g, '');
},
resolveModuleSource: function(name, filename) {
if (name.indexOf('.') === 0) {
return libraryName + '/' + path.join(path.dirname(filename), name);
} else {
return name;
}
}
resolveModuleSource: require('amd-name-resolver').moduleResolve
};

Object.keys(_options).forEach(function(opt) {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"amd-name-resolver": "0.0.5",
"babel-plugin-feature-flags": "^0.2.0",
"babel-plugin-filter-imports": "^0.2.0",
"broccoli-babel-transpiler": "^5.5.0",
Expand Down

0 comments on commit bc446a1

Please sign in to comment.