@stylable/module-utils
Advanced tools
Comparing version 3.3.0 to 3.3.2-rc.1
@@ -31,2 +31,5 @@ "use strict"; | ||
} | ||
const cssString = includeCSSInJS | ||
? JSON.stringify(stylableResult.meta.outputAst.toString()) | ||
: '""'; | ||
switch (moduleFormat) { | ||
@@ -40,3 +43,3 @@ case 'dts': | ||
`import { $, ${importKey} } from ${JSON.stringify(runtimeRequest)}` | ||
], `$`, `create`, `createRenderable`, includeCSSInJS ? JSON.stringify(stylableResult.meta.outputAst.toString()) : '""', depth, 'const { classes, keyframes, vars, stVars, cssStates, style, st, $depth, $id, $css }', // = $ | ||
], `$`, `create`, `createRenderable`, cssString, depth, 'const { classes, keyframes, vars, stVars, cssStates, style, st, $depth, $id, $css }', // = $ | ||
[ | ||
@@ -51,3 +54,3 @@ `export { classes, keyframes, vars, stVars, cssStates, style, st, $depth, $id, $css };`, | ||
`const runtime = require(${JSON.stringify(runtimeRequest)})` | ||
], `runtime.$`, `runtime.create`, `runtime.createRenderable`, includeCSSInJS ? JSON.stringify(stylableResult.meta.outputAst.toString()) : '""', depth, 'module.exports', afterModule.join('\n'), renderableOnly); | ||
], `runtime.$`, `runtime.create`, `runtime.createRenderable`, cssString, depth, 'module.exports', afterModule.join('\n'), renderableOnly); | ||
} | ||
@@ -54,0 +57,0 @@ throw new Error('Unknown module format ' + moduleFormat); |
{ | ||
"name": "@stylable/module-utils", | ||
"version": "3.3.0", | ||
"version": "3.3.2-rc.1", | ||
"description": "Stylable module creation utilities", | ||
@@ -14,3 +14,3 @@ "main": "cjs/index.js", | ||
"dependencies": { | ||
"@stylable/core": "^3.3.0" | ||
"@stylable/core": "^3.3.2-rc.1" | ||
}, | ||
@@ -30,3 +30,3 @@ "files": [ | ||
"license": "BSD-3-Clause", | ||
"gitHead": "a84e57e76b8a1fd81d8ce5f0ffb3a3e2f3cb66e6" | ||
"gitHead": "1262e65a7151abeb401911cd9a5d25cff13eb536" | ||
} |
@@ -54,3 +54,6 @@ import { StylableResults } from '@stylable/core'; | ||
} | ||
const cssString = includeCSSInJS | ||
? JSON.stringify(stylableResult.meta.outputAst!.toString()) | ||
: '""'; | ||
switch (moduleFormat) { | ||
@@ -71,3 +74,3 @@ case 'dts': | ||
`createRenderable`, | ||
includeCSSInJS ? JSON.stringify(stylableResult.meta.outputAst!.toString()) : '""', | ||
cssString, | ||
depth, | ||
@@ -93,3 +96,3 @@ 'const { classes, keyframes, vars, stVars, cssStates, style, st, $depth, $id, $css }', // = $ | ||
`runtime.createRenderable`, | ||
includeCSSInJS ? JSON.stringify(stylableResult.meta.outputAst!.toString()) : '""', | ||
cssString, | ||
depth, | ||
@@ -96,0 +99,0 @@ 'module.exports', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
18875
254
2
Updated@stylable/core@^3.3.2-rc.1