Skip to content

Commit 3e44bd4

Browse files
committed
Don't add ./ for http urls
1 parent 61ea55d commit 3e44bd4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/rollup-plugin-polyfills-loader/src/rollupPluginPolyfillsLoader.ts

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ export function polyfillsLoader(pluginOptions: RollupPluginPolyfillsLoaderConfig
7272
return path;
7373
} else if (path.startsWith('./')) {
7474
return path;
75+
} else if (path.startsWith('http')) {
76+
return path;
7577
} else if (path.startsWith('/')) {
7678
return '.' + path;
7779
} else {

0 commit comments

Comments
 (0)