pika-plugin-build-web-babel
Advanced tools
Comparing version 0.8.0 to 0.8.1
{ | ||
"name": "pika-plugin-build-web-babel", | ||
"description": "A @pika/pack plugin: Adds an babel compiled ESM distribution to your package", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"files": [ | ||
@@ -6,0 +6,0 @@ "src/" |
@@ -57,9 +57,10 @@ var path = (require('path')); | ||
const loadResult = TsconfigPaths.loadConfig(cwd); | ||
const matchPath = TsconfigPaths.createMatchPath( | ||
loadResult.absoluteBaseUrl, | ||
loadResult.paths, | ||
['main', 'module'] | ||
); | ||
let matchPath; | ||
if (isTs) { | ||
const loadResult = TsconfigPaths.loadConfig(cwd); | ||
matchPath = TsconfigPaths.createMatchPath( | ||
loadResult.absoluteBaseUrl, | ||
loadResult.paths, | ||
['main', 'module'] | ||
); | ||
plugins.push({ | ||
@@ -86,6 +87,8 @@ name: 'rollup-plugin-ts-paths', | ||
} | ||
let ret; | ||
ret = matchPath(s, TsconfigPaths.ReadJsonSync, TsconfigPaths.FileExistsSync, extensions); | ||
if (ret) { | ||
return false; | ||
if (isTs) { | ||
let ret; | ||
ret = matchPath(s, TsconfigPaths.ReadJsonSync, TsconfigPaths.FileExistsSync, extensions); | ||
if (ret) { | ||
return false; | ||
} | ||
} | ||
@@ -92,0 +95,0 @@ return true; |
4052
108