Set Up on Browser
bernardmizzi opened this issue · comments
I would like to use this library. How do I set it up to use it on the browser? Do I have to download something?
You need to install it and require it in your JavaScript files:
- Install:
npm i aspect.js --save
- Require:
import * as aop from 'aspect.js';
// ...
I'm still having an issue, do you think that this is the right way to use it on the browser? Are you sure that this can actually be used on the browser?
I'm getting 'unexpected *' as an error
Make sure you are using a tool like Webpack or transpile your code with TypeScript in order to make it work in the browser.
Sorry for disturbing again but how can you bundle a folder with Webpack? All I found were methods to bundle JS files and not folders and for aspect.js I require the whole folder aspect.js. And I believe that the code is already transpiled.
I would like to use this library for my dissertation and I currently need this asap
I managed to bundle the code into one big Javascript file by using browserify. Then I'm including the bundled file in the html file as a module and I'm getting `The requested module does not provide an export named 'beforeMethod'. Any help would be appreciated