mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-23 03:30:36 +03:00
improve structure & switch to yarn
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
const path = require('path');
|
||||
const jestPuppeteerConfig = require('../jest-puppeteer.config.base');
|
||||
|
||||
module.exports = {
|
||||
process: (src, filePath, config) => {
|
||||
const deploymentPath = path.relative(path.dirname(config.globals.baseConfig), filePath);
|
||||
const split = deploymentPath.split(path.sep);
|
||||
return `module.exports = ${JSON.stringify(`http://localhost:${jestPuppeteerConfig.server.port}/${path.posix.join(...split)}`)}`;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user