Skip to content

Commit

Permalink
fix(build): IE11 compatibility
Browse files Browse the repository at this point in the history
closes #75
  • Loading branch information
FranckFreiburger committed Jun 26, 2021
1 parent dfe0912 commit cce49ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ const configure = ({name, vueTarget, libraryTargetModule}) => (env = {}, { mode
},

entry: [
'regenerator-runtime',
'core-js',
'regenerator-runtime',
Path.resolve(__dirname, '../src/index.ts'),
],

Expand Down Expand Up @@ -362,6 +362,7 @@ ${ pkg.name } v${ pkg.version } for vue${ vueTarget }
version: 3,
proposals: true
},
forceAllTransforms: true,
targets: {
browsers: targetsBrowsers,
},
Expand Down
2 changes: 1 addition & 1 deletion src/createVue2SFCModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export async function createSFCModule(source : string, filename : AbstractPath,

const template = sfc_compileTemplate(compileTemplateOptions);
// "@vue/component-compiler-utils" does NOT assume any module system, and expose render in global scope.
template.code += `\nmodule.exports = { render, staticRenderFns }`
template.code += `\nmodule.exports = { render: render, staticRenderFns: staticRenderFns }`

if ( template.errors.length ) {

Expand Down

0 comments on commit cce49ec

Please sign in to comment.