I am trying to use this package. However, it doesn't work.
Could you please teach me how to write webpack.config.js in webpack 5?
This is my webpack.config.js:
module: {strictExportPresence: true,rules: [// Handle node_modules packages that contain sourcemapsshouldUseSourceMap&&{enforce: 'pre',exclude: /@babel(?:\/|\\{1,2})runtime/,test: /\.(js|mjs|jsx|ts|tsx|css)$/,loader: require.resolve('source-map-loader'),},{// "oneOf" will traverse all following loaders until one will// match the requirements. When no loader matches it will fall// back to the "file" loader at the end of the loader list.oneOf: [// Markdown{test: /\.md$/,use: [{loader: 'babel!react-markdown',},],},]},],}version of webpack: 5.64.4
I am trying to use this package. However, it doesn't work.
Could you please teach me how to write
webpack.config.jsin webpack 5?This is my
webpack.config.js:version of webpack: 5.64.4