mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
Remove compatPrefix
option
Aliasing was only working for the `src` directory, it would not find modules in the `lib` directory. Therefore the easiest way to migrate will be to remove the prefix manually from import statements.
This commit is contained in:
@@ -6,9 +6,5 @@ This package generates a [Webpack](https://webpack.js.org) config object that wi
|
||||
// webpack.config.js
|
||||
var config = require('flarum-webpack-config');
|
||||
|
||||
module.exports = config(options);
|
||||
module.exports = config();
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
* `compatPrefix` Old-style module prefix (eg. `flarum/sticky`) to alias. Setting this will also enable importing old-style core modules (eg. `import foo from 'flarum/foo'`).
|
||||
|
Reference in New Issue
Block a user