Skip to content

Commit

Permalink
Merge pull request #19473 from donmccurdy/bug-global-deprecation-warning
Browse files Browse the repository at this point in the history
Examples: Ensure deprecation warning isn't copied
  • Loading branch information
mrdoob authored May 27, 2020
2 parents bc20838 + 2cc2a54 commit 452a9e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/modularize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 452a9e9

Please sign in to comment.