From 1a4c15aa0972b6e30799098ca64e30fe97301d08 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Sat, 18 Feb 2017 18:58:48 -0800 Subject: [PATCH] chore(all): prepare release 1.2.2 --- dist/build-resources.js | 2 +- dist/index.js | 6 +++--- doc/CHANGELOG.md | 10 ++++++++++ package.json | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/dist/build-resources.js b/dist/build-resources.js index 7a1bd13..37678ff 100644 --- a/dist/build-resources.js +++ b/dist/build-resources.js @@ -639,4 +639,4 @@ function resolveTemplateResources(htmlFilePath, srcPath, externalModule) { }); return resources; -} +} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index daf43f8..70743b9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -262,7 +262,7 @@ var AureliaWebpackPlugin = function () { var moduleId = void 0; if (options.nameLocalModules) { - if (module.resource.startsWith(options.src)) { + if (path.normalize(module.resource).startsWith(options.src)) { var relativeToSrc = path.relative(options.src, module.resource); moduleId = relativeToSrc; } @@ -270,7 +270,7 @@ var AureliaWebpackPlugin = function () { if (options.nameExternalModules) { if (!moduleId && typeof module.userRequest == 'string') { var matchingModuleIds = paths.filter(function (originPath) { - return contextElements[originPath].source === module.userRequest; + return contextElements[originPath].source === path.normalize(module.userRequest); }).map(function (originPath) { return path.normalize(originPath); }); @@ -304,4 +304,4 @@ var AureliaWebpackPlugin = function () { return AureliaWebpackPlugin; }(); -module.exports = AureliaWebpackPlugin; +module.exports = AureliaWebpackPlugin; \ No newline at end of file diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 1bd4d43..0c03938 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,13 @@ + +## [1.2.2](https://github.com/aurelia/webpack-plugin/compare/1.2.1...v1.2.2) (2017-02-19) + + +### Bug Fixes + +* **webpack-plugin:** Windows specific paths fix ([f5624a3](https://github.com/aurelia/webpack-plugin/commit/f5624a3)) + + + ## [1.2.1](https://github.com/aurelia/webpack-plugin/compare/1.2.0...v1.2.1) (2017-02-09) diff --git a/package.json b/package.json index 892adeb..b7e8426 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-webpack-plugin", - "version": "1.2.1", + "version": "1.2.2", "description": "A plugin for webpack that enables bundling Aurelia applications.", "keywords": [ "aurelia",