@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 +10 -16
- package/dist/index.js +10 -16
- package/package.json +1 -1
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
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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(
|