-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-iotype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
We'd like to have code that does something like this:
// these are giant maps
const Map mac = {...};
const Map windows = {...};
const Map linux = {...};
convert(foo) {
if (Platform.isMac)
return mac[foo];
if (Platform.isLinux)
return linux[foo];
if (Platform.isWindows)
return windows[foo];
return null;
}We only want to ship the maps that apply to the current platform; we'd like the others to tree-shake out.
gspencergoog, awulkan, jagomf, rydmike, blaugold and 3 more
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-iotype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug