We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f9db07 commit 53deae6Copy full SHA for 53deae6
packages/vue-component/plugin/tag-handler.js
@@ -114,7 +114,6 @@ VueComponentTagHandler = class VueComponentTagHandler {
114
}
115
116
// Export
117
- script += `\nreturn require('${this.inputFile.getDisplayPath()}').default`
118
119
// Babel
120
if (useBabel) {
@@ -180,7 +179,7 @@ VueComponentTagHandler = class VueComponentTagHandler {
180
179
map.names = lastMap.names
181
map.file = this.inputFile.getPathInPackage()
182
183
- js += '__vue_script__ = (function(){ ' + script + '\n})()'
+ js += 'module.exportDefault = function(value) { __vue_script__ = value; }; (function(){ if (!module.watch) {console.log(\'module\', module);} ' + script + '\n})();'
184
185
186
// Template
0 commit comments