UNPKG

physar

Version:

Physar enables Cannon.js physics in your Spark AR projects.

53 lines (52 loc) 1.55 kB
const path = require('path') module.exports = { entry: './src/index.js', module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-loader' } } ] }, optimization: { // disable minification while debugging minimize: true }, output: { filename: 'script.js', path: path.resolve(__dirname, 'physar_examples', 'scripts') }, externals: { Animation: 'commonjs Animation', Diagnostics: 'commonjs Diagnostics', FaceTracking: 'commonjs FaceTracking', Audio: 'commonjs Audio', DeviceMotion: 'commonjs DeviceMotion', FaceTracking2D: 'commonjs FaceTracking2D', FaceGestures: 'commonjs FaceGestures', Fonts: 'commonjs Fonts', HandTracking: 'commonjs HandTracking', Instruction: 'commonjs Instruction', IrisTracking: 'commonjs IrisTracking', LightingEstimation: 'commonjs LightingEstimation', LiveStreaming: 'commonjs LiveStreaming', Locale: 'commonjs Locale', Patches: 'commonjs Patches', NativeUI: 'commonjs NativeUI', Persistence: 'commonjs Persistence', PersonSegmentation: 'commonjs PersonSegmentation', Random: 'commonjs Random', Reactive: 'commonjs Reactive', Scene: 'commonjs Scene', Time: 'commonjs Time', TouchGestures: 'commonjs TouchGestures', CameraInfo: 'commonjs CameraInfo', Materials: 'commonjs Materials', Textures: 'commonjs Textures', cannon: 'commonjs cannon' } }