We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85309f5 commit 941d200Copy full SHA for 941d200
build/build.js
@@ -73,7 +73,9 @@ build([
73
format: 'esm',
74
env: 'production'
75
}
76
-].map(genConfig))
+].map(genConfig)).catch(error => {
77
+ process.exit(1)
78
+})
79
80
function genConfig (opts) {
81
const config = {
@@ -113,15 +115,18 @@ function build (builds) {
113
115
let built = 0
114
116
const total = builds.length
117
const next = () => {
- buildEntry(builds[built]).then(() => {
118
+ return buildEntry(builds[built]).then(() => {
119
built++
120
if (built < total) {
- next()
121
+ return next()
122
- }).catch(logError)
123
+ }).catch(error => {
124
+ logError(error)
125
+ throw error
126
+ })
127
128
129
130
131
132
function buildEntry ({ input, output }) {
0 commit comments