Skip to content

Instantly share code, notes, and snippets.

@bendytree
Created February 21, 2018 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bendytree/ea50ef622936f38169a17f252c70b775 to your computer and use it in GitHub Desktop.
Save bendytree/ea50ef622936f38169a17f252c70b775 to your computer and use it in GitHub Desktop.
esModule option not working
<template>
<h1>Foo</h1>
</template>
const component = require("./component.vue");
new Vue({
el: "#root",
render: render => render(component)
});
{
entry: "main.js",
module: {
rules: [
{
test: /\.vue$/,
use: {
loader: "vue-loader",
options: { esModule: false }
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment