mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
33 lines
770 B
JavaScript
33 lines
770 B
JavaScript
![]() |
// Copyright (c) Microsoft Corporation.
|
||
|
// Licensed under the MIT license.
|
||
|
|
||
|
const path = require('path');
|
||
|
const InlineSource = require('./webpack-inline-source-plugin.js');
|
||
|
|
||
|
module.exports = {
|
||
|
entry: path.join(__dirname, 'cssSelectorEngine.ts'),
|
||
|
devtool: 'source-map',
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.tsx?$/,
|
||
|
loader: 'ts-loader',
|
||
|
options: {
|
||
|
transpileOnly: true
|
||
|
},
|
||
|
exclude: /node_modules/
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: [ '.tsx', '.ts', '.js' ]
|
||
|
},
|
||
|
output: {
|
||
|
filename: 'cssSelectorEngineSource.js',
|
||
|
path: path.resolve(__dirname, '../../lib/injected/generated')
|
||
|
},
|
||
|
plugins: [
|
||
|
new InlineSource(path.join(__dirname, '..', 'generated', 'cssSelectorEngineSource.ts')),
|
||
|
]
|
||
|
};
|