Skip to content

Commit f9221f6

Browse files
author
aardgoose
committed
rename plugin
1 parent 49d566f commit f9221f6

2 files changed

Lines changed: 7 additions & 20 deletions

File tree

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { simple } from 'acorn-walk';
22

33
const nodeElements = {};
44

5-
export default function ansTest () {
5+
export default function threeNodes () {
66

77
return {
8-
name: 'my-example', // this name will show up in logs and errors
8+
name: 'three-nodes', // this name will show up in logs and errors
99

1010
transform: {
1111

@@ -77,21 +77,6 @@ export default function ansTest () {
7777

7878
},
7979

80-
},
81-
82-
buildEnd () {
83-
84-
for ( let i of this.getModuleIds() ) {
85-
86-
if ( i === 'C:\\Users\\angus\\Documents\\CaveView.js\\node_modules\\three\\examples\\jsm\\nodes\\utils\\DiscardNode.js' || i === 'ans' ) {
87-
88-
const m = this.getModuleInfo( i );
89-
console.log( i, m.isIncluded );
90-
91-
}
92-
93-
}
94-
9580
}
9681

9782
};

rollup.config.mjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import nodeResolve from '@rollup/plugin-node-resolve';
44
import terser from '@rollup/plugin-terser';
55
import { glconstants, glsl, glslThree } from './rollup-gl.mjs';
66
import beep from '@rollup/plugin-beep';
7-
import ansTest from './rollup-plugin-ans.mjs';
7+
import threeNodes from './rollup-plugin-three-nodes.mjs';
8+
//import graph from 'rollup-plugin-graph';
89

910
export default [
1011
{
@@ -24,7 +25,7 @@ export default [
2425
}
2526
],
2627
plugins: [
27-
ansTest(),
28+
threeNodes(),
2829
beep(),
2930
json( {
3031
exclude: [ 'node_modules/**', 'build/**', 'tools/**' ],
@@ -33,7 +34,8 @@ export default [
3334
nodeResolve( {} ),
3435
commonjs( {
3536
sourceMap: false, // Default: true
36-
} )
37+
} ),
38+
// graph()
3739
]
3840
}, {
3941
input: 'src/js/CV2Plugins.js',

0 commit comments

Comments
 (0)