rev-dep 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/babel/index.js +2 -2
- package/dist/babel/transform.js +1 -1
- package/package.json +1 -1
package/dist/babel/index.js
CHANGED
|
@@ -61,7 +61,7 @@ module.exports = function plugin({ types }, { tsConfigPath = (0, utils_1.findTsC
|
|
|
61
61
|
console.warn('Cannot resolve import ' + original);
|
|
62
62
|
return null;
|
|
63
63
|
}
|
|
64
|
-
const path = paths[0];
|
|
64
|
+
const path = node_path.normalize(paths[0]);
|
|
65
65
|
try {
|
|
66
66
|
return [path, fs.readFileSync(path).toString()];
|
|
67
67
|
}
|
|
@@ -229,7 +229,7 @@ module.exports = function plugin({ types }, { tsConfigPath = (0, utils_1.findTsC
|
|
|
229
229
|
// we need ../ to skip current file name
|
|
230
230
|
modulePath = node_path.join(cwd, relativeFileName, '../' + sourcePath);
|
|
231
231
|
}
|
|
232
|
-
return modulePath;
|
|
232
|
+
return node_path.normalize(modulePath);
|
|
233
233
|
};
|
|
234
234
|
const getImportKind = (sourcePath) => {
|
|
235
235
|
const aliasRegexIdx = aliasesRegexes.findIndex((aliasRegex) => aliasRegex.test(sourcePath));
|
package/dist/babel/transform.js
CHANGED
|
@@ -31,7 +31,7 @@ const transform = async ({ rootPath, inputFilePath, includeBarrelExportFiles, ex
|
|
|
31
31
|
const result = babelCore.transformFileSync(filePath, {
|
|
32
32
|
plugins: [
|
|
33
33
|
[
|
|
34
|
-
'
|
|
34
|
+
__dirname + '/index.js',
|
|
35
35
|
{
|
|
36
36
|
tsConfigPath: path.join(root, 'tsconfig.json'),
|
|
37
37
|
cache,
|