Skip to content

Commit 452a9e9

Browse files
authored
Merge pull request #19473 from donmccurdy/bug-global-deprecation-warning
Examples: Ensure deprecation warning isn't copied
2 parents bc20838 + 2cc2a54 commit 452a9e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/modularize.js

+4
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ function convert( path, exampleDependencies, ignoreList ) {
250250
var classNames = [];
251251
var coreDependencies = {};
252252

253+
// remove examples/js deprecation warning
254+
255+
contents = contents.replace( /^console\.warn.*\n/, '' );
256+
253257
// imports
254258

255259
contents = contents.replace( /^\/\*+[^*]*\*+(?:[^/*][^*]*\*+)*\//, function ( match ) {

0 commit comments

Comments
 (0)