@@ -4,12 +4,12 @@ const loopWhile = require("deasync").loopWhile;
44module . exports = ( css , settings ) => {
55 const cssWithPlaceholders = css
66 . replace (
7- / \: \s * % % s t y l e d - j s x - e x p r e s s i o n - ( \d + ) % % / g,
8- ( _ , id ) => `: styled-jsx-expression -${ id } ()`
7+ / \: \s * % % s t y l e d - j s x - p l a c e h o l d e r - ( \d + ) % % / g,
8+ ( _ , id ) => `: styled-jsx-placeholder -${ id } ()`
99 )
1010 . replace (
11- / % % s t y l e d - j s x - e x p r e s s i o n - ( \d + ) % % / g,
12- ( _ , id ) => `/*%%styled-jsx-expression -${ id } %%*/`
11+ / % % s t y l e d - j s x - p l a c e h o l d e r - ( \d + ) % % / g,
12+ ( _ , id ) => `/*%%styled-jsx-placeholder -${ id } %%*/`
1313 ) ;
1414
1515 let wait = true ;
@@ -31,11 +31,11 @@ module.exports = (css, settings) => {
3131
3232 return preprocessed
3333 . replace (
34- / \: \s * s t y l e d - j s x - e x p r e s s i o n - ( \d + ) \( \) / g,
35- ( _ , id ) => `: %%styled-jsx-expression -${ id } %%`
34+ / \: \s * s t y l e d - j s x - p l a c e h o l d e r - ( \d + ) \( \) / g,
35+ ( _ , id ) => `: %%styled-jsx-placeholder -${ id } %%`
3636 )
3737 . replace (
38- / \/ \* % % s t y l e d - j s x - e x p r e s s i o n - ( \d + ) % % \* \/ / g,
39- ( _ , id ) => `%%styled-jsx-expression -${ id } %%`
38+ / \/ \* % % s t y l e d - j s x - p l a c e h o l d e r - ( \d + ) % % \* \/ / g,
39+ ( _ , id ) => `%%styled-jsx-placeholder -${ id } %%`
4040 ) ;
4141} ;
0 commit comments