Explorar el Código

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

Don McCurdy hace 5 años
padre
commit
2cc2a54799
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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 ) {