Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@cypress/webpack-batteries-included-preprocessor
Advanced tools
Cypress preprocessor for bundling JavaScript via webpack with dependencies included and support for various ES features, TypeScript, and CoffeeScript
Cypress preprocessor for bundling JavaScript via webpack, with dependencies included and support for:
This preprocessor is a wrapper for @cypress/webpack-preprocessor. The webpack preprocessor does not include any extra dependencies (e.g. babel-loader
, ts-loader
), since most users will use their own webpack.config.js
with it and already have the necessary dependencies installed. This preprocessor is for users who do not have those dependencies installed and would prefer not to configure the preprocessor to handle things like TypeScript and CoffeeScript.
Note that installing @cypress/webpack-preprocessor is also required. This allows you to update its version separately from this wrapper.
npm install --save-dev @cypress/webpack-batteries-included-preprocessor @cypress/webpack-preprocessor
In your project's plugins file:
const webpackPreprocessor = require('@cypress/webpack-batteries-included-preprocessor')
module.exports = (on) => {
on('file:preprocessor', webpackPreprocessor())
}
To enable TypeScript support, install TypeScript (if not already installed in your project npm install --save-dev typescript
) and provide its location with the typescript
option:
const webpackPreprocessor = require('@cypress/webpack-batteries-included-preprocessor')
module.exports = (on) => {
on('file:preprocessor', webpackPreprocessor({
typescript: require.resolve('typescript')
}))
}
Other than the typescript
option, this preprocessor supports the same options as @cypress/webpack-preprocessor, so see its README for more information.
Use the version of Node that matches Cypress.
Run the tests:
yarn test
This project is licensed under the terms of the MIT license.
FAQs
Cypress preprocessor for bundling JavaScript via webpack with dependencies included and support for various ES features, TypeScript, and CoffeeScript
We found that @cypress/webpack-batteries-included-preprocessor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.