Skip to content

Commit

Permalink
update relative paths for AMD builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Oct 7, 2019
1 parent d29a490 commit a8dae83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/app/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@ export default [
// AMD (for wq.app Python package)
{
input: 'packages/app/src/app.js',
plugins: [wqDeps('.'), babelAMD()],
plugins: [wqDeps(), babelAMD()],
external: ['./spinner'],
output: outputAMD('app', banners.app)
},
{
input: 'packages/app/src/patterns.js',
plugins: [wqDeps('.'), babelAMD()],
plugins: [wqDeps(), babelAMD()],
output: outputAMD('patterns', banners.patterns, 'app')
},
{
input: 'packages/app/src/photos.js',
plugins: [wqDeps('.'), babelAMD()],
plugins: [wqDeps(), babelAMD()],
external: ['localforage'],
output: outputAMD('photos', banners.photos, 'app')
},
Expand Down
2 changes: 1 addition & 1 deletion rollup-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import babelPlugin from 'rollup-plugin-babel';
import { CodeGenerator } from '@babel/generator';
import { execSync } from 'child_process';

export function wqDeps(path = '..') {
export function wqDeps(path = '.') {
return {
resolveId: source => {
if (path != '@wq' && source == '@wq/jquery-mobile') {
Expand Down

0 comments on commit a8dae83

Please sign in to comment.