Alias node modules#

You can alias modules using the @bundless/plugin-alias plugin

Example#

js
1
// bundless.config.js
2
const { AliasPlugin } = require('@bundless/plugin-alias')
3
4
module.exports = {
5
plugins: [
6
AliasPlugin({
7
entries: { react: 'preact/compat', /regex/: 'some-path' },
8
}),
9
],
10
}
Next
Babel
Alias node modules