@compiled/parcel-transformer 0.16.0 → 0.16.2
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/dist/utils.js +4 -1
- package/dist/utils.js.map +1 -1
- package/package.json +4 -4
- package/src/utils.ts +2 -0
package/dist/utils.js
CHANGED
|
@@ -9,7 +9,10 @@ const path_1 = require("path");
|
|
|
9
9
|
const enhanced_resolve_1 = require("enhanced-resolve");
|
|
10
10
|
function createDefaultResolver(config) {
|
|
11
11
|
var _a;
|
|
12
|
-
const resolver = enhanced_resolve_1.ResolverFactory.createResolver(Object.assign(Object.assign(Object.assign({
|
|
12
|
+
const resolver = enhanced_resolve_1.ResolverFactory.createResolver(Object.assign(Object.assign(Object.assign({
|
|
13
|
+
// @ts-expect-error - enhanced-resolve CachedInputFileSystem types are not
|
|
14
|
+
// compatible with @types/node fs types
|
|
15
|
+
fileSystem: new enhanced_resolve_1.CachedInputFileSystem(fs_1.default, 4000) }, (config.extensions && {
|
|
13
16
|
extensions: config.extensions,
|
|
14
17
|
})), ((_a = config.resolve) !== null && _a !== void 0 ? _a : {})), {
|
|
15
18
|
// This makes the resolver invoke the callback synchronously
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,+BAA+B;AAG/B,uDAA0E;AAI1E,SAAgB,qBAAqB,CAAC,MAA6B;;IACjE,MAAM,QAAQ,GAAG,kCAAe,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,+BAA+B;AAG/B,uDAA0E;AAI1E,SAAgB,qBAAqB,CAAC,MAA6B;;IACjE,MAAM,QAAQ,GAAG,kCAAe,CAAC,cAAc;QAC7C,0EAA0E;QAC1E,uCAAuC;QACvC,UAAU,EAAE,IAAI,wCAAqB,CAAC,YAAE,EAAE,IAAI,CAAC,IAC5C,CAAC,MAAM,CAAC,UAAU,IAAI;QACvB,UAAU,EAAE,MAAM,CAAC,UAAU;KAC9B,CAAC,GACC,CAAC,MAAA,MAAM,CAAC,OAAO,mCAAI,EAAE,CAAC;QACzB,4DAA4D;QAC5D,sBAAsB,EAAE,IAAI,IAC5B,CAAC;IAEH,OAAO;QACL,6EAA6E;QAC7E,WAAW,CAAC,OAAe,EAAE,OAAe;YAC1C,OAAO,QAAQ,CAAC,WAAW,CAAC,EAAE,EAAE,IAAA,cAAO,EAAC,OAAO,CAAC,EAAE,OAAO,CAAW,CAAC;QACvE,CAAC;KACF,CAAC;AACJ,CAAC;AAnBD,sDAmBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compiled/parcel-transformer",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "A familiar and performant compile time CSS-in-JS library for React.",
|
|
5
5
|
"homepage": "https://compiledcssinjs.com/docs/pkg-parcel-transformer",
|
|
6
6
|
"bugs": "https://github.com/atlassian-labs/compiled/issues/new?assignees=&labels=bug&template=bug_report.md",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@babel/core": "^7.21.8",
|
|
24
24
|
"@babel/generator": "^7.21.5",
|
|
25
|
-
"@compiled/babel-plugin": "^0.
|
|
26
|
-
"@compiled/babel-plugin-strip-runtime": "^0.
|
|
27
|
-
"@compiled/utils": "^0.
|
|
25
|
+
"@compiled/babel-plugin": "^0.31.0",
|
|
26
|
+
"@compiled/babel-plugin-strip-runtime": "^0.31.0",
|
|
27
|
+
"@compiled/utils": "^0.12.0",
|
|
28
28
|
"@parcel/plugin": "^2.8.3",
|
|
29
29
|
"@parcel/source-map": "^2.1.1",
|
|
30
30
|
"@parcel/utils": "^2.8.3",
|
package/src/utils.ts
CHANGED
|
@@ -8,6 +8,8 @@ import type { ParcelTransformerOpts } from './types';
|
|
|
8
8
|
|
|
9
9
|
export function createDefaultResolver(config: ParcelTransformerOpts): Resolver {
|
|
10
10
|
const resolver = ResolverFactory.createResolver({
|
|
11
|
+
// @ts-expect-error - enhanced-resolve CachedInputFileSystem types are not
|
|
12
|
+
// compatible with @types/node fs types
|
|
11
13
|
fileSystem: new CachedInputFileSystem(fs, 4000),
|
|
12
14
|
...(config.extensions && {
|
|
13
15
|
extensions: config.extensions,
|