Skip to content

Commit

Permalink
fix: transpile buildModule
Browse files Browse the repository at this point in the history
fixes regression introduced in #80
  • Loading branch information
danielroe committed May 28, 2020
1 parent c80cd64 commit 2d5388d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ const compositionApiModule: Module<any> = function () {
this.options.build.babel.plugins = this.options.build.babel.plugins || []
this.options.build.babel.plugins.push(join(__dirname, 'babel'))

this.options.build.transpile = this.options.build.transpile || []
this.options.build.transpile.push(/nuxt-composition-api/)

this.extendBuild(config => {
config.resolve = config.resolve || {}
config.resolve.alias = config.resolve.alias || {}
Expand Down
5 changes: 0 additions & 5 deletions test/fixture/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,4 @@ module.exports = {
? require('../..').default
: require.resolve('../..'),
],
build: {
extend(config) {
config.resolve.alias['nuxt-composition-api'] = resolve(__dirname, '../..')
},
},
}

0 comments on commit 2d5388d

Please sign in to comment.