@ttoss/config 1.32.0 → 1.32.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/esm/index.js +9 -1
- package/dist/index.js +9 -1
- package/package.json +3 -2
- package/src/babel.ts +8 -0
package/dist/esm/index.js
CHANGED
|
@@ -22,7 +22,15 @@ var defaultConfig = {
|
|
|
22
22
|
}], "@babel/preset-typescript", ["@babel/preset-react", {
|
|
23
23
|
runtime: "automatic"
|
|
24
24
|
}]],
|
|
25
|
-
plugins: [
|
|
25
|
+
plugins: [
|
|
26
|
+
/**
|
|
27
|
+
* Carlin is full ESM and jest doesn't support import.meta.url from
|
|
28
|
+
* @ttoss/cloudformation. This plugin is needed to transform import.meta.url
|
|
29
|
+
*
|
|
30
|
+
* More reference about pure ESM packages:
|
|
31
|
+
* https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
|
|
32
|
+
*/
|
|
33
|
+
"babel-plugin-transform-import-meta", ["formatjs", {
|
|
26
34
|
idInterpolationPattern: "[sha512:contenthash:base64:6]",
|
|
27
35
|
ast: true
|
|
28
36
|
}]]
|
package/dist/index.js
CHANGED
|
@@ -70,7 +70,15 @@ var defaultConfig = {
|
|
|
70
70
|
}], "@babel/preset-typescript", ["@babel/preset-react", {
|
|
71
71
|
runtime: "automatic"
|
|
72
72
|
}]],
|
|
73
|
-
plugins: [
|
|
73
|
+
plugins: [
|
|
74
|
+
/**
|
|
75
|
+
* Carlin is full ESM and jest doesn't support import.meta.url from
|
|
76
|
+
* @ttoss/cloudformation. This plugin is needed to transform import.meta.url
|
|
77
|
+
*
|
|
78
|
+
* More reference about pure ESM packages:
|
|
79
|
+
* https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
|
|
80
|
+
*/
|
|
81
|
+
"babel-plugin-transform-import-meta", ["formatjs", {
|
|
74
82
|
idInterpolationPattern: "[sha512:contenthash:base64:6]",
|
|
75
83
|
ast: true
|
|
76
84
|
}]]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/config",
|
|
3
|
-
"version": "1.32.
|
|
3
|
+
"version": "1.32.2",
|
|
4
4
|
"description": "Default configuration for packages.",
|
|
5
5
|
"author": "ttoss",
|
|
6
6
|
"contributors": [
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"@commitlint/config-conventional": "^18.6.2",
|
|
29
29
|
"@formatjs/ts-transformer": "^3.13.12",
|
|
30
30
|
"babel-plugin-formatjs": "^10.5.13",
|
|
31
|
+
"babel-plugin-transform-import-meta": "^2.2.1",
|
|
31
32
|
"deepmerge": "^4.3.1",
|
|
32
33
|
"identity-obj-proxy": "^3.0.0",
|
|
33
34
|
"prettier-package-json": "^2.8.0"
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"@jest/types": "^29.6.3",
|
|
37
38
|
"@types/jest": "^29.5.12",
|
|
38
39
|
"@types/node": "^20.12.7",
|
|
39
|
-
"esbuild": "^0.20.
|
|
40
|
+
"esbuild": "^0.20.2",
|
|
40
41
|
"jest": "^29.7.0",
|
|
41
42
|
"tsup": "^8.0.2"
|
|
42
43
|
},
|
package/src/babel.ts
CHANGED
|
@@ -8,6 +8,14 @@ export const defaultConfig: any = {
|
|
|
8
8
|
['@babel/preset-react', { runtime: 'automatic' }],
|
|
9
9
|
],
|
|
10
10
|
plugins: [
|
|
11
|
+
/**
|
|
12
|
+
* Carlin is full ESM and jest doesn't support import.meta.url from
|
|
13
|
+
* @ttoss/cloudformation. This plugin is needed to transform import.meta.url
|
|
14
|
+
*
|
|
15
|
+
* More reference about pure ESM packages:
|
|
16
|
+
* https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
|
|
17
|
+
*/
|
|
18
|
+
'babel-plugin-transform-import-meta',
|
|
11
19
|
[
|
|
12
20
|
'formatjs',
|
|
13
21
|
{
|