How to use the @stylable/module-utils.createModuleSource function in @stylable/module-utils

To help you get started, we’ve selected a few @stylable/module-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wix / stylable / packages / cli / src / build.ts View on Github external
() =>
                createModuleSource(
                    res,
                    format,
                    includeCSSInJS,
                    undefined,
                    undefined,
                    undefined,
                    injectCSSRequest ? [`./${cssAssetFilename}`] : [],
                    compat ? '@stylable/runtime/cjs/index-legacy' : '@stylable/runtime',
                    compat ? ['module.exports.default = module.exports;'] : []
                ),
            `Transform Error: ${filePath}`

@stylable/module-utils

Stylable module creation utilities

MIT
Latest version published 2 months ago

Package Health Score

69 / 100
Full package analysis

Similar packages