-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* convert to ES modules * rebuild * move shaders back into glsl files * reinstate polyfills
- Loading branch information
1 parent
22a4c76
commit f65e669
Showing
230 changed files
with
30,853 additions
and
29,804 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.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import * as fs from 'fs'; | ||
import string from 'rollup-plugin-string'; | ||
|
||
var outro = ` | ||
Object.defineProperty( exports, 'AudioContext', { | ||
get: function () { | ||
return exports.getAudioContext(); | ||
} | ||
});`; | ||
|
||
var footer = fs.readFileSync( 'src/Three.Legacy.js', 'utf-8' ); | ||
|
||
export default { | ||
entry: 'src/Three.js', | ||
dest: 'build/three.js', | ||
moduleName: 'THREE', | ||
format: 'umd', | ||
plugins: [ | ||
string({ | ||
include: '**/*.glsl' | ||
}) | ||
], | ||
|
||
outro: outro, | ||
footer: footer | ||
}; |
Oops, something went wrong.