1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-23 20:02:32 +08:00

update rollup conf

This commit is contained in:
Kevin Levron 2021-04-03 21:45:08 +02:00
parent a11a6cecf4
commit e02d28dfd9

View File

@ -20,6 +20,7 @@ const external = [
'three/examples/jsm/postprocessing/RenderPass.js',
'three/examples/jsm/postprocessing/Pass.js',
'three/examples/jsm/postprocessing/SAOPass.js',
'three/examples/jsm/postprocessing/SSAOPass.js',
'three/examples/jsm/postprocessing/SMAAPass.js',
'three/examples/jsm/postprocessing/ShaderPass.js',
'three/examples/jsm/postprocessing/UnrealBloomPass.js',
@ -28,18 +29,18 @@ const external = [
];
const cdnReplaces = {
'from \'vue\'': 'from \'https://unpkg.com/vue@3.0.7/dist/vue.esm-browser.prod.js\'',
'from \'three\'': 'from \'https://unpkg.com/three@0.126.1/build/three.module.js\'',
'from \'three/examples': 'from \'https://unpkg.com/three@0.126.1/examples',
'from \'vue\'': 'from \'https://unpkg.com/vue@3.0.11/dist/vue.esm-browser.prod.js\'',
'from \'three\'': 'from \'https://unpkg.com/three@0.127.0/build/three.module.js\'',
'from \'three/examples': 'from \'https://unpkg.com/three@0.127.0/examples',
delimiters: ['', ''],
};
const plugins = [
vue(),
buble({
transforms: { asyncAwait: false, forOf: false },
objectAssign: 'Object.assign',
}),
// buble({
// transforms: { asyncAwait: false, forOf: false },
// objectAssign: 'Object.assign',
// }),
];
export default [