Skip to content

Commit

Permalink
Examples: Ensure deprecation warning isn't copied from examples/js → …
Browse files Browse the repository at this point in the history
…examples/jsm.
  • Loading branch information
Don McCurdy committed May 27, 2020
1 parent 8880636 commit 2cc2a54
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 2cc2a54

Please sign in to comment.