avm-runner-background/runner-script/webpack.config.node.js

23 lines
574 B
JavaScript

// Generated using webpack-cli https://github.com/webpack/webpack-cli
const config = require('./webpack.config.js');
module.exports = () => {
const cfg = config();
cfg.output.filename = 'node.js';
cfg.target = 'node';
//
// TODO: we want to reuse code from node_modules
// instead of bundling AVM inside base64
// ||
// \/
// cfg.externals = [
// {
// ['@fluencelabs/avm']: {
// root: '@fluencelabs/avm',
// },
// },
// ];
return cfg;
};