Skip to content

Commit f7c892a

Browse files
Revert "remove some warnings"
This reverts commit b443c22.
1 parent 2ae6b7a commit f7c892a

File tree

8 files changed

+695
-9
lines changed

8 files changed

+695
-9
lines changed

next.config.mjs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,21 @@ const config = {
2929
path: false,
3030
};
3131
}
32+
// We need this additional rule to make sure that mjs files are
33+
// correctly detected within our src/ folder
34+
config.module.rules.push({
35+
test: /\.m?js$/,
36+
// v-- currently using an experimental setting with esbuild-loader
37+
//use: options.defaultLoaders.babel,
38+
use: [{ loader: "esbuild-loader", options: { loader: "jsx" } }],
39+
exclude: /node_modules/,
40+
type: "javascript/auto",
41+
resolve: {
42+
fullySpecified: false,
43+
},
44+
});
3245

33-
function mainMdxLoader() {
46+
function mainMdxLoader(plugins) {
3447
return [
3548
createLoader(function(source) {
3649
const result = `${source}\n\nMDXContent.frontmatter = frontmatter`;

0 commit comments

Comments
 (0)