1 | export default {
|
2 | entry: 'dist/index.js',
|
3 | dest: 'dist/bundle.umd.js',
|
4 | format: 'umd',
|
5 | sourceMap: true,
|
6 | moduleName: 'apolloFetch',
|
7 | exports: 'named',
|
8 | onwarn
|
9 | };
|
10 |
|
11 | function onwarn(message) {
|
12 | const suppressed = [
|
13 | 'UNRESOLVED_IMPORT',
|
14 | 'THIS_IS_UNDEFINED'
|
15 | ];
|
16 |
|
17 | if (!suppressed.find(code => message.code === code)) {
|
18 | return console.warn(message.message);
|
19 | }
|
20 | }
|