Is there a way to use the dynamically created file as a dependency of another module? E.g.:
Webpack config:
...
plugins: [
new AddAssetPlugin(
"file.js",
`export default {
a: 1,
b: 2,
c: 3
}
`
),
...
Then in src/myapp.js
:
import obj from 'file.js'
console.log(obj.a) // Outputs: 1
?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too