Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/getting-started/installation-vite.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SinceBadge } from '@site/src/components/SinceBadge';
**TL;DR:** AlphaTab comes with a Vite plugin which should be added to your Vite config to guarantee compatibility.
```js
import { defineConfig } from "vite";
import { alphaTab } from "@coderline/alphatab/vite";
import { alphaTab } from "@coderline/alphatab-vite";

export default defineConfig({
plugins: [alphaTab()]
Expand Down Expand Up @@ -49,9 +49,9 @@ Unless there is something special to your project setup, adding the plugin to th

```js
// CommonJS
const alphaTab = require('@coderline/alphatab/vite');
const alphaTab = require('@coderline/alphatab-vite');
// JavaScript modules
import { alphaTab } from '@coderline/alphatab/vite';
import { alphaTab } from '@coderline/alphatab-vite';

// Add the plugin to your config
export default defineConfig({
Expand Down
8 changes: 4 additions & 4 deletions docs/getting-started/installation-webpack.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { SinceBadge } from '@site/src/components/SinceBadge';
:::info
**TL;DR:** AlphaTab comes with a WebPack 5 plugin which should be added to your WebPack config to guarantee compatibility.
```js
import { AlphaTabWebPackPlugin } from '@coderline/alphatab/webpack';
import { AlphaTabWebPackPlugin } from '@coderline/alphatab-webpack';

const webpackConfig = {
plugins: [
Expand Down Expand Up @@ -53,9 +53,9 @@ Unless there is something special to your project setup, adding the plugin to th

```js
// CommonJS
const AlphaTabWebPackPlugin = require('@coderline/alphatab/webpack');
const AlphaTabWebPackPlugin = require('@coderline/alphatab-webpack');
// JavaScript modules
import { AlphaTabWebPackPlugin } from '@coderline/alphatab/webpack';
import { AlphaTabWebPackPlugin } from '@coderline/alphatab-webpack';

// Add the plugin to your config
const config = {
Expand Down Expand Up @@ -193,7 +193,7 @@ In our [Angular sample](https://github.com/CoderLine/alphaTabSamplesWeb/tree/mai
```
4. Add a `custom-webpack.config.js` and add the alphaTab Plugin
```js
const { AlphaTabWebPackPlugin } = require('@coderline/alphatab/webpack');
const { AlphaTabWebPackPlugin } = require('@coderline/alphatab-webpack');

module.exports = {
plugins: [
Expand Down
Loading