I see you already using rollup babel plugin, there is another one I am always using to make imports from node_modules working as expected rollup-plugin-node-resolve, i.e.
import { BunnyURL } from 'bunnyjs/src/url';
Would you mind to add it?
I also would recommend adding configuration options because mix.rollup() in bigger projects might be called many times and specifying each time mix.rollup(domain.js, null, a lot of options) is not good.
I see you already using rollup babel plugin, there is another one I am always using to make imports from node_modules working as expected
rollup-plugin-node-resolve
, i.e.Would you mind to add it?
I also would recommend adding configuration options because mix.rollup() in bigger projects might be called many times and specifying each time mix.rollup(domain.js, null, a lot of options) is not good.