1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-11-29 13:58:02 +03:00

Merge pull request #143 from jxnblk/fix-node-build

Fix node build
This commit is contained in:
Brent Jackson 2018-08-27 18:44:10 -04:00 committed by GitHub
commit 230dd91dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View File

@ -29,7 +29,15 @@ const getApp = async opts => {
App: path.join(__dirname, '../dist/entry.js')
}
config.target = 'node'
config.externals = [ nodeExternals() ]
config.externals = [
nodeExternals({
whitelist: [
'mdx-deck',
'mdx-deck/themes',
'mdx-deck/layouts'
]
})
]
const compiler = webpack(config)

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "mdx-deck",
"version": "1.6.7",
"version": "1.6.8-0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "mdx-deck",
"version": "1.6.7",
"version": "1.6.8-0",
"description": "MDX-based presentation decks",
"main": "dist/index.js",
"bin": {