@grafana/create-plugin 5.3.1 → 5.4.0-canary.1066.53bba09.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v5.3.2 (Thu Aug 22 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Create Plugin: Fix missing module.ts in sourcemaps [#1071](https://github.com/grafana/plugin-tools/pull/1071) ([@jackw](https://github.com/jackw))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Jack Westbrook ([@jackw](https://github.com/jackw))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v5.3.1 (Wed Aug 21 2024)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0-canary.1066.53bba09.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"directory": "packages/create-plugin",
|
|
6
6
|
"url": "https://github.com/grafana/plugin-tools"
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"engines": {
|
|
88
88
|
"node": ">=20"
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "53bba092fa9e644c59af9e100dea2f77a7f6a96b"
|
|
91
91
|
}
|
|
@@ -98,6 +98,18 @@ const config = async (env): Promise<Configuration> => {
|
|
|
98
98
|
|
|
99
99
|
module: {
|
|
100
100
|
rules: [
|
|
101
|
+
// This must come first in the rules array otherwise it breaks sourcemaps.
|
|
102
|
+
{
|
|
103
|
+
test: /src\/(?:.*\/)?module\.tsx?$/,
|
|
104
|
+
use: [
|
|
105
|
+
{
|
|
106
|
+
loader: 'imports-loader',
|
|
107
|
+
options: {
|
|
108
|
+
imports: `side-effects grafana-public-path`,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
},
|
|
101
113
|
{
|
|
102
114
|
exclude: /(node_modules)/,
|
|
103
115
|
test: /\.[tj]sx?$/,
|
|
@@ -118,17 +130,6 @@ const config = async (env): Promise<Configuration> => {
|
|
|
118
130
|
},
|
|
119
131
|
},
|
|
120
132
|
},
|
|
121
|
-
{
|
|
122
|
-
test: /src\/(?:.*\/)?module\.tsx?$/,
|
|
123
|
-
use: [
|
|
124
|
-
{
|
|
125
|
-
loader: 'imports-loader',
|
|
126
|
-
options: {
|
|
127
|
-
imports: `side-effects grafana-public-path`,
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
},
|
|
132
133
|
{
|
|
133
134
|
test: /\.css$/,
|
|
134
135
|
use: ['style-loader', 'css-loader'],
|
|
@@ -162,6 +163,9 @@ const config = async (env): Promise<Configuration> => {
|
|
|
162
163
|
format: {
|
|
163
164
|
comments: (_, { type, value }) => type === 'comment2' && value.trim().startsWith('[create-plugin]'),
|
|
164
165
|
},
|
|
166
|
+
compress: {
|
|
167
|
+
drop_console: Boolean(env.production),
|
|
168
|
+
}
|
|
165
169
|
},
|
|
166
170
|
}),
|
|
167
171
|
],
|