node-css-require
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -12,3 +12,2 @@ "use strict"; | ||
const register_1 = require("@swc-node/register/register"); | ||
const read_default_tsconfig_1 = require("@swc-node/register/read-default-tsconfig"); | ||
function compileCss(code, filename) { | ||
@@ -46,4 +45,3 @@ let exportedTokens = {}; | ||
}); | ||
let tsConfig = (0, read_default_tsconfig_1.readDefaultTsConfig)(); | ||
tsConfig = {}; | ||
const tsConfig = {}; | ||
(0, register_1.register)({ ...tsConfig }); | ||
@@ -50,0 +48,0 @@ }; |
{ | ||
"name": "node-css-require", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Load CSS modules when running Node.js CLI and server applications", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -47,3 +47,3 @@ [![npm version](https://badge.fury.io/js/node-css-require.svg)](https://badge.fury.io/js/node-css-require) | ||
Note that the value of the imported variable from a CSS file will be map of class names defined in the CSS file mapped to dynamically generated names using [`css-modes`](https://github.com/css-modules/css-modules). | ||
Note that the value of the imported variable from a CSS file will be map of class names defined in the CSS file mapped to dynamically generated names using [`css-modules`](https://github.com/css-modules/css-modules). | ||
@@ -50,0 +50,0 @@ In order to avoid any errors during TypeScript compilation declare a file `typings.d.ts` with the following contents: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6958
53