@stylable/module-utils
Advanced tools
Comparing version 2.2.7-alpha.1 to 2.3.0
@@ -16,6 +16,4 @@ "use strict"; | ||
var stylable = core_1.Stylable.create(stylableOptions); | ||
if (legacyRuntime) { | ||
if (runtimePath === '@stylable/runtime') { | ||
runtimePath = '@stylable/runtime/cjs/index-legacy'; | ||
} | ||
if (legacyRuntime && runtimePath === '@stylable/runtime') { | ||
runtimePath = '@stylable/runtime/cjs/index-legacy'; | ||
afterModule += 'module.exports.default = module.exports;'; | ||
@@ -22,0 +20,0 @@ } |
{ | ||
"name": "@stylable/module-utils", | ||
"version": "2.2.7-alpha.1", | ||
"version": "2.3.0", | ||
"description": "Stylable module creation utilities", | ||
@@ -14,3 +14,3 @@ "main": "cjs/index.js", | ||
"dependencies": { | ||
"@stylable/core": "^2.1.5-alpha.0" | ||
"@stylable/core": "^2.3.0" | ||
}, | ||
@@ -28,3 +28,3 @@ "files": [ | ||
"license": "BSD-3-Clause", | ||
"gitHead": "c3d5e0f774b96b5cc7115bab6cb398a654634feb" | ||
"gitHead": "e727713590e91a31858220a134710cce9e2051b7" | ||
} |
@@ -26,10 +26,6 @@ import { Stylable, StylableConfig } from '@stylable/core'; | ||
const stylable = Stylable.create(stylableOptions); | ||
if (legacyRuntime) { | ||
if (runtimePath === '@stylable/runtime') { | ||
runtimePath = '@stylable/runtime/cjs/index-legacy'; | ||
} | ||
if (legacyRuntime && runtimePath === '@stylable/runtime') { | ||
runtimePath = '@stylable/runtime/cjs/index-legacy'; | ||
afterModule += 'module.exports.default = module.exports;' | ||
} | ||
return function stylableToModule(source: string, path: string) { | ||
@@ -36,0 +32,0 @@ const res = stylable.transform(source, path); |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
20360
250
Updated@stylable/core@^2.3.0