@stylable/core
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -6,3 +6,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const enhanced_resolve_1 = require("enhanced-resolve"); | ||
const path_1 = __importDefault(require("path")); | ||
@@ -13,4 +12,7 @@ const cached_process_file_1 = require("./cached-process-file"); | ||
const timed_cache_1 = require("./timed-cache"); | ||
// importing the factory directly, as we feed it our own fs, and don't want graceful-fs to be implicitly imported | ||
// this allows @stylable/core to be bundled for browser usage without special custom configuration | ||
const ResolverFactory = require('enhanced-resolve/lib/ResolverFactory'); | ||
function createInfrastructure(projectRoot, fileSystem, onProcess, resolveOptions = {}, resolveNamespace, timedCacheOptions) { | ||
const eResolver = enhanced_resolve_1.ResolverFactory.createResolver(Object.assign({ useSyncFileSystemCalls: true, fileSystem }, resolveOptions)); | ||
const eResolver = ResolverFactory.createResolver(Object.assign({ useSyncFileSystemCalls: true, fileSystem }, resolveOptions)); | ||
let resolvePath = (context = projectRoot, moduleId) => { | ||
@@ -17,0 +19,0 @@ if (!path_1.default.isAbsolute(moduleId) && moduleId.charAt(0) !== '.') { |
{ | ||
"name": "@stylable/core", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "CSS for Components", | ||
@@ -47,3 +47,3 @@ "main": "./cjs/index.js", | ||
"license": "BSD-3-Clause", | ||
"gitHead": "9d3151697859778eb3c2fa08a11566819e8d4929" | ||
"gitHead": "e16709344319d8a21264d9e0b48419b9965d112e" | ||
} |
@@ -1,2 +0,1 @@ | ||
import { ResolverFactory } from 'enhanced-resolve'; | ||
import path from 'path'; | ||
@@ -8,2 +7,6 @@ import { cachedProcessFile, FileProcessor, MinimalFS } from './cached-process-file'; | ||
// importing the factory directly, as we feed it our own fs, and don't want graceful-fs to be implicitly imported | ||
// this allows @stylable/core to be bundled for browser usage without special custom configuration | ||
const ResolverFactory = require('enhanced-resolve/lib/ResolverFactory') as typeof import('enhanced-resolve').ResolverFactory; | ||
export interface StylableInfrastructure { | ||
@@ -10,0 +13,0 @@ fileProcessor: FileProcessor<StylableMeta>; |
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
649445
11236