mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-20 23:28:42 -05:00
fix: add column, line, and method check to integrity check (#25094)
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
const Module = require('module')
|
||||
const path = require('path')
|
||||
import Module from 'module'
|
||||
import path from 'path'
|
||||
import { runBytecodeAsModule } from 'bytenode'
|
||||
|
||||
process.env.CYPRESS_INTERNAL_ENV = process.env.CYPRESS_INTERNAL_ENV || 'production'
|
||||
try {
|
||||
require('bytenode')
|
||||
const filename = path.join(__dirname, 'packages', 'server', 'index.jsc')
|
||||
const dirname = path.dirname(filename)
|
||||
|
||||
Module._extensions['.jsc']({
|
||||
runBytecodeAsModule({
|
||||
require: module.require,
|
||||
id: filename,
|
||||
filename,
|
||||
|
||||
Reference in New Issue
Block a user