You can alias modules using the @bundless/plugin-alias plugin
@bundless/plugin-alias
js1// bundless.config.js2const { AliasPlugin } = require('@bundless/plugin-alias')34module.exports = {5 plugins: [6 AliasPlugin({7 entries: { react: 'preact/compat', /regex/: 'some-path' },8 }),9 ],10}
1// bundless.config.js2const { AliasPlugin } = require('@bundless/plugin-alias')34module.exports = {5 plugins: [6 AliasPlugin({7 entries: { react: 'preact/compat', /regex/: 'some-path' },8 }),9 ],10}