rollup-plugin-paths
Advanced tools
+2
-2
@@ -50,5 +50,5 @@ var path = require('path') | ||
| } else { | ||
| updateId = path.resolve(path.dirname(rollupOptions.entry), updateId) | ||
| // 将合并后的`\`转换为`/`,解决windows下的路径错误 | ||
| updateId = path.resolve(path.dirname(rollupOptions.entry), updateId).replace(/\\/g, '/') | ||
| return rollupOptions.is_jtaro_module ? getRelativePath(importer, updateId) : updateId | ||
| return rollupOptions.is_jtaro_module ? getRelativePath(importer, updateId).replace(/\\/g, '/') : updateId | ||
| } | ||
@@ -55,0 +55,0 @@ } |
+1
-1
| { | ||
| "name": "rollup-plugin-paths", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "description": "Let you use the same variables at different directory.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+4
-0
@@ -79,2 +79,6 @@ # rollup-plugin-paths | ||
| ### v0.0.3 (2017-06-30) | ||
| - 修复v0.0.2的问题 | ||
| ### v0.0.2 (2017-06-30) | ||
@@ -81,0 +85,0 @@ |
4470
1.13%90
4.65%