mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-06 01:02:19 -08:00
fix: try package node_modules tiddlywiki with unpacked worker
This commit is contained in:
parent
f645f41c8d
commit
e2e0e678e6
3 changed files with 12 additions and 8 deletions
|
|
@ -24,9 +24,10 @@
|
|||
"packagerConfig": {
|
||||
"icon": "build-resources/icon.icns",
|
||||
"asar": {
|
||||
"unpack": "**/.webpack/main/*.worker.*"
|
||||
"unpack": "{**/.webpack/main/*.worker.*,**/node_modules/@tiddlygit/tiddlywiki/**/*}"
|
||||
},
|
||||
"extraResource": [
|
||||
".webpack/main/node_modules",
|
||||
"localization",
|
||||
"template/wiki",
|
||||
"build-resources/menubar@2x.png",
|
||||
|
|
|
|||
|
|
@ -35,13 +35,13 @@ module.exports = {
|
|||
extensions: ['.js', '.ts', '.jsx', '.tsx', '.json'],
|
||||
},
|
||||
externals: [
|
||||
nodeExternals({
|
||||
additionalModuleDirs: ['@tiddlygit/tiddlywiki'],
|
||||
allowlist: [/threads-plugin/],
|
||||
}),
|
||||
// nodeExternals({
|
||||
// additionalModuleDirs: ['@tiddlygit/tiddlywiki'],
|
||||
// allowlist: [/(threads-plugin)/],
|
||||
// }),
|
||||
],
|
||||
externalsType: 'commonjs',
|
||||
externalsPresets: { electronMain: true },
|
||||
// externalsType: 'commonjs',
|
||||
// externalsPresets: { electronMain: true },
|
||||
node: {
|
||||
__filename: true,
|
||||
__dirname: true,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,10 @@ exports.main = [
|
|||
new ForkTsCheckerWebpackPlugin(),
|
||||
new CopyPlugin({
|
||||
// to is relative to ./.webpack/main/
|
||||
patterns: [{ from: 'localization', to: 'localization' }],
|
||||
patterns: [
|
||||
{ from: 'localization', to: 'localization' },
|
||||
{ from: 'node_modules/@tiddlygit/tiddlywiki', to: 'node_modules/@tiddlygit/tiddlywiki' },
|
||||
],
|
||||
}),
|
||||
new CircularDependencyPlugin({
|
||||
// exclude detection of files based on a RegExp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue