nathanbuchar / electron-settings

📝 A simple persistent user settings framework for Electron.
https://electron-settings.js.org
MIT License
814 stars 60 forks source link

Sourcemap points to file not included in package #162

Open ChristophLabacher opened 2 years ago

ChristophLabacher commented 2 years ago

Thank you for maintaining this package!

When using this package in a CRA 5.0 project, there is a webpack error shown which says:

Failed to parse source map from '/Users/[…]/node_modules/electron-settings/src/settings.ts' file: Error: ENOENT: no such file or directory, open '/Users/[…]/node_modules/electron-settings/src/settings.ts'

This is correct: The source map in /electron-settings/dist points to ../src/settings.ts, but the src directory is not included in the installed package.

It would be great to either include the src in the distributed package or update the sourcemap.