@vanilla-extract/esbuild-plugin
Advanced tools
Comparing version 0.0.0-experimental-macros-202362471213 to 0.0.0-experimental-macros-20237146723
@@ -6,2 +6,3 @@ 'use strict'; | ||
var path = require('path'); | ||
var promises = require('fs/promises'); | ||
var integration = require('@vanilla-extract/integration'); | ||
@@ -69,3 +70,8 @@ | ||
}) => { | ||
const result = await compiler.processVanillaFile(path, { | ||
const code = await promises.readFile(path, { | ||
encoding: 'utf-8' | ||
}); | ||
const result = await compiler.processVanillaFile({ | ||
filePath: path, | ||
code, | ||
outputCss | ||
@@ -72,0 +78,0 @@ }); |
@@ -6,2 +6,3 @@ 'use strict'; | ||
var path = require('path'); | ||
var promises = require('fs/promises'); | ||
var integration = require('@vanilla-extract/integration'); | ||
@@ -69,3 +70,8 @@ | ||
}) => { | ||
const result = await compiler.processVanillaFile(path, { | ||
const code = await promises.readFile(path, { | ||
encoding: 'utf-8' | ||
}); | ||
const result = await compiler.processVanillaFile({ | ||
filePath: path, | ||
code, | ||
outputCss | ||
@@ -72,0 +78,0 @@ }); |
import { dirname } from 'path'; | ||
import { readFile } from 'fs/promises'; | ||
import { vanillaExtractTransformPlugin, InlineCompiler } from '@vanilla-extract/integration'; | ||
@@ -64,3 +65,8 @@ | ||
}) => { | ||
const result = await compiler.processVanillaFile(path, { | ||
const code = await readFile(path, { | ||
encoding: 'utf-8' | ||
}); | ||
const result = await compiler.processVanillaFile({ | ||
filePath: path, | ||
code, | ||
outputCss | ||
@@ -67,0 +73,0 @@ }); |
{ | ||
"name": "@vanilla-extract/esbuild-plugin", | ||
"version": "0.0.0-experimental-macros-202362471213", | ||
"version": "0.0.0-experimental-macros-20237146723", | ||
"description": "Zero-runtime Stylesheets-in-TypeScript", | ||
@@ -18,3 +18,3 @@ "main": "dist/vanilla-extract-esbuild-plugin.cjs.js", | ||
"dependencies": { | ||
"@vanilla-extract/integration": "^0.0.0-experimental-macros-202362471213" | ||
"@vanilla-extract/integration": "^0.0.0-experimental-macros-20237146723" | ||
}, | ||
@@ -21,0 +21,0 @@ "devDependencies": { |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
32443
831
4