Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async Function is crashed. #2

Closed
brandonxiang opened this issue Jan 7, 2020 · 0 comments
Closed

Async Function is crashed. #2

brandonxiang opened this issue Jan 7, 2020 · 0 comments

Comments

@brandonxiang
Copy link
Owner

brandonxiang commented Jan 7, 2020

sveltejs/svelte-loader#62
sveltejs/svelte#717

exclude is essential for babel-loader, because svelte compiler should not be transformed by babel, while runtime needs to be transformed.

{
 rules: [
        {
          // https://github.com/sveltejs/svelte/issues/717
          test: /\.m?js$/,
          exclude: /node_modules\/(?!svelte)/,
          use: 'babel-loader',
        },
        {
          test: /\.svelte$/,
          exclude: /node_modules\/(?!svelte)/,
          use: [
            { loader: 'babel-loader' },
            {
              loader: 'svelte-loader',
              options: {
                emitCss: true,
                hotReload: true,
                preprocess: require('svelte-preprocess')({
                  postcss: true,
                }),
              },
            },
          ],
        },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant