@openmrs/rspack-config 9.0.3-pre.4092 → 9.0.3-pre.4114
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/index.js +6 -2
- package/package.json +1 -1
- package/src/index.ts +6 -2
package/dist/index.js
CHANGED
|
@@ -202,7 +202,7 @@ exports.default = (env, argv = {}) => {
|
|
|
202
202
|
rules: [
|
|
203
203
|
(0, lodash_1.merge)({
|
|
204
204
|
test: /\.m?(js|ts|tsx)$/,
|
|
205
|
-
exclude: /node_modules
|
|
205
|
+
exclude: /node_modules/,
|
|
206
206
|
loader: 'swc-loader',
|
|
207
207
|
options: {
|
|
208
208
|
jsc: {
|
|
@@ -233,9 +233,13 @@ exports.default = (env, argv = {}) => {
|
|
|
233
233
|
],
|
|
234
234
|
}, exports.scssRuleConfig),
|
|
235
235
|
(0, lodash_1.merge)({
|
|
236
|
-
test: /\.(png|jpe?g|gif
|
|
236
|
+
test: /\.(png|jpe?g|gif)$/i,
|
|
237
237
|
type: 'asset/resource',
|
|
238
238
|
}, exports.assetRuleConfig),
|
|
239
|
+
{
|
|
240
|
+
test: /\.svg$/i,
|
|
241
|
+
type: 'asset/source',
|
|
242
|
+
},
|
|
239
243
|
],
|
|
240
244
|
}, mode, devtool: mode === production ? 'hidden-nosources-source-map' : 'source-map', devServer: {
|
|
241
245
|
headers: {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -198,7 +198,7 @@ export default (env: Record<string, string>, argv: Record<string, string> = {})
|
|
|
198
198
|
merge(
|
|
199
199
|
{
|
|
200
200
|
test: /\.m?(js|ts|tsx)$/,
|
|
201
|
-
exclude: /node_modules
|
|
201
|
+
exclude: /node_modules/,
|
|
202
202
|
loader: 'swc-loader',
|
|
203
203
|
options: {
|
|
204
204
|
jsc: {
|
|
@@ -238,11 +238,15 @@ export default (env: Record<string, string>, argv: Record<string, string> = {})
|
|
|
238
238
|
),
|
|
239
239
|
merge(
|
|
240
240
|
{
|
|
241
|
-
test: /\.(png|jpe?g|gif
|
|
241
|
+
test: /\.(png|jpe?g|gif)$/i,
|
|
242
242
|
type: 'asset/resource',
|
|
243
243
|
},
|
|
244
244
|
assetRuleConfig,
|
|
245
245
|
),
|
|
246
|
+
{
|
|
247
|
+
test: /\.svg$/i,
|
|
248
|
+
type: 'asset/source',
|
|
249
|
+
},
|
|
246
250
|
],
|
|
247
251
|
},
|
|
248
252
|
mode,
|