Created
February 21, 2018 22:41
-
-
Save bendytree/ea50ef622936f38169a17f252c70b775 to your computer and use it in GitHub Desktop.
esModule option not working
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<h1>Foo</h1> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const component = require("./component.vue"); | |
new Vue({ | |
el: "#root", | |
render: render => render(component) | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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