-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Tried some new functions from polish today with some errors... Here I downloaded and added a test to your plugin (btw, please add jest as dev dep.)
● polished › 2. math
SyntaxError: unknown: Method does not exist: math
> 1 | import { math } from 'polished';
| ^
2 |
3 | let a = math('12px + 12px')
44 |
45 | if (!value) {
> 46 | throw imported.buildCodeFrameError('Method does not exist: ' + importedName);
| ^
47 | }{
title: "math",
code: `
import { math } from 'polished';
let a = math('12px + 12px')
`,
output: `
let a = '14px';
`
}Related to: Corjen/gatsby-plugin-polished#1
Metadata
Metadata
Assignees
Labels
No labels