Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/serialize/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ export type Interpolation<Props = unknown> =
| ArrayInterpolation<Props>
| FunctionInterpolation<Props>

declare const process: {
env: {
NODE_ENV: string
}
}

const ILLEGAL_ESCAPE_SEQUENCE_ERROR = `You have illegal escape sequence in your template literal, most likely inside content's property value.
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
You can read more about this here:
Expand Down
4 changes: 3 additions & 1 deletion packages/server/types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"baseUrl": "../",
"forceConsistentCasingInFileNames": true,
"jsx": "react",
"lib": ["es6"],

// dom is needed because @emotion/server references packages that use DOM types
"lib": ["es6", "dom"],
"module": "commonjs",
"noEmit": true,
"strict": true,
Expand Down
6 changes: 6 additions & 0 deletions packages/sheet/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ styleSheet.flush()

*/

declare const process: {
env: {
NODE_ENV: string
}
}

function sheetForTag(tag: HTMLStyleElement): CSSStyleSheet {
if (tag.sheet) {
return tag.sheet
Expand Down