rollup-plugin-paths
Advanced tools
+2
-1
@@ -50,3 +50,4 @@ 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 | ||
@@ -53,0 +54,0 @@ } |
+1
-1
| { | ||
| "name": "rollup-plugin-paths", | ||
| "version": "0.0.1", | ||
| "version": "0.0.2", | ||
| "description": "Let you use the same variables at different directory.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+10
-0
@@ -76,1 +76,11 @@ # rollup-plugin-paths | ||
| MIT | ||
| ## Log | ||
| ### v0.0.2 (2017-06-30) | ||
| - 修复windows下路径错误的bug | ||
| ### v0.0.1 (2017-03-24) | ||
| - 完成 |
4420
4.79%52
1.96%86
13.16%