Skip to content

Commit

Permalink
switch to import flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyanthropos committed Apr 4, 2023
1 parent fc2fbc3 commit 8384bab
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 47 deletions.
38 changes: 1 addition & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@
"rollup-plugin-polyfill-node": "^0.12.0",
"rollup-plugin-terser": "^7.0.2",
"vite": "^4.2.1",
"vite-plugin-mpa": "^1.1.4",
"vite-plugin-plain-text": "^1.4.2"
"vite-plugin-mpa": "^1.1.4"
},
"optionalDependencies": {
"cypress": "^10.11.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Tools/cypressTest/CypressTest.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect, useRef } from 'react';
import PageViewer from '../../Viewer/PageViewer.jsx';
import ActivityViewer from '../../Viewer/ActivityViewer.jsx';
// import {plainText as testCodeDoenetML } from './testCode.doenet';
// import testCodeDoenetML from './testCode.doenet?raw';

function Test() {
// console.log("===Test")
Expand Down
2 changes: 1 addition & 1 deletion src/Tools/temp/MathInput.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect, useRef } from 'react';
import DoenetViewer from '../../Tools/_framework/ToolPanels/AssignmentViewer';
import {plainText as testCodeDoenetML } from './testCode.doenet';
import testCodeDoenetML from './testCode.doenet?raw';
import core from '../../Core/Core';

// import MathInputPallet from '../_framework/temp/MathInputPallet'
Expand Down
4 changes: 2 additions & 2 deletions src/Tools/test/DoenetTest.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { useState, useEffect, useRef } from 'react';
import ActivityViewer from '../../Viewer/ActivityViewer.jsx';
import PageViewer from '../../Viewer/PageViewer.jsx';
import {plainText as testActivityDefinition } from './testActivityDefinition.doenet';
import {plainText as testCodeDoenetML } from './testCode.doenet';
import testActivityDefinition from './testActivityDefinition.doenet?raw';
import testCodeDoenetML from './testCode.doenet?raw';
import { MathJaxContext } from "better-react-mathjax";
import { mathjaxConfig } from '../../Core/utils/math.js';

Expand Down
5 changes: 1 addition & 4 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ import react from '@vitejs/plugin-react';
import nodePolyfills from 'rollup-plugin-polyfill-node';
import { defineConfig } from 'vite';
import { resolve } from 'path';
import plainText from 'vite-plugin-plain-text';

export default defineConfig((env) => ({
appType: 'mpa',
plugins: [
react(),
plainText(/\/testActivityDefinition\.doenet/),
plainText(/\/testCode\.doenet/),
react()
],
server: {
port: 8000,
Expand Down

0 comments on commit 8384bab

Please sign in to comment.