mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 15:09:54 +01:00
43 lines
868 B
JavaScript
43 lines
868 B
JavaScript
|
import * as path from 'path';
|
||
|
|
||
|
const baseTestOutput = path.join(__dirname, 'test', 'assets');
|
||
|
const noStrict = {
|
||
|
renderChunk(code) {
|
||
|
return code.replace("'use strict';", '');
|
||
|
}
|
||
|
};
|
||
|
|
||
|
export default [
|
||
|
{
|
||
|
input: 'src/wbWombat.js',
|
||
|
output: {
|
||
|
name: 'wombat',
|
||
|
file: path.join(baseTestOutput, 'wombat.js'),
|
||
|
sourcemap: false,
|
||
|
format: 'iife'
|
||
|
},
|
||
|
plugins: [noStrict]
|
||
|
},
|
||
|
{
|
||
|
input: 'src/wbWombatProxyMode.js',
|
||
|
output: {
|
||
|
name: 'wombat',
|
||
|
file: path.join(baseTestOutput, 'wombatProxyMode.js'),
|
||
|
sourcemap: false,
|
||
|
format: 'iife'
|
||
|
},
|
||
|
plugins: [noStrict]
|
||
|
},
|
||
|
{
|
||
|
input: 'src/wombatWorkers.js',
|
||
|
output: {
|
||
|
name: 'wombat',
|
||
|
file: path.join(baseTestOutput, 'wombatWorkers.js'),
|
||
|
format: 'es',
|
||
|
sourcemap: false,
|
||
|
exports: 'none'
|
||
|
},
|
||
|
plugins: [noStrict]
|
||
|
}
|
||
|
];
|