{"action":"closed","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/6427","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/6427/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/6427/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/6427/events","html_url":"https://github.com/WordPress/gutenberg/issues/6427","id":317703211,"number":6427,"title":"lodash dependency","user":{"login":"theleemon","id":2060659,"avatar_url":"https://avatars0.githubusercontent.com/u/2060659?v=4","gravatar_id":"","url":"https://api.github.com/users/theleemon","html_url":"https://github.com/theleemon","followers_url":"https://api.github.com/users/theleemon/followers","following_url":"https://api.github.com/users/theleemon/following{/other_user}","gists_url":"https://api.github.com/users/theleemon/gists{/gist_id}","starred_url":"https://api.github.com/users/theleemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theleemon/subscriptions","organizations_url":"https://api.github.com/users/theleemon/orgs","repos_url":"https://api.github.com/users/theleemon/repos","events_url":"https://api.github.com/users/theleemon/events{/privacy}","received_events_url":"https://api.github.com/users/theleemon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-25T16:29:36Z","updated_at":"2018-04-26T06:57:38Z","closed_at":"2018-04-26T06:57:38Z","author_association":"NONE","body":"<!--\r\nBEFORE POSTING YOUR ISSUE:\r\n- These comments won't show up when you submit the issue.\r\n- Try to add as much detail as possible. Be specific!\r\n- Please add the version of Gutenberg you are using in the description.\r\n- If you're requesting a new feature, explain why you'd like it to be added.\r\n- Search this repository for issues and pull requests and whether it has been fixed or reported already.\r\n- Ensure you are using the latest code before logging bugs.\r\n- Disable all plugins to ensure it's not a plugin conflict issue.\r\n- To report a security issue, please visit the WordPress HackerOne program: https://hackerone.com/wordpress.\r\n-->\r\n\r\n## Issue Overview\r\n<!-- This is a brief overview of the issue --->\r\n\r\nJust a small question. Is it required to bundle the lodash lib in our block plugins that make use of lodash functions or can we use the already loaded by Gutenberg lib? Although I'm adding the lodash lib as a dependency in my plugin, I'm getting a `ReferenceError: pick is not defined` console error. \r\nI don't know what I'm doing wrong. Any ideas?\r\n\r\nThanks in advance\r\n\r\n```\r\nfunction register_block() {\r\n        wp_register_script(\r\n            'gutenberg-slider',\r\n            plugins_url( 'block.build.js', __FILE__ ),\r\n            array( 'wp-blocks', 'wp-components', 'wp-element', 'wp-utils', 'lodash' )\r\n        );\r\n\r\n        register_block_type( 'my/slider', array(\r\n            'editor_script' => 'gutenberg-slider',\r\n        ) );\r\n}\r\n\r\n"}}
{"actor":{"display_login":"gziolo"}}