-
-
Save aduth/e5cb3cbe8124ed948c7e06c9ba3bd79c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$script = file_get_contents( 'script.js' ); | |
$script = str_replace( 'export default', 'exports =' ); | |
$script = 'return ( function() { var exports;' . $script . ' } )();'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
icon: 'whatever', | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment