@markopack/compiler 0.2.0 → 0.2.1

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.cjs CHANGED
@@ -160,22 +160,16 @@ var MarkoRspackPlugin = class {
160
160
  };
161
161
  compiler.options.module = compiler.options.module || { rules: [] };
162
162
  compiler.options.module.rules = compiler.options.module.rules || [];
163
- compiler.options.module.rules.push(
164
- {
165
- test: /\.marko$/,
166
- type: "javascript/auto",
167
- use: [
168
- {
169
- loader: loaderPath,
170
- options: loaderOptions
171
- }
172
- ]
173
- },
174
- {
175
- test: /\.(jpg|jpeg|gif|png|svg)$/,
176
- type: "asset"
177
- }
178
- );
163
+ compiler.options.module.rules.push({
164
+ test: /\.marko$/,
165
+ type: "javascript/auto",
166
+ use: [
167
+ {
168
+ loader: loaderPath,
169
+ options: loaderOptions
170
+ }
171
+ ]
172
+ });
179
173
  }
180
174
  applyServer(compiler) {
181
175
  compiler.hooks.thisCompilation.tap(
package/dist/index.js CHANGED
@@ -120,22 +120,16 @@ var MarkoRspackPlugin = class {
120
120
  };
121
121
  compiler.options.module = compiler.options.module || { rules: [] };
122
122
  compiler.options.module.rules = compiler.options.module.rules || [];
123
- compiler.options.module.rules.push(
124
- {
125
- test: /\.marko$/,
126
- type: "javascript/auto",
127
- use: [
128
- {
129
- loader: loaderPath,
130
- options: loaderOptions
131
- }
132
- ]
133
- },
134
- {
135
- test: /\.(jpg|jpeg|gif|png|svg)$/,
136
- type: "asset"
137
- }
138
- );
123
+ compiler.options.module.rules.push({
124
+ test: /\.marko$/,
125
+ type: "javascript/auto",
126
+ use: [
127
+ {
128
+ loader: loaderPath,
129
+ options: loaderOptions
130
+ }
131
+ ]
132
+ });
139
133
  }
140
134
  applyServer(compiler) {
141
135
  compiler.hooks.thisCompilation.tap(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markopack/compiler",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Marko compiler plugin for rspack (used by @markopack/rspack)",
5
5
  "type": "module",
6
6
  "sideEffects": false,