Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

Commit

Permalink
fix(build): bundles the entry point default export
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsasharegan committed Sep 16, 2017
1 parent f4096c7 commit e1dcaa0
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion dist/vue-transmit.browser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-transmit.browser.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions dist/vue-transmit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vue-transmit.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-transmit.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-transmit.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions test/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn"
crossorigin="anonymous"></script>
<script>
window.VueTransmit = <?= file_get_contents(__DIR__. "/../dist/vue-transmit.js" ); ?>
</script>
<script>
window.VueTransmit = window.VueTransmit.default
<?= file_get_contents(__DIR__. "/../dist/vue-transmit.browser.js" ); ?>

;Vue.use(VueTransmit)
</script>
<style>
<?= file_get_contents(__DIR__. "/../dist/vue-transmit.css" ); ?>
Expand Down Expand Up @@ -53,6 +52,7 @@
<img :src="file.dataUrl" class="img-fluid d-flex mr-3">
<div class="media-body">
<h3>{{ file.name }}</h3>
<p v-if="file.status === 'uploading'">{{ file.upload.progress }}%</p>
<pre>{{ file | json }} </pre>
</div>
</div>
Expand Down
9 changes: 6 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ module.exports = [
ext: "min",
showBundleAnalysis: false,
output: {
libraryTarget: "commonjs2"
libraryTarget: "commonjs2",
libraryExport: "default"
},
rules: [
{
Expand All @@ -141,7 +142,8 @@ module.exports = [
config({
noMinify: true,
output: {
libraryTarget: "commonjs2"
libraryTarget: "commonjs2",
libraryExport: "default"
},
rules: [
{
Expand All @@ -161,7 +163,8 @@ module.exports = [
.split("-")
.map(upperFirst)
.join(""),
libraryTarget: "window"
libraryTarget: "window",
libraryExport: "default"
},
rules: [
{
Expand Down

0 comments on commit e1dcaa0

Please # to comment.