mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-21 07:55:55 +00:00
Avoid bundling dependencies; Build CommonJS target
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@storyteller/studio-web",
|
"name": "@storyteller/studio-web",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"dependencies": {},
|
"dependencies": {
|
||||||
|
"@storyteller/framework": "0.0.1",
|
||||||
|
"@storyteller/studio": "0.0.1",
|
||||||
|
"lit": "^2.8.0"
|
||||||
|
},
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"module": "./index.mjs",
|
"module": "./index.mjs",
|
||||||
"typings": "./index.d.ts",
|
"typings": "./index.d.ts"
|
||||||
"exports": {
|
|
||||||
"./canvas-provider": "./canvas-provider.element.js",
|
|
||||||
"./viewer": "./viewer.element.js"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,12 @@
|
|||||||
"build": {
|
"build": {
|
||||||
"executor": "@nx/vite:build",
|
"executor": "@nx/vite:build",
|
||||||
"outputs": ["{options.outputPath}"],
|
"outputs": ["{options.outputPath}"],
|
||||||
|
"dependsOn": [
|
||||||
|
{
|
||||||
|
"projects": ["studio"],
|
||||||
|
"target": "build:web"
|
||||||
|
}
|
||||||
|
],
|
||||||
"options": {
|
"options": {
|
||||||
"outputPath": "dist/studio-web"
|
"outputPath": "dist/studio-web"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,11 +35,15 @@ export default defineConfig({
|
|||||||
fileName: "index",
|
fileName: "index",
|
||||||
// Change this to the formats you want to support.
|
// Change this to the formats you want to support.
|
||||||
// Don't forget to update your package.json as well.
|
// Don't forget to update your package.json as well.
|
||||||
formats: ["es"],
|
formats: ["es", "cjs"],
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
// External packages that should not be bundled into your library.
|
// External packages that should not be bundled into your library.
|
||||||
external: [],
|
external: [
|
||||||
|
"lit",
|
||||||
|
"@storyteller/framework",
|
||||||
|
"@storyteller/studio",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user