mirror of
https://github.com/pysunday/sdenv.git
synced 2025-04-12 03:37:16 +08:00
17 lines
456 B
JavaScript
17 lines
456 B
JavaScript
const path = require('path');
|
|
const paths = require('../utils/paths');
|
|
require('module-alias')(path.dirname(paths.package));
|
|
// const jsdomDevtoolsFormatter = require('jsdom-devtools-formatter');
|
|
// jsdomDevtoolsFormatter.install();
|
|
const SdenvExtend = require('sdenv-extend');
|
|
|
|
module.exports = (win, type = 'chrome') => {
|
|
new SdenvExtend({
|
|
memory: {
|
|
SdenvExtend,
|
|
}
|
|
}, win);
|
|
require(`@/browser/${type}`);
|
|
return new SdenvExtend();
|
|
}
|