You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							39 lines
						
					
					
						
							851 B
						
					
					
				
			
		
		
	
	
							39 lines
						
					
					
						
							851 B
						
					
					
				const path = require('path'); | 
						|
var modules_path = path.resolve(__dirname, './bin'); | 
						|
 | 
						|
 | 
						|
 | 
						|
module.exports = { | 
						|
  target: 'web', | 
						|
  // devtool: 'inline-source-map', | 
						|
  entry: './src/JSEncrypt.ts', | 
						|
  output: { | 
						|
    filename: 'jsencrypt.js', | 
						|
    chunkFilename: 'modules/[chunkhash].[name].chunk.js', | 
						|
    path: modules_path, | 
						|
    strictModuleExceptionHandling: true | 
						|
  }, | 
						|
 | 
						|
  resolve: { | 
						|
    // Add `.ts` and `.tsx` as a resolvable extension. | 
						|
    extensions: ['.ts', '.tsx', '.js'] | 
						|
  }, | 
						|
  module: { | 
						|
    rules: [ | 
						|
      // all files with a `.ts` or `.tsx` extension will be handled by `ts-loader` | 
						|
      { | 
						|
        test: /\.tsx?$/, | 
						|
        use: [ | 
						|
          { | 
						|
            loader: 'ts-loader', | 
						|
            options: { | 
						|
              transpileOnly: false, | 
						|
              configFile: require.resolve("./tsconfig.json") | 
						|
            } | 
						|
          }, | 
						|
        ] | 
						|
      }, | 
						|
    ] | 
						|
  }, | 
						|
 | 
						|
}; |