Created
February 23, 2017 16:32
-
-
Save longlho/66fbd413c51cae5051d71aa1b20e704b to your computer and use it in GitHub Desktop.
intl tree-shaking
This file contains hidden or 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
// lib.js | |
import formatRelative from 'intl-relativeformat' | |
export function foo () { | |
formatRelative() | |
} | |
export function bar () {} | |
// main.js | |
import { bar } from 'lib' | |
bar() | |
// Result would have intl-relativeformat, intl-messageformat & its parser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment