Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Commit

Permalink
fix: fix module of output
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Apr 30, 2018
1 parent a5f8bf1 commit 01d4647
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import "codemirror/addon/search/match-highlighter.js";
import "codemirror/addon/search/matchesonscrollbar.js";
import "codemirror/addon/search/matchesonscrollbar.css";

import vm from "../build/src/vm";
import vm from "../dist/vm";
import pkg from "../package";

export default class App extends Component {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"scripts": {
"test":
"rm -rf ./build && tsc -p ./ && nyc ava ./build/test ./build/src/**/*.test.js",
"build": "rm -rf ./build && tsc -p ./ -d",
"pack":
"build":
"rm -rf ./dist && webpack --display-error-details --progress --colors",
"start": "npm run build && parcel ./doc/index.html -d vm.js",
"docs":
Expand Down
6 changes: 5 additions & 1 deletion webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ const webpackConfig: webpack.Configuration = {
},
output: {
path: path.join(__dirname, "/dist"),
filename: "[name].js"
filename: "[name].js",
libraryTarget: "umd"
},
externals: {
"babel-types": "babel-types"
},
resolve: {
modules: ["node_modules"],
Expand Down

0 comments on commit 01d4647

Please sign in to comment.