Skip to content

Commit ced10fa

Browse files
committed
Remove polyfills
1 parent b8c3ab8 commit ced10fa

File tree

3 files changed

+0
-53
lines changed

3 files changed

+0
-53
lines changed

plugin/assets/src/polyfills/index.js

-32
This file was deleted.

plugin/php/class-block-types.php

-11
Original file line numberDiff line numberDiff line change
@@ -165,17 +165,6 @@ public function enqueue_block_editor_assets() {
165165
}
166166
}
167167

168-
// Enqueue RichText polyfills if WP version is less than 5.3.
169-
if ( version_compare( get_bloginfo( 'version' ), '5.3', '<' ) ) {
170-
wp_enqueue_script(
171-
'material-block-editor-polyfills',
172-
$this->plugin->asset_url( 'assets/js/polyfills.js' ),
173-
[],
174-
$version,
175-
false
176-
);
177-
}
178-
179168
wp_register_script(
180169
'material-block-editor-js',
181170
$this->plugin->asset_url( 'assets/js/block-editor.js' ),

webpack.config.js

-10
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,6 @@ const assets = {
121121
'./plugin/assets/css/src/getting-started.css',
122122
],
123123
},
124-
{
125-
name: 'Polyfills',
126-
chunk: 'polyfills',
127-
entry: [ './plugin/assets/src/polyfills/index.js' ],
128-
toBundle: [
129-
'@wordpress/data',
130-
'@wordpress/escape-html',
131-
'@wordpress/rich-text',
132-
],
133-
},
134124
{
135125
name: 'Settings',
136126
chunk: 'settings',

0 commit comments

Comments
 (0)