node-fs-ext icon indicating copy to clipboard operation
node-fs-ext copied to clipboard

Fix compatibility with webpack

Open LoganDark opened this issue 4 years ago • 1 comments

Leaving out the .node extension leaves Webpack confused on which loader to use. Adding it back allows Webpack to recognize this module correctly as a native one.

LoganDark avatar Aug 18 '21 16:08 LoganDark

It would be great if it could be merged. For now, this workaround works for me:

Add this to webpack.config.js:

module.exports = {
    resolve: {
        alias: {
            './build/Release/fs-ext': './build/Release/fs-ext.node'
        }
    }
}