Closed veeramarni closed 6 years ago
webpack 4 favors .mjs over .js files and applies stricter rules when dealing with Harmony modules.
The following is what suggested to use.
{ test: /\.mjs$/, include: /node_modules/, type: "javascript/auto", },
Should the spinjs handle .mjs files as well?
.mjs
@veeramarni Yes, I think yes
@veeramarni Published spinjs@0.4.151, it adds the block you have proposed into webpack config by default.
spinjs@0.4.151
webpack 4 favors .mjs over .js files and applies stricter rules when dealing with Harmony modules.
The following is what suggested to use.
Should the spinjs handle
.mjs
files as well?