Skip to content

Commit

Permalink
chore(internal): setup dendron-plugin-views build to prefer main
Browse files Browse the repository at this point in the history
  • Loading branch information
namjul committed Nov 11, 2022
1 parent d091a9b commit 197c5c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dendron-plugin-views/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ module.exports = function (webpackEnv) {
],
},
resolve: {
// Prefer `main` over `module`
mainFields: ["main", "module"],
// This allows you to set a fallback for where webpack should look for modules.
// We placed these paths second because we want `node_modules` to "win"
// if there are any conflicts. This matches Node resolution mechanism.
Expand Down Expand Up @@ -429,7 +431,6 @@ module.exports = function (webpackEnv) {
test: /\.(js|mjs)$/,
exclude: /@babel(?:\/|\\{1,2})runtime/,
loader: require.resolve("babel-loader"),
type: "javascript/auto",
options: {
babelrc: false,
configFile: false,
Expand Down

0 comments on commit 197c5c6

Please sign in to comment.