Browse Source

Merge pull request #19473 from donmccurdy/bug-global-deprecation-warning

Examples: Ensure deprecation warning isn't copied
Mr.doob 5 years ago
parent
commit
452a9e9318
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 ) {