Skip to content

Not working with Typescript? #3

Description

@Anahkiasen

Maybe I'm doing something wrong but I can't seem to make this work with Typescript. I've configured everything as per various examples:

preLoaders: [
    {
        test  : /\.ts$/,
        loader: 'baggage?[file].html&[file].css'
    }
],
loaders   : [
    {
        test   : /\.ts$/,
        loaders: [
            'awesome-typescript-loader?module=common'
        ],
    }
],

My file structure seems correct:

- SongsTable.ts
- SongsTable.html

If I go into baggage's code and log baggageFile and stats.isFile() everything is correct – the file path is correct, it exists, the inject variable even holds the correct output. But in my final bundle the baggage inject is nowhere to be found. Am I doing something wrong or?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions