Created
February 20, 2018 19:49
-
-
Save zgordon/63bcad0420fbfb99cf3152456b302b77 to your computer and use it in GitHub Desktop.
Example of how to import files using webpack external aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example of how to deconstruct registerBlockType without externals | |
const { registerBlockType } = wp.blocks; | |
// Example of how to import wp.blocks using webpack externals | |
import { registerBlockType } from "@wordpress/blocks"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment