Skip to content

Commit

Permalink
feat(DIST-390): Added node.js support (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Prilutskiy authored Aug 13, 2020
1 parent c0d58e4 commit 44630be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ function getWebpackConfig () {
// UMD supports both NPM package format and
// global variable format, when used from a CDN
libraryTarget: 'umd',
// globalObject setting is required, so the library can
// work in both node and browser environments
globalObject: 'this',
// Sets the name of a global variable that will contain the entrypoint
// when used from a CDN
library: 'typeformEmbed'
Expand All @@ -74,7 +77,7 @@ function getWebpackConfig () {
},
{
test: /\.css$/i,
use: ['style-loader', 'css-loader']
use: ['css-loader']
}
]
},
Expand Down

0 comments on commit 44630be

Please sign in to comment.