Skip to content

Commit

Permalink
Merge pull request #444 from material-components/remove/polyfill
Browse files Browse the repository at this point in the history
Remove polyfills
  • Loading branch information
emeaguiar committed Sep 1, 2022
2 parents b8c3ab8 + ced10fa commit 4b060e4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 53 deletions.
32 changes: 0 additions & 32 deletions plugin/assets/src/polyfills/index.js

This file was deleted.

11 changes: 0 additions & 11 deletions plugin/php/class-block-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,6 @@ public function enqueue_block_editor_assets() {
}
}

// Enqueue RichText polyfills if WP version is less than 5.3.
if ( version_compare( get_bloginfo( 'version' ), '5.3', '<' ) ) {
wp_enqueue_script(
'material-block-editor-polyfills',
$this->plugin->asset_url( 'assets/js/polyfills.js' ),
[],
$version,
false
);
}

wp_register_script(
'material-block-editor-js',
$this->plugin->asset_url( 'assets/js/block-editor.js' ),
Expand Down
10 changes: 0 additions & 10 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,6 @@ const assets = {
'./plugin/assets/css/src/getting-started.css',
],
},
{
name: 'Polyfills',
chunk: 'polyfills',
entry: [ './plugin/assets/src/polyfills/index.js' ],
toBundle: [
'@wordpress/data',
'@wordpress/escape-html',
'@wordpress/rich-text',
],
},
{
name: 'Settings',
chunk: 'settings',
Expand Down

0 comments on commit 4b060e4

Please sign in to comment.