Skip to content

Commit 6717fb2

Browse files
committed
build: hopefully fix production builds bundling too much in play
1 parent 550ba58 commit 6717fb2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

rollup.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,27 @@ if (process.env.ENV === 'dev') {
251251
format: 'iife',
252252
name: 'play',
253253
sourcemap: true,
254+
globals: {
255+
'ractive': 'Ractive',
256+
'raport': 'Raport',
257+
'design': 'Raport.Design',
258+
'raport/index': 'Raport',
259+
'design/index': 'Raport.Design',
260+
}
254261
},
255262
{
256263
file: 'play/index.min.js',
257264
format: 'iife',
258265
name: 'play',
259266
sourcemap: true,
260267
plugins: [terser()],
268+
globals: {
269+
'ractive': 'Ractive',
270+
'raport': 'Raport',
271+
'design': 'Raport.Design',
272+
'raport/index': 'Raport',
273+
'design/index': 'Raport.Design',
274+
}
261275
}
262276
],
263277
plugins: [

0 commit comments

Comments
 (0)