Skip to content

Commit 79c4ab2

Browse files
committed
chore: fix build
1 parent 887b10c commit 79c4ab2

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

rollup.config.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import json from 'rollup-plugin-json'
77
import uglify from 'rollup-plugin-uglify'
88
import visualizer from 'rollup-plugin-visualizer'
99
import sourceMaps from 'rollup-plugin-sourcemaps'
10-
import pkg from './package.json'
1110

1211
const 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-
2619
const 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+
3332
const umdConfig = Object.assign({}, configBase, {
3433
output: {
3534
file: 'dist/fraql.js',

0 commit comments

Comments
 (0)