-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fixes & latex on axis labels (#69)
* v1.0.736 * v1.0.737 * Minor edits * Lint & prettier * Fix typo * v1.0.74 * Bump [email protected]
- Loading branch information
1 parent
547d2dd
commit fa38763
Showing
11 changed files
with
1,349 additions
and
1,409 deletions.
There are no files selected for viewing
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
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
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,54 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
|
||
const path = require("path"); | ||
const alias = require("@rollup/plugin-alias"); | ||
const commonjs = require("@rollup/plugin-commonjs"); | ||
const resolve = require("@rollup/plugin-node-resolve"); | ||
const replace = require("@rollup/plugin-replace"); | ||
const typescript = require("@rollup/plugin-typescript"); | ||
const copy = require("rollup-plugin-copy"); | ||
const nodeBuiltins = require("rollup-plugin-node-builtins"); | ||
|
||
module.exports = { | ||
input: "src/index.ts", | ||
output: { | ||
file: "dist/graphica.js", | ||
format: "umd", | ||
name: "Graphica", | ||
sourcemap: true, | ||
globals: { | ||
'typeof self !== "undefined" ? self : this': "this", | ||
}, | ||
}, | ||
plugins: [ | ||
typescript(), | ||
resolve({ | ||
preferBuiltins: false, | ||
}), | ||
commonjs(), | ||
replace({ | ||
"process.env.NODE_ENV": JSON.stringify("production"), | ||
preventAssignment: true, | ||
}), | ||
nodeBuiltins(), | ||
copy({ | ||
targets: [ | ||
{ | ||
src: "node_modules/three/examples/jsm/**/*", | ||
dest: "dist/jsm", | ||
}, | ||
], | ||
}), | ||
alias({ | ||
entries: [ | ||
{ | ||
find: "three/examples/jsm", | ||
replacement: path.resolve( | ||
__dirname, | ||
"node_modules/three/examples/jsm" | ||
), | ||
}, | ||
], | ||
}), | ||
], | ||
}; |
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
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
Oops, something went wrong.