Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
fix(javascript): fix build when no config is passed
Browse files Browse the repository at this point in the history
Fixes #20
  • Loading branch information
mgrsskls committed Feb 7, 2022
1 parent c9a1ca1 commit bada523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stack-javascript/lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const path = require("path");
* @param {object} userPlugins
* @returns {Array}
*/
function getPlugins(use, rootFolder, targets, compiled, userPlugins) {
function getPlugins(use, rootFolder, targets, compiled, userPlugins = {}) {
const pluginOptions = {
"@rollup/plugin-babel": userPlugins["@rollup/plugin-babel"] || {},
"@rollup/plugin-node-resolve":
Expand Down

0 comments on commit bada523

Please sign in to comment.