We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6918b58 commit 54f971aCopy full SHA for 54f971a
packages/scenejs/rollup.config.js
@@ -13,9 +13,10 @@ module.exports = builder([
13
external,
14
},
15
{
16
- input: 'src/index.umd.ts',
+ input: 'src/index.cjs.ts',
17
output: "./dist/scene.cjs.js",
18
format: "cjs",
19
+ exports: "named",
20
21
22
packages/scenejs/src/index.cjs.ts
@@ -0,0 +1,9 @@
1
+import Scene, * as others from "./index";
2
+
3
+for (const name in others) {
4
+ (Scene as any)[name] = (others as any)[name];
5
+}
6
7
+export * from "./index";
8
+module.exports = Scene;
9
+export default Scene;
0 commit comments