Skip to content

Commit

Permalink
fix(meta): fix mergeMeta cjs export
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 10, 2020
1 parent b65bfd5 commit 774f1a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/meta/meta.merge.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
exports.mergeMeta = function mergeMeta (to, from) {
module.exports = function mergeMeta (to, from) {
if (typeof to === 'function') {
// eslint-disable-next-line no-console
console.warn('Cannot merge meta. Avoid using head as a function!')
Expand Down
2 changes: 1 addition & 1 deletion lib/meta/module.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { join, resolve } = require('path')
const { existsSync } = require('fs')
const { isUrl } = require('../utils')
const { mergeMeta } = require('./meta.merge')
const mergeMeta = require('./meta.merge')

module.exports = function nuxtMeta (pwa) {
const { nuxt } = this
Expand Down
2 changes: 1 addition & 1 deletion lib/meta/plugin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import meta from './meta.json'
import { mergeMeta } from './meta.merge'
import mergeMeta from './meta.merge'

export default function ({ app }) {
mergeMeta(app.head, meta)
Expand Down

0 comments on commit 774f1a8

Please sign in to comment.