5fafd1a75b
* New example with-typescript-graphql * Update newer graphql-let * Apply @lfades 's suggestions * Use "lib" for tools directory * Move config decorator to next.config.js * Apply stricter tsconfig * mod: hide the word "apollo" from users * mod: Use variable name `withApollo` * Use the later version of graphql-let * Only pages can be in pages * Life improvements * fix: .grpahql-let.yml point to the wrong document path * Use a wider glob for less pitfalls * Add a note about it in README.md Co-authored-by: Luis Alvarez D. <luis@zeit.co>
17 lines
379 B
JavaScript
17 lines
379 B
JavaScript
module.exports = {
|
|
webpack(config, options) {
|
|
config.module.rules.push({
|
|
test: /\.graphql$/,
|
|
exclude: /node_modules/,
|
|
use: [options.defaultLoaders.babel, { loader: 'graphql-let/loader' }],
|
|
})
|
|
|
|
config.module.rules.push({
|
|
test: /\.graphqls$/,
|
|
exclude: /node_modules/,
|
|
loader: 'graphql-tag/loader',
|
|
})
|
|
|
|
return config
|
|
},
|
|
}
|