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
import java.lang.reflect.Field; | |
import java.util.Arrays; | |
import sun.misc.Unsafe; | |
public class Inline | |
{ | |
private static final int BASE_LENGTH = 7; | |
private static final int[] LENGTHS = new int[] {1, 2, 3, 4, 5, 6}; | |
private static final Unsafe UNSAFE; |
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
#import | |
find . -name 'node_modules' -prune -o -type f -name '*.js' \ | |
| xargs perl -i.bak -wpe 's/import(.*)from\s*'\''(.*)'\''/const$1= require('\''$2'\'')/g' | |
#export default | |
find . -name 'node_modules' -prune -o -type f -name '*.js' \ | |
| xargs perl -i.bak -wpe 's/export default/module.exports =/g' | |
#export const | |
find . -name 'node_modules' -prune -o -type f -name '*.js' \ | |
| xargs perl -i.bak -wpe 's/export const\s*([^\s]*)/const $1 = exports.$1/g' | |
#export function |