New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flarum-webpack-config

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flarum-webpack-config - npm Package Compare versions

Comparing version 2.0.2 to 3.0.0

babel.config.cjs

57

package.json
{
"name": "flarum-webpack-config",
"version": "2.0.2",
"type": "module",
"version": "3.0.0",
"description": "Webpack config for Flarum JS and TS transpilation.",
"main": "index.js",
"main": "src/index.cjs",
"author": "Flarum Team",
"license": "MIT",
"prettier": "@flarum/prettier-config",
"peerDependencies": {

@@ -12,21 +14,42 @@ "webpack": "^5.76.0"

"dependencies": {
"@babel/core": "^7.16.0",
"@babel/plugin-proposal-class-properties": "^7.16.0",
"@babel/plugin-proposal-private-methods": "^7.16.0",
"@babel/plugin-transform-object-assign": "^7.16.0",
"@babel/plugin-transform-react-jsx": "^7.16.0",
"@babel/plugin-transform-runtime": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@babel/preset-react": "^7.16.0",
"@babel/preset-typescript": "^7.16.0",
"@babel/runtime": "^7.16.0",
"babel-loader": "^8.2.3",
"typescript": "^4.4.4",
"@babel/core": "^7.20.2",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-transform-object-assign": "^7.18.6",
"@babel/plugin-transform-react-jsx": "^7.19.0",
"@babel/plugin-transform-runtime": "^7.19.6",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@babel/runtime": "^7.20.1",
"babel-loader": "^9.1.0",
"loader-utils": "^1.4.0",
"schema-utils": "^3.0.0",
"typescript": "^4.9.3",
"webpack": "^5.76.0",
"webpack-bundle-analyzer": "^4.5.0"
"webpack-bundle-analyzer": "^4.7.0"
},
"devDependencies": {
"prettier": "^2.4.1"
"@flarum/prettier-config": "^1.0.0",
"babel-jest": "^29.5.0",
"jest": "^29.5.0",
"memfs": "^3.5.3",
"prettier": "^2.8.0"
},
"packageManager": "yarn@3.1.0"
"scripts": {
"dev": "echo 'skipping..'",
"build": "echo 'skipping..'",
"analyze": "echo 'skipping..'",
"format": "prettier --write .",
"format-check": "prettier --check .",
"clean-typings": "echo 'skipping..'",
"build-typings": "echo 'skipping..'",
"post-build-typings": "echo 'skipping..'",
"check-typings": "echo 'skipping..'",
"check-typings-coverage": "echo 'skipping..'",
"test": "jest"
},
"jest": {
"testEnvironment": "node"
}
}

@@ -34,25 +34,1 @@ # Webpack config for Flarum JS/TS compilation

For details about this, see the [`flarum/flarum-tsconfig` repository](https://github.com/flarum/flarum-tsconfig)
## Options
### `useExtensions`
`Array<string>`, defaults to `[]`.
An array of extensions whose modules should be made available. This is a shortcut to add [`externals`](https://webpack.js.org/configuration/externals/) configuration for extension modules. Imported extension modules will not be bundled, but will instead refer to the extension's exports included in the Flarum runtime (ie. `flarum.extensions["vendor/package"]`).
For example, to access the Tags extension module within your extension:
**forum.js**
```js
import { Tag } from '@flarum/tags/forum';
```
**webpack.config.js**
```js
module.exports = config({
useExtensions: ['flarum/tags'],
});
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc