Configure Rollup to bundle Axios module
npm install rollup-plugin-node-resolve rollup-plugin-json. Add it to the plugins inside rollup.config.js 1 2 3 4 5 6 7 8 9 10 11 // Rollup configuration ... plugins: [ rollupNodeResolve({ jsnext: true, preferBuiltins: true, browser: true }), rollupJson(), ... ] ** Notice the browser: true ** Run your build again: yarn run build Voila! Source