Gathering detailed insights and metrics for @davidwu226/relay-compiler-webpack-plugin
Gathering detailed insights and metrics for @davidwu226/relay-compiler-webpack-plugin
Gathering detailed insights and metrics for @davidwu226/relay-compiler-webpack-plugin
Gathering detailed insights and metrics for @davidwu226/relay-compiler-webpack-plugin
Automatically run the Relay Compiler from Webpack
npm install @davidwu226/relay-compiler-webpack-plugin
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
BSD-3-Clause License
39 Commits
2 Watchers
2 Branches
1 Contributors
Updated on Nov 09, 2019
Latest Version
0.5.2
Package Id
@davidwu226/relay-compiler-webpack-plugin@0.5.2
Size
37.23 kB
NPM Version
5.3.0
Node Version
6.9.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
Are you running Relay Modern? Are you annoyed with constantly running the relay-compiler
to generate code, especially if you're already running Webpack?
Well be annoyed no more! Simply install this plugin to automatically hook into Webpack's build process to generate these files for you.
1 yarn add --dev @dhau/relay-compiler-webpack-plugin 2 # Or if you're using npm 3 npm install --save-dev @dhau/relay-compiler-webpack-plugin
1const RelayCompilerWebpackPlugin = require('relay-compiler-webpack-plugin') 2const path = require('path') 3 4module.exports = { 5 // ... Your existing Webpack configuration 6 plugins: [ 7 // ... 8 new RelayCompilerWebpackPlugin({ 9 schema: path.resolve(__dirname, './relative/path/to/schema.graphql'), // or schema.json 10 src: path.resolve(__dirname, './relative/path/to/source/files'), 11 }) 12 ] 13 // ... 14}
If there are multiple versions of GraphQL in your dependency tree it will cause schema validation errors. To get around this, ensure you have the same graphql version as your relay-compiler version depends on. To assist this you can install dependencies as flat which ensures only one version of each dependency.
Currently, the relay-compiler
is undergoing a lot of work.
Various modules required by this library aren't modular enough to truly inject the generated files into Webpack's file hierarchy.
We'll be working with the relay-compiler
to make it more modular in this regard as well as updating this project accordingly.
However it is still better than manually running the relay-compiler
whenever anything changes.
Currently Webpack may build a few times once it picks up the files generated by this plugin.
Relay Compiler Webpack Plugin may be redistributed according to the BSD 3-Clause License.
Copyright 2017, ThusFresh, Inc.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
62 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More