@vue/apollo-option
Version:
Use Apollo and GraphQL with Vue.js using the `apollo` option
28 lines (25 loc) • 574 B
JavaScript
import babel from 'rollup-plugin-babel'
import cjs from 'rollup-plugin-commonjs'
import resolve from 'rollup-plugin-node-resolve'
import replace from 'rollup-plugin-replace'
const config = require('../package.json')
export default {
input: 'src/index.js',
plugins: [
resolve({
jsnext: true,
main: true,
browser: true,
}),
cjs({
exclude: 'src/**',
}),
babel({
exclude: 'node_modules/**',
}),
replace({
VERSION: JSON.stringify(config.version),
}),
],
external: ['@apollo/client', 'graphql-tag'],
}