fix: try package node_modules tiddlywiki with unpacked worker

This commit is contained in:
tiddlygit-test 2021-06-02 01:31:37 +08:00
parent f645f41c8d
commit e2e0e678e6
3 changed files with 12 additions and 8 deletions

View file

@ -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,