@imtf/profile-scripts 1.4.1 → 1.5.0-beta.0
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/package.json +2 -1
- package/scripts/esbuild.mjs +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imtf/profile-scripts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0-beta.0",
|
|
4
4
|
"description": "Default scripts to bundle & transpile imtf front-end plugins",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"@svgr/plugin-svgo": "^8.1.0",
|
|
25
25
|
"concurrently": "^9.0.0",
|
|
26
26
|
"esbuild": "^0.24.0",
|
|
27
|
+
"esbuild-css-modules-plugin": "^3.1.4",
|
|
27
28
|
"esbuild-plugin-external-global": "^1.0.1",
|
|
28
29
|
"esbuild-plugin-inline-css": "^0.0.1",
|
|
29
30
|
"minimist": "^1.2.8"
|
package/scripts/esbuild.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { build, context } from "esbuild";
|
|
2
2
|
import esbuild from "esbuild-plugin-external-global";
|
|
3
3
|
import InlineCSSPlugin from "esbuild-plugin-inline-css";
|
|
4
|
+
import CssModulesPlugin from "esbuild-css-modules-plugin";
|
|
4
5
|
import minimist from "minimist";
|
|
5
6
|
|
|
6
7
|
// eslint-disable-next-line import/no-named-as-default-member
|
|
@@ -37,6 +38,7 @@ const config = {
|
|
|
37
38
|
platform: "browser",
|
|
38
39
|
bundle: true,
|
|
39
40
|
target: "es2020",
|
|
41
|
+
metafile: true,
|
|
40
42
|
|
|
41
43
|
sourcemap: watch ? "linked" : "external",
|
|
42
44
|
|
|
@@ -45,7 +47,6 @@ const config = {
|
|
|
45
47
|
process.env.IMTF_MINIFY_WEBAPP !== "false",
|
|
46
48
|
|
|
47
49
|
loader: {
|
|
48
|
-
".css": "text",
|
|
49
50
|
// Enable JSX in .js files too
|
|
50
51
|
".js": "jsx",
|
|
51
52
|
// Embed fonts
|
|
@@ -60,6 +61,7 @@ const config = {
|
|
|
60
61
|
},
|
|
61
62
|
|
|
62
63
|
plugins: [
|
|
64
|
+
CssModulesPlugin({ inject: true }),
|
|
63
65
|
InlineCSSPlugin(),
|
|
64
66
|
svgPlugin(),
|
|
65
67
|
externalGlobalPlugin({
|