Skip to content

Commit

Permalink
Fix usage with global variable
Browse files Browse the repository at this point in the history
Use the `default` export as `RemoteStorage`
  • Loading branch information
raucao committed Jul 22, 2024
1 parent 28f0850 commit ade96fc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ module.exports = {
output: {
path: path.resolve(__dirname, 'release'),
filename: 'remotestorage.js',
// global export name if needed
library: 'RemoteStorage',
libraryTarget: 'umd',
umdNamedDefine: true,
library: {
name: 'RemoteStorage',
type: 'umd',
export: 'default',
umdNamedDefine: true,
},
globalObject: 'this'
}
};

0 comments on commit ade96fc

Please sign in to comment.