2021-08-19 02:33:41 -07:00
|
|
|
/*
|
|
|
|
import * as fs from 'fs';
|
|
|
|
|
|
|
|
if (fs.existsSync('./built')) {
|
|
|
|
import('./built/index.js').then(built => built());
|
|
|
|
} else {
|
|
|
|
console.log('Built code is not found. Probably an error occurred during a build or you just forgot to build.');
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
2019-09-10 01:15:38 -07:00
|
|
|
const fs = require('fs');
|
|
|
|
|
|
|
|
if (fs.existsSync('./built')) {
|
|
|
|
require('./built').default();
|
|
|
|
} else {
|
|
|
|
console.log('Built code is not found. Probably an error occurred during a build or you just forgot to build.');
|
|
|
|
}
|