mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-23 16:33:11 +08:00
26 lines
No EOL
636 B
JavaScript
Executable file
26 lines
No EOL
636 B
JavaScript
Executable file
const fs = require('fs')
|
|
const path = require('path')
|
|
|
|
const loadTrackingPath = path.resolve(
|
|
__dirname,
|
|
'../node_modules/@vue/apollo-composable/dist/util/loadingTracking.js'
|
|
)
|
|
|
|
fs.writeFileSync(
|
|
loadTrackingPath,
|
|
fs.readFileSync(loadTrackingPath, 'utf8').replace(/\.\$root/m, '.root')
|
|
)
|
|
|
|
const useQueryPath = path.resolve(
|
|
__dirname,
|
|
'../node_modules/@vue/apollo-composable/dist/useQuery.js'
|
|
)
|
|
|
|
fs.writeFileSync(
|
|
useQueryPath,
|
|
fs
|
|
.readFileSync(useQueryPath, 'utf8')
|
|
.replace(/(^.*onServerPrefetch)/m, '$1=()=>{}; $1')
|
|
.replace(/(.* require\("vue"\);)/m, '')
|
|
.replace(/^.*(nextTick)/m, 'vue_demi_1.$1')
|
|
) |