File tree 4 files changed +22
-2
lines changed
4 files changed +22
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @emotion/styled " : minor
3
+ ---
4
+
5
+ Added ability to import tags directly from '@emotion/styled /tags'
Original file line number Diff line number Diff line change 44
44
],
45
45
"umd:main" : " dist/emotion-styled.umd.min.js" ,
46
46
"exports" : {
47
+ "./tags" : {
48
+ "types" : {
49
+ "import" : " ./base/dist/emotion-styled-tags.cjs.mjs" ,
50
+ "default" : " ./base/dist/emotion-styled-tags.cjs.js"
51
+ },
52
+ "development" : {
53
+ "module" : " ./dist/emotion-styled-tags.development.esm.js" ,
54
+ "import" : " ./dist/emotion-styled-tags.development.cjs.mjs" ,
55
+ "default" : " ./dist/emotion-styled-tags.development.cjs.js"
56
+ },
57
+ "module" : " ./dist/emotion-styled-tags.esm.js" ,
58
+ "import" : " ./dist/emotion-styled-tags.cjs.mjs" ,
59
+ "default" : " ./dist/emotion-styled-tags.cjs.js"
60
+ },
47
61
"./base" : {
48
62
"types" : {
49
63
"import" : " ./base/dist/emotion-styled-base.cjs.mjs" ,
177
191
"preconstruct" : {
178
192
"umdName" : " emotionStyled" ,
179
193
"entrypoints" : [
194
+ " ./tags.ts" ,
180
195
" ./index.ts" ,
181
196
" ./base.tsx"
182
197
],
Original file line number Diff line number Diff line change 1
1
import { Theme } from '@emotion/react'
2
2
import styled from './base'
3
3
import { ReactJSXIntrinsicElements } from './jsx-namespace'
4
- import { tags } from './tags'
4
+ import tags from './tags'
5
5
import {
6
6
CreateStyledComponent ,
7
7
CreateStyled as BaseCreateStyled
Original file line number Diff line number Diff line change 1
- export const tags = [
1
+ export default [
2
2
'a' ,
3
3
'abbr' ,
4
4
'address' ,
You can’t perform that action at this time.
0 commit comments