mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-25 01:49:06 -05:00
build: ensure tslib is bundled with the cli (#33407)
This commit is contained in:
@@ -8,8 +8,10 @@ import path from 'path'
|
||||
const pkg = JSON.parse(readFileSync('./package.json', 'utf8').toString())
|
||||
|
||||
function external (id, parent, resolved) {
|
||||
// Bundle tslib so that we include ts helpers
|
||||
if (id === 'tslib' || id.startsWith('tslib/') || id.includes('tslib/tslib.es6.js')) {
|
||||
// Bundle tslib so that we include ts helpers (Windows resolves to absolute path with backslashes)
|
||||
const idNorm = id.replace(/\\/g, '/')
|
||||
|
||||
if (id === 'tslib' || idNorm.startsWith('tslib') || idNorm.includes('tslib/tslib.es6.js')) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user