
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@beyond-js/code-bundle
Advanced tools
The BeyondJS Code Bundle is a versatile and powerful bundle designed to handle multiple processors, making it ideal for projects that require the integration of different technologies. This bundle supports a wide range of processors, allowing you to encapsulate various technologies within your application.
bundle-name.css
).The configuration for the Code Bundle is defined in your module's module.json
file. Below is an example configuration:
{
"name": "my-code-bundle",
"platforms": ["web"],
"code": {
"ts": {
"path": "ts",
"files": "*"
},
"scss": {
"path": "scss",
"files": "*"
}
}
}
bundles
: Specifies the list of bundles in the module.name
: The name of the bundle.type
: The type of bundle, which should be set to code
for this configuration.platforms
: Specifies the platforms the bundle supports.code
: Contains configuration details specific to the code bundle.
processors
: Lists the processors supported by the bundle.The Code Bundle supports the following processors, each handling different file types and technologies:
ts
): Compiles TypeScript files.js
): Handles standard JavaScript files.jsx
): Processes JSX files, typically used with React.less
): Compiles Less files into CSS.scss
): Compiles SCSS files into CSS.svelte
): Compiles Svelte components.vue
): Compiles Vue components.mdx
): Processes MDX files, which allow you to write JSX in Markdown.When using CSS processors like Sass, Less, or SCSS, the Code Bundle generates an independent style bundle named
bundle-name.css
. This approach ensures that your styles are modular and can be independently managed, improving the
maintainability and scalability of your application.
Here is a basic example of how to set up a module with the Code Bundle in BeyondJS:
Create a module.json
file in your module directory with the following content:
```json
{
"name": "my-code-bundle",
"platforms": ["web"],
"code": {
"ts": {
"path": "ts",
"files": "*"
},
"scss": {
"path": "scss",
"files": "*"
}
}
}```
Add your source files to the appropriate directories for each processor.
Build your project to see the generated JavaScript and CSS bundles.
FAQs
Code bundle for Beyond.js
The npm package @beyond-js/code-bundle receives a total of 0 weekly downloads. As such, @beyond-js/code-bundle popularity was classified as not popular.
We found that @beyond-js/code-bundle demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.