Skip to content

Commit

Permalink
Fix an issue where "Use ESM export syntax" was thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
KidkArolis committed Nov 5, 2024
1 parent fdc14ce commit ffaf687
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/webpack.js.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,16 @@ module.exports = (config, options) => {
include(filepath) {
if (filepath.startsWith(config.resolve.alias['core-js'])) return false
if (filepath.startsWith(config.resolve.alias['regenerator-runtime'])) return false
if (filepath.includes('node_modules/@swc/helpers/')) return false
if (filepath.includes('node_modules/ansi-html-community/')) return false
if (filepath.includes('node_modules/ansi-regex/')) return false
if (filepath.includes('node_modules/core-js/')) return false
if (filepath.includes('node_modules/react-hot-loader/')) return false
if (filepath.includes('node_modules/webpack/')) return false
if (filepath.includes('node_modules/css-loader/')) return false
if (filepath.includes('node_modules/html-entities/')) return false
if (filepath.includes('node_modules/strip-ansi/')) return false
if (filepath.includes('node_modules/style-loader/')) return false
if (filepath.includes('node_modules/webpack-hot-middleware/')) return false

return true
},
use: [
Expand Down

0 comments on commit ffaf687

Please sign in to comment.