woocommerce/packages/js/create-product-editor-block/block-templates/index.ts.mustache

28 lines
607 B
Plaintext
Raw Normal View History

/**
* External dependencies
*/
import { BlockConfiguration, registerBlockType } from '@wordpress/blocks';
/**
* Internal dependencies
*/
import './editor.scss'; // see https://www.npmjs.com/package/@wordpress/scripts#using-css
/**
* Internal dependencies
*/
import { Edit } from './edit';
import metadata from './block.json';
/**
* Every block starts by registering a new block type definition.
*
* @see https://developer.wordpress.org/block-editor/developers/block-api/#registering-a-block
*/
registerBlockType( metadata as BlockConfiguration, {
/**
* @see ./edit.js
*/
edit: Edit,
} );