Closed Glandos closed 4 years ago
Thanks for reporting the problem.
Can you share a minimal webpack.config.js
for me to reproduce?
const WebpackUserscript = require('webpack-userscript')
module.exports = {
entry: './src/mvvm.ts',
module: {
rules: [
{
test: /\.(js|ts)$/,
exclude: /node_modules/,
use: ['babel-loader']
}
]
},
resolve: {
extensions: ['*', '.js', '.ts']
},
output: {
path: __dirname + '/dist',
publicPath: '/',
filename: 'mvvn.user.js'
},
devServer: {
contentBase: './dist'
},
devtool: 'source-map',
plugins: [
new WebpackUserscript({
metajs: false,
downloadBaseUrl: 'http://localhost:8000/',
headers: {
grant: ['GM.xmlHttpRequest', 'GM_xmlhttpRequest']
}
})
]
};
So there is Babel and Typescript in the loop, I don't know if it's important :)
:tada: This issue has been resolved in version 2.5.4 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Currently, every output file are parsed with the userscript header, even
.js.map
files. This is completely unneeded. Is there a way to exclude some files?