Skip to content

Commit 29e98f1

Browse files
committed
Export for AMD and CommonJS as well.
1 parent 5996d20 commit 29e98f1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

webpack/webpack.lib.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ module.exports = {
1919
output: {
2020
filename: '[name].bundle.js',
2121
path: path.resolve(outputDir),
22-
library: ['solid', 'auth'],
22+
library: {
23+
root: ['solid', 'auth'],
24+
amd: 'solid-auth-client',
25+
commonjs: 'solid-auth-client'
26+
},
2327
libraryTarget: 'umd'
2428
},
2529
module: _module,

0 commit comments

Comments
 (0)