Skip to content

Commit 0b65221

Browse files
committed
fix: cannot resolve
1 parent 1e750e1 commit 0b65221

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

lib/module.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
const { resolve } = require('path')
22

3-
module.exports = function interpolation () {
4-
this.addPlugin(path.resolve(__dirname, 'templates/plugin.js'))
3+
module.exports = function () {
4+
this.addPlugin({
5+
src: resolve(__dirname, './templates/plugin.js'),
6+
fileName: 'interpolation.js',
7+
ssr: false
8+
})
59
}
610

711
// REQUIRED if publishing as an npm package
8-
module.exports.meta = require('./package.json')
12+
// module.exports.meta = require('./package.json')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nuxt-interpolation",
33
"version": "0.2.1",
44
"description": "Directive for binding every link to catch the click event, and if it's a relative link router will push.",
5-
"main": "index.js",
5+
"main": "lib/module.js",
66
"directories": {
77
"lib": "lib"
88
},

0 commit comments

Comments
 (0)