migration: rename js src to mjs
This commit is contained in:
parent
b303485a87
commit
43a7a37ee6
147 changed files with 8 additions and 11 deletions
|
|
@ -1,9 +1,9 @@
|
|||
require('./client-shim')
|
||||
// import './client-shim'
|
||||
import widgets from '../src/client/widgets/index.js'
|
||||
import baseClass from '../src/client/widgets/common/widget.js'
|
||||
|
||||
// Here we go
|
||||
var widgets = require('../src/client/widgets'),
|
||||
baseClass = require('../src/client/widgets/common/widget'),
|
||||
base = baseClass.defaults(),
|
||||
var base = baseClass.defaults(),
|
||||
doc = ['<!-- This file is generated automatically from the widget class declarations. See scripts/build-widget-reference.js -->']
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -78,9 +78,6 @@ Object.assign(global, window)
|
|||
|
||||
// Required globals
|
||||
|
||||
DOM = require('../src/client/dom')
|
||||
DOM.get = x=>[{addEventListener:()=>{}, style:{}}]
|
||||
DOM.init()
|
||||
ELECTRON_NOGPU = false
|
||||
CANVAS_FRAMERATE = 1
|
||||
LANG = 'en'
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ var commonjs = require('@rollup/plugin-commonjs'),
|
|||
path = require('path')
|
||||
|
||||
module.exports = {
|
||||
input: 'src/client/index.js',
|
||||
input: 'src/client/index.mjs',
|
||||
output: [
|
||||
{
|
||||
file: 'app/client/open-stage-control-client.js',
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ var commonjs = require('@rollup/plugin-commonjs'),
|
|||
path = require('path')
|
||||
|
||||
module.exports = {
|
||||
input: 'src/launcher/index.js',
|
||||
input: 'src/launcher/index.mjs',
|
||||
output: [
|
||||
{
|
||||
file: 'app/launcher/open-stage-control-launcher.js',
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ var commonjs = require('@rollup/plugin-commonjs'),
|
|||
|
||||
module.exports = {
|
||||
input: {
|
||||
'node/index': 'src/server/node/index.js',
|
||||
'electron/index': 'src/server/electron/index.js'
|
||||
'node/index': 'src/server/node/index.mjs',
|
||||
'electron/index': 'src/server/electron/index.mjs'
|
||||
},
|
||||
output: [
|
||||
{
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue