@atlaspack/rust 3.2.1-canary.248 → 3.2.1-canary.249
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +28 -0
- package/index.darwin-arm64.node +0 -0
- package/index.darwin-x64.node +0 -0
- package/index.js +2 -1
- package/index.linux-arm64-gnu.node +0 -0
- package/index.linux-x64-gnu.node +0 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -71,6 +71,34 @@ export interface InlineRequiresOptimizerResult {
|
|
|
71
71
|
export declare function runInlineRequiresOptimizer(input: InlineRequiresOptimizerInput): InlineRequiresOptimizerResult
|
|
72
72
|
/** Runs in the rayon thread pool */
|
|
73
73
|
export declare function runInlineRequiresOptimizerAsync(input: InlineRequiresOptimizerInput): object
|
|
74
|
+
export interface CompiledCssInJsTransformConfig {
|
|
75
|
+
importReact?: boolean
|
|
76
|
+
nonce?: string
|
|
77
|
+
importSources?: Array<string>
|
|
78
|
+
optimizeCss?: boolean
|
|
79
|
+
extensions?: Array<string>
|
|
80
|
+
addComponentName?: boolean
|
|
81
|
+
processXcss?: boolean
|
|
82
|
+
increaseSpecificity?: boolean
|
|
83
|
+
sortAtRules?: boolean
|
|
84
|
+
classHashPrefix?: string
|
|
85
|
+
flattenMultipleSelectors?: boolean
|
|
86
|
+
extract?: boolean
|
|
87
|
+
ssr?: boolean
|
|
88
|
+
}
|
|
89
|
+
export interface CompiledCssInJsPluginInput {
|
|
90
|
+
filename: string
|
|
91
|
+
projectRoot: string
|
|
92
|
+
isSource: boolean
|
|
93
|
+
sourceMaps: boolean
|
|
94
|
+
config: CompiledCssInJsTransformConfig
|
|
95
|
+
}
|
|
96
|
+
export interface CompiledCssInJsPluginResult {
|
|
97
|
+
code: string
|
|
98
|
+
map?: string
|
|
99
|
+
styleRules: Array<string>
|
|
100
|
+
}
|
|
101
|
+
export declare function applyCompiledCssInJsPlugin(rawCode: Buffer, input: CompiledCssInJsPluginInput): object
|
|
74
102
|
export interface JsFileSystemOptions {
|
|
75
103
|
canonicalize: (...args: any[]) => any
|
|
76
104
|
read: (...args: any[]) => any
|
package/index.darwin-arm64.node
CHANGED
|
Binary file
|
package/index.darwin-x64.node
CHANGED
|
Binary file
|
package/index.js
CHANGED
|
@@ -310,7 +310,7 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const { initTracingSubscriber, Lmdb, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, AtlaspackTracer, createAssetId, atlaspackNapiCreate, atlaspackNapiBuildAssetGraph, atlaspackNapiRespondToFsEvents, createDependencyId, createEnvironmentId, setAllEnvironments, getAllEnvironments, getEnvironment, addEnvironment, getAvailableThreads, initializeMonitoring, closeMonitoring, newNodejsWorker, runInlineRequiresOptimizer, runInlineRequiresOptimizerAsync, Resolver, performStringReplacements, transform, transformAsync, getVcsStateSnapshot, getEventsSince } = nativeBinding
|
|
313
|
+
const { initTracingSubscriber, Lmdb, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, AtlaspackTracer, createAssetId, atlaspackNapiCreate, atlaspackNapiBuildAssetGraph, atlaspackNapiRespondToFsEvents, createDependencyId, createEnvironmentId, setAllEnvironments, getAllEnvironments, getEnvironment, addEnvironment, getAvailableThreads, initializeMonitoring, closeMonitoring, newNodejsWorker, runInlineRequiresOptimizer, runInlineRequiresOptimizerAsync, applyCompiledCssInJsPlugin, Resolver, performStringReplacements, transform, transformAsync, getVcsStateSnapshot, getEventsSince } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.initTracingSubscriber = initTracingSubscriber
|
|
316
316
|
module.exports.Lmdb = Lmdb
|
|
@@ -338,6 +338,7 @@ module.exports.closeMonitoring = closeMonitoring
|
|
|
338
338
|
module.exports.newNodejsWorker = newNodejsWorker
|
|
339
339
|
module.exports.runInlineRequiresOptimizer = runInlineRequiresOptimizer
|
|
340
340
|
module.exports.runInlineRequiresOptimizerAsync = runInlineRequiresOptimizerAsync
|
|
341
|
+
module.exports.applyCompiledCssInJsPlugin = applyCompiledCssInJsPlugin
|
|
341
342
|
module.exports.Resolver = Resolver
|
|
342
343
|
module.exports.performStringReplacements = performStringReplacements
|
|
343
344
|
module.exports.transform = transform
|
|
Binary file
|
package/index.linux-x64-gnu.node
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/rust",
|
|
3
|
-
"version": "3.2.1-canary.
|
|
3
|
+
"version": "3.2.1-canary.249+58527eec1",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
|
|
38
38
|
},
|
|
39
39
|
"type": "commonjs",
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "58527eec15c1aebaaadbeb63586f3082c16beae3"
|
|
41
41
|
}
|