File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import json from 'rollup-plugin-json'
77import uglify from 'rollup-plugin-uglify'
88import visualizer from 'rollup-plugin-visualizer'
99import sourceMaps from 'rollup-plugin-sourcemaps'
10- import pkg from './package.json'
1110
1211const commonPlugins = [
1312 json ( ) ,
@@ -17,19 +16,19 @@ const commonPlugins = [
1716 commonjs ( { ignoreGlobal : true } ) ,
1817]
1918
20- const configBase = {
21- input : 'src/index.js' ,
22- external : [ 'graphql/language' ] . concat ( Object . keys ( pkg . dependencies ) ) ,
23- plugins : commonPlugins ,
24- }
25-
2619const globals = {
2720 'graphql-tag' : 'gql' ,
2821 graphql : 'graphql' ,
2922 'graphql-tools' : 'graphqlTools' ,
3023 'graphql/language' : 'graphqlLanguage' ,
3124}
3225
26+ const configBase = {
27+ input : 'src/index.js' ,
28+ external : Object . keys ( globals ) ,
29+ plugins : commonPlugins ,
30+ }
31+
3332const umdConfig = Object . assign ( { } , configBase , {
3433 output : {
3534 file : 'dist/fraql.js' ,
You can’t perform that action at this time.
0 commit comments