Skip to content

Commit e5f72ca

Browse files
committed
Fix registering the example text block
1 parent b95c775 commit e5f72ca

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

modules/editor/blocks/text-block/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
wp.blocks.registerBlock( 'wp', 'Text', {
1+
wp.blocks.registerBlock( 'wp/text', {
22
edit( state, onChange ) {
33
return wp.element.createElement( wp.blocks.Editable, {
44
value: state.value,

webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ const config = {
6464
]
6565
},
6666
plugins: [
67+
new webpack.DefinePlugin( {
68+
'process.env': {
69+
NODE_ENV: JSON.stringify( process.env.NODE_ENV )
70+
}
71+
} ),
6772
new webpack.LoaderOptionsPlugin( {
6873
minimize: process.env.NODE_ENV === 'production',
6974
debug: process.env.NODE_ENV !== 'production',

0 commit comments

Comments
 (0)