Skip to content

Commit ade96fc

Browse files
committed
Fix usage with global variable
Use the `default` export as `RemoteStorage`
1 parent 28f0850 commit ade96fc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

webpack.config.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ module.exports = {
3535
output: {
3636
path: path.resolve(__dirname, 'release'),
3737
filename: 'remotestorage.js',
38-
// global export name if needed
39-
library: 'RemoteStorage',
40-
libraryTarget: 'umd',
41-
umdNamedDefine: true,
38+
library: {
39+
name: 'RemoteStorage',
40+
type: 'umd',
41+
export: 'default',
42+
umdNamedDefine: true,
43+
},
4244
globalObject: 'this'
4345
}
4446
};

0 commit comments

Comments
 (0)