Comments (3)
I'm not sure that ESM Node.js modules will be compatible with Bolt since Vite will try and bundle anything using import and Node.js modules can't be bundled.
Most Node.js packages will ship with CJS bindings, but it looks like tempy does not. There may be a way to pull it off in the Vite config through resolve aliases.
I would say the easiest solution for this specific use case would be to simply use Node.js' built-in os.tempdir()
function.
from bolt-cep.
Okay, thanks for clarifying, and for the suggetions!
from bolt-cep.
Sure thing, if you do find a possible solution feel free to open a PR.
from bolt-cep.
Related Issues (20)
- The <extension name> extension could not be loaded because it was not properly signed. HOT 1
- Cant't acess .jsx files
- removeEventListener obj parameter not set as optional
- How to get this working in NextJS? HOT 1
- zxp password included as raw text in build bundle HOT 2
- API requests HOT 1
- Package.json should inherit extension name
- Cannot build with 2 panels in cep.config.ts HOT 5
- Types for Adobe stop at v22.0 HOT 1
- "TypeError: undefined is not an object" when calling evalEs HOT 3
- [Question] Using HMR within Adobe apps? HOT 1
- How to add pollyfils from es5 to ppro or etc
- jsx strings are garbled(jsx字符串乱码问题) HOT 2
- WASM modules not found but only in Production Build HOT 1
- copyAssets when `npm run dev` not only when building HOT 1
- Including config.id from cep.config.ts cause the config bundled in browser code
- Add pnpm as well
- KeyInterest not working
- Problem with "npm run watch" on Premiere Pro project HOT 1
- Cannot call a class as a function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bolt-cep.