@imtf/profile-scripts 1.0.6 → 1.0.8
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/changelog.md +6 -0
- package/package.json +6 -4
- package/scripts/esbuild.mjs +2 -1
- package/scripts/svgPlugin.mjs +5 -1
package/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imtf/profile-scripts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Default scripts to bundle & transpile imtf front-end plugins",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -26,10 +26,12 @@
|
|
|
26
26
|
"private": false,
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@svgr/core": "^6.2.0",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
29
|
+
"@svgr/plugin-jsx": "^6.2.0",
|
|
30
|
+
"@svgr/plugin-svgo": "^6.2.0",
|
|
31
|
+
"concurrently": "^7.0.0",
|
|
32
|
+
"esbuild": "^0.16.17",
|
|
31
33
|
"esbuild-plugin-external-global": "^1.0.1",
|
|
32
|
-
"serve": "^
|
|
34
|
+
"serve": "^14.1.2"
|
|
33
35
|
},
|
|
34
36
|
"devDependencies": {
|
|
35
37
|
"@imtf/eslint-config-react": "^1.0.0",
|
package/scripts/esbuild.mjs
CHANGED
package/scripts/svgPlugin.mjs
CHANGED
|
@@ -26,9 +26,13 @@ const svgPlugin = (options = {}) => ({
|
|
|
26
26
|
// Otherwise it's a react component
|
|
27
27
|
const contents = await transform(
|
|
28
28
|
svg,
|
|
29
|
-
{
|
|
29
|
+
{
|
|
30
|
+
plugins: ['@svgr/plugin-svgo', '@svgr/plugin-jsx'],
|
|
31
|
+
...options,
|
|
32
|
+
},
|
|
30
33
|
{ filePath: args.path }
|
|
31
34
|
)
|
|
35
|
+
|
|
32
36
|
return {
|
|
33
37
|
contents,
|
|
34
38
|
loader: 'jsx',
|