Browse Source

Examples: Ensure deprecation warning isn't copied from examples/js → examples/jsm.

Don McCurdy 5 years ago
parent
commit
2cc2a54799
1 changed files with 4 additions and 0 deletions
  1. 4 0
      utils/modularize.js

+ 4 - 0
utils/modularize.js

@@ -250,6 +250,10 @@ function convert( path, exampleDependencies, ignoreList ) {
 	var classNames = [];
 	var coreDependencies = {};
 
+	// remove examples/js deprecation warning
+
+	contents = contents.replace( /^console\.warn.*\n/, '' );
+
 	// imports
 
 	contents = contents.replace( /^\/\*+[^*]*\*+(?:[^/*][^*]*\*+)*\//, function ( match ) {