mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-16 22:39:56 +08:00
* Add graphql loader to webpack config Signed-off-by: petetnt <pete.a.nykanen@gmail.com> * Update README.md Signed-off-by: petetnt <pete.a.nykanen@gmail.com> * Update react-scripts README.md Signed-off-by: petetnt <pete.a.nykanen@gmail.com> * Add graphql jest transform Signed-off-by: petetnt <pete.a.nykanen@gmail.com> * Add integration tests, pin versions in package.json Signed-off-by: petetnt <pete.a.nykanen@gmail.com> * Tests expect regexp matchers Signed-off-by: petetnt <pete.a.nykanen@gmail.com> * Use strict equal test instead Signed-off-by: petetnt <pete.a.nykanen@gmail.com> * Escaping is hard Signed-off-by: petetnt <pete.a.nykanen@gmail.com> * Add comment for signifying a different file * Update docs * Fix jest config * Remove node_modules exclusion * Update README.md * Inline graphql jest transform Signed-off-by: petetnt <pete.a.nykanen@gmail.com> * Update copyright header Signed-off-by: petetnt <pete.a.nykanen@gmail.com> * Use .graphql extension only Signed-off-by: petetnt <pete.a.nykanen@gmail.com>
19 lines
417 B
JavaScript
19 lines
417 B
JavaScript
// @remove-on-eject-begin
|
|
/**
|
|
* Copyright (c) 2018-present, Facebook, Inc.
|
|
* Copyright (c) 2016 Remind
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
// @remove-on-eject-end
|
|
'use strict';
|
|
|
|
const loader = require('graphql-tag/loader');
|
|
|
|
module.exports = {
|
|
process(src) {
|
|
return loader.call({ cacheable() {} }, src);
|
|
},
|
|
};
|