21 lines
488 B
JavaScript
21 lines
488 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = ({entries, paths, root, rules}) => {
|
|
rules.push({
|
|
test: new RegExp('@avocado/packages/net/s13n/s13n.avopack.js$'),
|
|
use: {
|
|
loader: '@avocado/core/webpack/autoreg',
|
|
options: {
|
|
paths,
|
|
registrar: {
|
|
function: 'registerSynchronized',
|
|
module: '@avocado/net',
|
|
},
|
|
root,
|
|
type: 'synchronized',
|
|
},
|
|
},
|
|
});
|
|
entries.push('@avocado/net/s13n/s13n.avopack');
|
|
};
|