Safer way to determine whether node or browser

This commit is contained in:
Don Jayamanne
2024-09-09 12:07:43 +10:00
parent 1865c2979d
commit 692656799a
7 changed files with 39 additions and 10 deletions

View File

@@ -13,11 +13,10 @@ const path = require('path');
module.exports = withDefaults({
context: __dirname,
entry: {
ipynbMain: './src/ipynbMain.ts',
['ipynbMain.node']: './src/ipynbMain.node.ts',
notebookSerializerWorker: './src/notebookSerializerWorker.ts',
},
output: {
// filename: 'ipynbMain.js'
path: path.resolve(__dirname, 'dist'),
filename: '[name].js'
},