Revert "feat: only allow bundled preload scripts (#17308)" (#18091)

This reverts commit 8cf15cc931.
This commit is contained in:
Milan Burda 2019-06-20 01:39:12 +02:00 committed by Cheng Zhao
parent 257fd2c0df
commit 4575a4aae3
9 changed files with 0 additions and 76 deletions

View file

@ -1,6 +0,0 @@
import * as path from 'path'
export const isParentDir = function (parent: string, dir: string) {
const relative = path.relative(parent, dir)
return !!relative && !relative.startsWith('..') && !path.isAbsolute(relative)
}