Skip to content

Commit ba25197

Browse files
committed
Update index.js with constructor inheriting Mix context — pixelcollective#6
1 parent 05d6eb3 commit ba25197

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ const DependencyExtractionPlugin = require('@wordpress/dependency-extraction-web
99
* @see https://www.npmjs.com/package/@wordpress/dependency-extraction-webpack-plugin
1010
*/
1111
class Block extends JavaScript {
12+
13+
constructor() {
14+
super();
15+
this.context = Mix
16+
}
17+
1218
name() {
1319
return ['blocks', 'block']
1420
}

0 commit comments

Comments
 (0)