Skip to content

Commit 373f1f2

Browse files
committed
v0.3.0 - move compiler to before-compile. Fixes #4
1 parent 9118670 commit 373f1f2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class RelayCompilerWebpackPlugin {
7171
apply(compiler) {
7272
var _this = this;
7373

74-
compiler.plugin('after-compile', (() => {
74+
compiler.plugin('before-compile', (() => {
7575
var _ref = _asyncToGenerator(function* (compilation, callback) {
7676
try {
7777
const runner = new _relayCompiler.Runner({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "relay-compiler-webpack-plugin",
3-
"version": "0.2.3",
3+
"version": "0.3.0",
44
"description": "Automatically run the Relay Compiler from Webpack",
55
"repository": {
66
"type": "git",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class RelayCompilerWebpackPlugin {
5959
}
6060

6161
apply (compiler: Compiler) {
62-
compiler.plugin('after-compile', async (compilation, callback) => {
62+
compiler.plugin('before-compile', async (compilation, callback) => {
6363
try {
6464
const runner = new Runner({
6565
parserConfigs: this.parserConfigs,

0 commit comments

Comments
 (0)