mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-20 10:49:11 +01:00
31 lines
676 B
JavaScript
31 lines
676 B
JavaScript
|
import * as path from 'path';
|
||
|
import resolve from 'rollup-plugin-node-resolve';
|
||
|
|
||
|
const wombatDir = path.join(__dirname, '..');
|
||
|
const moduleDirectory = path.join(wombatDir, 'node_modules');
|
||
|
const baseTestOutput = path.join(wombatDir, 'test', 'assets');
|
||
|
|
||
|
const noStrict = {
|
||
|
renderChunk(code) {
|
||
|
return code.replace("'use strict';", '');
|
||
|
}
|
||
|
};
|
||
|
|
||
|
export default {
|
||
|
input: path.join(__dirname, 'testPageBundle.js'),
|
||
|
output: {
|
||
|
name: 'testPageBundle',
|
||
|
file: path.join(baseTestOutput, 'testPageBundle.js'),
|
||
|
sourcemap: false,
|
||
|
format: 'es'
|
||
|
},
|
||
|
plugins: [
|
||
|
resolve({
|
||
|
customResolveOptions: {
|
||
|
moduleDirectory
|
||
|
}
|
||
|
}),
|
||
|
noStrict
|
||
|
]
|
||
|
};
|