@stylable/module-utils
Advanced tools
Comparing version 3.1.1 to 3.1.3
@@ -34,3 +34,3 @@ "use strict"; | ||
return generateTypescriptDefinition(); | ||
case 'esm': | ||
case 'esm': { | ||
const importKey = renderableOnly ? 'createRenderable' : 'create'; | ||
@@ -45,2 +45,3 @@ return generateModuleSource(stylableResult, moduleId, [ | ||
].join('\n'), renderableOnly); | ||
} | ||
case 'cjs': | ||
@@ -47,0 +48,0 @@ return generateModuleSource(stylableResult, moduleId, [ |
{ | ||
"name": "@stylable/module-utils", | ||
"version": "3.1.1", | ||
"version": "3.1.3", | ||
"description": "Stylable module creation utilities", | ||
@@ -14,3 +14,3 @@ "main": "cjs/index.js", | ||
"dependencies": { | ||
"@stylable/core": "^3.1.1" | ||
"@stylable/core": "^3.1.3" | ||
}, | ||
@@ -30,3 +30,3 @@ "files": [ | ||
"license": "BSD-3-Clause", | ||
"gitHead": "f793219f09b3fea83005ecd1848d1c9dfeb15df2" | ||
"gitHead": "ebe8f0a6a6472621e671b3333ed410660325b73a" | ||
} |
@@ -14,3 +14,3 @@ import { StylableResults } from '@stylable/core'; | ||
afterModule: string, | ||
renderableOnly: boolean = false | ||
renderableOnly = false | ||
): string { | ||
@@ -39,3 +39,3 @@ const { exports, meta } = stylableResult; | ||
stylableResult: StylableResults, | ||
moduleFormat: string = 'cjs', | ||
moduleFormat = 'cjs', | ||
includeCSSInJS: boolean, | ||
@@ -46,3 +46,3 @@ moduleId = JSON.stringify(stylableResult.meta.namespace), | ||
staticRequests: string[] = [], | ||
runtimeRequest: string = '@stylable/runtime', | ||
runtimeRequest = '@stylable/runtime', | ||
afterModule: string[] = [] | ||
@@ -61,3 +61,3 @@ ) { | ||
return generateTypescriptDefinition(); | ||
case 'esm': | ||
case 'esm': { | ||
const importKey = renderableOnly ? 'createRenderable' : 'create'; | ||
@@ -83,2 +83,3 @@ return generateModuleSource( | ||
); | ||
} | ||
case 'cjs': | ||
@@ -85,0 +86,0 @@ return generateModuleSource( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18855
248
Updated@stylable/core@^3.1.3