-
-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
3,047 additions
and
1,917 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ import vue from 'rollup-plugin-vue'; | |
import buble from '@rollup/plugin-buble'; | ||
import { terser } from "rollup-plugin-terser"; | ||
import replace from '@rollup/plugin-replace'; | ||
import resolve from '@rollup/plugin-node-resolve'; | ||
|
||
const input = 'src/export.js'; | ||
const external = [ | ||
|
@@ -26,7 +25,7 @@ const external = [ | |
'vue', | ||
]; | ||
|
||
const cdn_replaces = { | ||
const cdnReplaces = { | ||
'from \'vue\'': 'from \'https://unpkg.com/[email protected]/dist/vue.esm-browser.prod.js\'', | ||
'from \'three\'': 'from \'https://unpkg.com/[email protected]/build/three.module.js\'', | ||
'from \'three/examples': 'from \'https://unpkg.com/[email protected]/examples', | ||
|
@@ -53,7 +52,7 @@ export default [ | |
sourcemap: true, | ||
}, | ||
plugins: [ | ||
replace(cdn_replaces), | ||
replace(cdnReplaces), | ||
...plugins, | ||
], | ||
}, | ||
|
@@ -67,7 +66,7 @@ export default [ | |
sourcemap: true, | ||
}, | ||
plugins: [ | ||
replace(cdn_replaces), | ||
replace(cdnReplaces), | ||
...plugins, | ||
terser(), | ||
], | ||
|
@@ -99,39 +98,12 @@ export default [ | |
}, | ||
{ | ||
input, | ||
external: [ | ||
'gsap', | ||
'vue', | ||
], | ||
external, | ||
output: { | ||
format: 'cjs', | ||
file: 'build/trois.js', | ||
sourcemap: false, | ||
}, | ||
plugins: [ | ||
...plugins, | ||
resolve({ | ||
moduleDirectories: ['node_modules'], | ||
}), | ||
], | ||
plugins, | ||
}, | ||
// { | ||
// input, | ||
// external: [ | ||
// 'gsap', | ||
// 'vue', | ||
// ], | ||
// output: { | ||
// format: 'cjs', | ||
// file: 'build/trois.min.js', | ||
// sourcemap: true, | ||
// }, | ||
// plugins: [ | ||
// ...plugins, | ||
// resolve({ | ||
// moduleDirectories: ['node_modules'], | ||
// }), | ||
// terser(), | ||
// ], | ||
// }, | ||
]; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.