v2.21.0
版本发布时间: 2021-03-03 09:30:42
Shopify/polaris-tokens最新发布版本:v4.0.0(2021-09-17 05:33:21)
- Added
mergeConfigs
andConfig
to the public API ofdist-modern/index.js
(#180) - Added esm support for legacy tokens. Doing
import {colorInk} from '@shopify/polaris-tokens';
shall load content fromdist/index.esm.js
which allows for better tree shaking. A default export so you can doimport tokens from '@shopify/polaris-tokens';
is provided for backwards compatability however this is just a stopgap, and will be removed in polaris-tokens v3.0.0. You should use either named imports (import {colorInk}
) or a namespace import (import * as tokens
) (#181)