<commit_before>const Util = require('util')
const webpack = require('webpack')

module.exports = {
    addons: [
        {
            name: '@storybook/preset-typescript',
            options: {
                framework: 'vue',
                forkTsCheckerWebpackPluginOptions: {
                    compilerOptions: {
                        experimentalDecorators: true
                    }
                }
            }
        },
        '@storybook/addon-knobs'
    ],
    stories: ['../src/**/*.stories.(ts|js|tsx|jsx)'],

    webpackFinal: (config) => {
        const vueLoader = config.module.rules.find(r => String(r.test) == String(/\.vue$/))
        vueLoader.options.compilerOptions = {
            preserveWhitespace: false
        }

        const cssLoader = config.module.rules.find(r => String(r.test) == String(/\.css$/))
        cssLoader.use[1].options.sourceMap = true

        config.optimization.splitChunks = false

        config.devtool = 'eval-source-map'
        config.module.rules.push(
        {<commit_msg>Use cwd as base for story paths<commit_after>const Util = require('util')
const webpack = require('webpack')

module.exports = {
    addons: [
        {
            name: '@storybook/preset-typescript',
            options: {
                framework: 'vue',
                forkTsCheckerWebpackPluginOptions: {
                    compilerOptions: {
                        experimentalDecorators: true
                    }
                }
            }
        },
        '@storybook/addon-knobs'
    ],
    stories: [`${process.cwd()}/src/**/*.stories.(ts|js|tsx|jsx)`],

    webpackFinal: (config) => {
        const vueLoader = config.module.rules.find(r => String(r.test) == String(/\.vue$/))
        vueLoader.options.compilerOptions = {
            preserveWhitespace: false
        }

        const cssLoader = config.module.rules.find(r => String(r.test) == String(/\.css$/))
        cssLoader.use[1].options.sourceMap = true

        config.optimization.splitChunks = false

        config.devtool = 'eval-source-map'
        config.module.rules.push(
        {
{'fraction_non_alphanumeric': 0.13584905660377358, 'fraction_numerical': 0.0009433962264150943, 'mean_word_length': 1.7122762148337596, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2494692', 'n_tokens_mistral': 623, 'n_tokens_neox': 598, 'n_words': 90}