File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1- const { injectBabelPlugin } = require ( 'react-app-rewired' )
1+ const { addBabelPlugin } = require ( 'customize-cra' ) ;
22
33function rewireInlineImportGraphqlAst ( config , env , gqlPluginOptions = { } ) {
44 const pluginOptions = Object . assign ( { } , gqlPluginOptions , { nodePath : process . env . NODE_PATH } )
5- return injectBabelPlugin ( [ 'import-graphql' , pluginOptions ] , config )
5+ return addBabelPlugin ( [ 'import-graphql' , pluginOptions ] ) ( config )
66}
77
8- module . exports = rewireInlineImportGraphqlAst
8+ module . exports = rewireInlineImportGraphqlAst
Original file line number Diff line number Diff line change 11{
22 "name" : " react-app-rewire-inline-import-graphql-ast" ,
3- "version" : " 1.1.1 " ,
3+ "version" : " 2.0.0 " ,
44 "description" : " A plugin to add the inline-import-graphql-ast Babel plugin to create-react-app with react-app-rewired" ,
55 "repository" : {
66 "type" : " git" ,
99 "main" : " index.js" ,
1010 "license" : " MIT" ,
1111 "dependencies" : {
12- "babel-plugin-import-graphql" : " ^2.6.2"
12+ "babel-plugin-import-graphql" : " ^2.6.2" ,
13+ "customize-cra" : " ^0.2.12"
1314 },
1415 "peerDependencies" : {
15- "react-app-rewired" : " ^1.3.8 "
16+ "react-app-rewired" : " ^2.0.1 "
1617 }
1718}
You can’t perform that action at this time.
0 commit comments