when I add a relative path to webpack.externals
array, the output file contains: module.exports = ../path;
which causes the error: Unexpected token.
//webpack.config.js
{
externals: ['../path']
}
//input.ts
import something from '../path';
//output.js
module.exports = ../path;
fixed by using a function instead of an object