Skip to content

Commit

Permalink
Babel plugin: Add new Babel plugin which handles block.json file tran…
Browse files Browse the repository at this point in the history
…sformation
  • Loading branch information
gziolo committed Dec 6, 2019
1 parent 72d9bd0 commit 78592e1
Show file tree
Hide file tree
Showing 19 changed files with 818 additions and 340 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = {
// we'll get a `SyntaxError` (Invalid regular expression: \ at end of pattern)
// here. That's why we use \\u002F in the regexes below.
{
selector: 'ImportDeclaration[source.value=/^@wordpress\\u002F.+\\u002F/]',
selector: 'ImportDeclaration[source.value=/^@wordpress\\u002F.+\\u002F(?!macro)/]',
message: 'Path access on WordPress dependencies is not allowed.',
},
{
Expand Down
6 changes: 6 additions & 0 deletions docs/manifest-devhub.json
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,12 @@
"markdown_source": "../packages/autop/README.md",
"parent": "packages"
},
{
"title": "@wordpress/babel-plugin-block",
"slug": "packages-babel-plugin-block",
"markdown_source": "../packages/babel-plugin-block/README.md",
"parent": "packages"
},
{
"title": "@wordpress/babel-plugin-import-jsx-pragma",
"slug": "packages-babel-plugin-import-jsx-pragma",
Expand Down
Loading

0 comments on commit 78592e1

Please sign in to comment.