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